Koozali.org: home of the SME Server

port 26, Urgent!!

trenskow

port 26, Urgent!!
« on: August 25, 2004, 03:54:37 PM »
Hi.. i need help.
I want to be able to receive incomming mails on port 26, and have edited the /etc/services file with this

smtp            25/tcp          mail
smtp            26/tcp          mail      # gratisdns

i have added the last line to the file, but this doesnt seem to help. And for some reason it also dissapers sometimes.

What to do now? i have moved my domain to my Smebox, but the users cannot recieve mail. How do i open port 26 for incomming mail?

Offline byte

  • *
  • 2,183
  • +2/-0
port 26, Urgent!!
« Reply #1 on: August 25, 2004, 03:58:17 PM »
Did you edit just the /etc/services file or did you mean you edited the template file for the services?

Have you installed the port opening contrib too? to allow port 26 open?

Also make sure you restart the qmail system by typing at command line...

service smtpfront-qmail restart

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

trenskow

port 26, Urgent!!
« Reply #2 on: August 25, 2004, 04:05:06 PM »
i just edited the /etc/service
i did'nt edit any template file

what should i do there?

Offline byte

  • *
  • 2,183
  • +2/-0
port 26, Urgent!!
« Reply #3 on: August 25, 2004, 04:12:15 PM »
Yes I would (off top my head) do...

In /etc/e-smith/templates/etc/services/

There will be a file with the standard ports copy that over to...

/etc/e-smith/templates-custom/etc/services/<nameoffile>

then expand template to change the /etc/services file

Then open the port using the port opening contrib followed by running the...

service smtpfront-qmail restart

(as I said this is of the top of my head cant remeber the exact name of the file you need to copy over)

Remember doing the template way keeps the settings, if your just editing the /etc/services direct that will revert back to oringal state losing your changes

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

trenskow

port 26, Urgent!!
« Reply #4 on: August 25, 2004, 04:20:45 PM »
ok thanks  ;-)

*EDIT*
found it... im a noob here, so next step is trying to figure out, how to expand the template

bigbri100

expanding a template
« Reply #5 on: August 25, 2004, 04:36:14 PM »
/sbin/e-smith/expand-template /etc/services

trenskow

port 26, Urgent!!
« Reply #6 on: August 25, 2004, 04:42:22 PM »
thnks... do i need port 25 to be closed for smtp? cause now it seems fine, but no mails are arriving

bigbri100

port 26, Urgent!!
« Reply #7 on: August 25, 2004, 04:50:58 PM »
Have you opened port 26?

trenskow

port 26, Urgent!!
« Reply #8 on: August 25, 2004, 04:55:20 PM »
uhh.... is'nt it, what i just have done above?

trenskow

port 26, Urgent!!
« Reply #9 on: August 25, 2004, 05:31:54 PM »
I have done all of the above, and i have a MXBackup at gratisdns.dk with port forwarding to port 26, but still no mails are comming in my Sme server

Offline byte

  • *
  • 2,183
  • +2/-0
port 26, Urgent!!
« Reply #10 on: August 25, 2004, 05:58:23 PM »
Hi,

You need to use port opening not port forwarding...check out the search for port opening not install by default need to add on..

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

trenskow

port 26, Urgent!!
« Reply #11 on: August 25, 2004, 10:07:06 PM »
ok..  i did a fresh install

i edited the /etc/services and /etc/e-smith/templates/etc/services/10standard

i restartet the smtpfront-qmail.

i installed portopening and opened port 26

i send several mails, and non of the arives.

What am i doing wrong?   :cry:

Offline meanpenguin

  • ****
  • 138
  • +0/-0
port 26, Urgent!!
« Reply #12 on: August 25, 2004, 10:15:42 PM »
from a box outside your network
do a telnet to port 26.

*From windows  telnet (external ip) 26  - no parens
and see if you get a response

telnet syz.abc.domain 26

Trying 99.999.999.999...
Connected to syz.abc.domain
Escape character is '^]'.

*Then type HELO

HELO
220 syz.abc.domain SMTP daemon ready.
250 syz.abc.domain pleased to meet you,

*if you get the 220, 250, your server is ok.
if not server is still not listening on port 26.

Ed

trenskow

port 26, Urgent!!
« Reply #13 on: August 25, 2004, 10:40:38 PM »
just to see, i changed the open port to 125, i tried to telnet, and got this
Connecting To mail.trenskow.dk...Could not open connection to the host, on port
125: Connect failed

so, my box is not open... but what am i doing wrong... i followed the guides i found, and the help i get in this thread

Offline meanpenguin

  • ****
  • 138
  • +0/-0
port 26, Urgent!!
« Reply #14 on: August 25, 2004, 10:58:33 PM »
putty in to the the SME server,
try

telnet localhost 25
telnet localhost 26
telnet localhost 125

and see if you get a connection on any one of those.

It will tell you which port smtp is still listening on.
Ed

trenskow

port 26, Urgent!!
« Reply #15 on: August 25, 2004, 11:13:22 PM »
ok, thanks,,, it was still listening on 25, after some extensive looking throug the configuration i found it.

but i still dont receive any mail, now that it listens on port 125... can you try and telnet mail.trenskow.dk port 125, to see if its open from the outside?

I thought that i could let it listen on 2 different ports, but it seems that it wouldnt

This is because, on my primary domain, i have a MCBackup with port forwarding, and its setup to send to port 125.
I have another domain wich i am going to set up on the smeserver as well, and it does only have a mail-relay server, wich is sending to port 25.

Is it possible in server manager, to port forward port 25, to port 125 localhost ?

Offline meanpenguin

  • ****
  • 138
  • +0/-0
port 26, Urgent!!
« Reply #16 on: August 25, 2004, 11:25:05 PM »
Your port 125 is conneting to the smtp daemon.

I think I was able to send an email to root
check your smtpfront-qmail logfile
(/var/log/smtpfront-qmail/current)

You could probly port forward 25 to 125
using the portforward package.
(This is assuming that you can connect to port 25)

Ed

trenskow

port 26, Urgent!!
« Reply #17 on: August 26, 2004, 12:17:32 AM »
ok.. now i kind of got it to work... it receives some mails when the smeserver is booting.

But, i couldnt send mail now... i says that it cant connect to smtp on port 25

Offline meanpenguin

  • ****
  • 138
  • +0/-0
port 26, Urgent!!
« Reply #18 on: August 26, 2004, 12:38:41 AM »
I thought you were going to portforward 25 to 125

Ed

trenskow

port 26, Urgent!!
« Reply #19 on: August 26, 2004, 01:26:17 AM »
yep i did... but it doesnt seem to work with the port forwarding that there is in the server-manager

Offline meanpenguin

  • ****
  • 138
  • +0/-0
port 26, Urgent!!
« Reply #20 on: August 26, 2004, 01:35:03 AM »
What did you set the destination ip to?

1.  Add port 25 to the Port Opening panel
2.  Try

 127.0.0.1
 IP address of the server from the LAN side
 IP address of the server from the WAN side

One of these should work....

Ed

trenskow

port 26, Urgent!!
« Reply #21 on: August 26, 2004, 01:52:05 AM »
okay. i am giving a retry, and then i am of to bed.

It seems like, that the problem is, that if i set the smtp to be port 125, then, it can receive, but when the server tries to send, its trying to use port 25.
I now that the webmail did, but i dont know, if this is the same problem, if i am using a mail klient