Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: trenskow 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?
-
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
-
i just edited the /etc/service
i did'nt edit any template file
what should i do there?
-
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
-
ok thanks ;-)
*EDIT*
found it... im a noob here, so next step is trying to figure out, how to expand the template
-
/sbin/e-smith/expand-template /etc/services
-
thnks... do i need port 25 to be closed for smtp? cause now it seems fine, but no mails are arriving
-
Have you opened port 26?
-
uhh.... is'nt it, what i just have done above?
-
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
-
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
-
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:
-
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
-
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
-
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
-
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 ?
-
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
-
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
-
I thought you were going to portforward 25 to 125
Ed
-
yep i did... but it doesnt seem to work with the port forwarding that there is in the server-manager
-
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
-
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