Koozali.org: home of the SME Server

How do I change the smtp port?

Bill Prescott

How do I change the smtp port?
« on: July 10, 2003, 06:18:27 PM »
Help,

I am trying to use Mailwarden on a separate box. They tell me to change the smtp port on the mail server (SME 5.6) from 25  to 28 so it won't normally be connected to. How do I do this with SME 5.6?

Mail warden will catch the mail and after filtering it it will send it to the SME5.6 smtp port set in it.

Nathan Fowler

Re: How do I change the smtp port?
« Reply #1 on: July 11, 2003, 02:14:09 AM »
Search the forum sir. :)

Bill Prescott

Re: How do I change the smtp port?
« Reply #2 on: July 11, 2003, 05:37:47 PM »
Okay, so i searched for change smtp port and it came up with a bunch of entries about port forwarding. I'm not sure this is what I want... I want to change the port to another one, not forward it to another one... Am I just searching for the wrong thing?

Dean Mumby

Re: How do I change the smtp port?
« Reply #3 on: July 11, 2003, 06:11:45 PM »
edit /etc/services

change
smtp    25
to
smtp 125 ( or whatever you want)

then

service smtpfront-qmail restart

Regards
Dean

Nathan Fowler

Re: How do I change the smtp port?
« Reply #4 on: July 11, 2003, 06:12:59 PM »
Bill/Deal
It's my understanding that /etc/services is templated (on the version I run), if this is the case for 5.5 be sure to create a custom template.  See http://www.e-smith.org/custom for details.

Dean, thanks for the information.

Jay

Not working for me
« Reply #5 on: July 15, 2003, 09:28:21 PM »
I have tried changing the smtp port as directed here using a copy of services in templates-custom/etc to 2525, then expand the template. When I restart smtpfront-qmail and portscan it shows that port 25 has been closed but it does not open port 2525. I tried using portopen to open port 2525 but I have not been able to open any port using portopen.
I edited the smtp line to be 2525 instead of 25, am I missing something obvious here?
If I change back to 25 and restart smtpfront-qmail portscan shows that port 25 is again opened so I can tell that the changes are having an effect.