Koozali.org: home of the SME Server

How to change external SMTP listening port?

Offline MSmith

  • *
  • 675
  • +0/-0
How to change external SMTP listening port?
« on: August 23, 2015, 04:07:35 PM »
This has been asked a few times in the past decade or so but I haven't found a clear answer. As always, my comprehension of available resources may be the issue.

I've started using SpamHero on a trial basis and that service has the option to deliver filtered email to my SME Server on a port other than 25. So I'd like qpsmtpd to receive email on, say, port 5252 and *ignore* anything sent to port 25.

Can this be done? What have I missed?

I've read the following:
http://wiki.contribs.org/DB_Variables_Configuration
http://wiki.contribs.org/Email
http://wiki.contribs.org/PortRedirect

...

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: How to change external SMTP listening port?
« Reply #1 on: September 08, 2015, 10:09:20 PM »
Hi,

You can alter to parameter TCPPort in the service smtpd and then restart qpsmtpd (sv t qpsmtpd).

Check the current with:
config show smtpd

set with
config setprop smtpd TCPPort 25

/Jesper

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to change external SMTP listening port?
« Reply #2 on: September 09, 2015, 05:13:20 AM »
Note that that also will change the internal SMTP listening port.

Offline JohnG

  • ****
  • 89
  • +0/-0
Re: How to change external SMTP listening port?
« Reply #3 on: September 09, 2015, 03:58:52 PM »
If the server's behind a firewall/router then it should just be a matter of port forwarding all the 5252 traffic to 25 on the server. If it's directly addressable then the listening port on the server needs to be changed as already mentioned.