Postfix listing on additional port?

Several email users have ISP’s which block port 25 for connecting to SMTP servers. Is there any way to set Postfix to listen on an additional port, say 2525?

Hey Dave,

Yep. And it’s pretty easy to do.

In the Postfix module, click on Server Processes.

Click on "Add a new server process"

Fill in the following:

Transport Type: Internet
Enabled: Yes
Server name/port: 2525
Process command: smtpd (if using smtpd auth, you would use the Process command "smtpd -o smtpd_sasl_auth_enable=yes")
Private to mail system?: No
Run as Postfix user?: Default (Yes)
Chroot to mail queue directory?: No
Automatically wake up process?: Default
Maximum processes: Default

Save it. Restart postfix. Test it.

Also, if you’re not afraid of the command line, you might find it easier just to open up the /etc/postfix/ file and duplicate the smtp line like so (this example includes the smtp auth):

smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes
2525 inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes

Thanks Joe – used the command line and it worked perfectly.