Setup an alternate SMTP port

Does your ISP block port 25? Here is the trick you need.

1. Edit Postfix's master.cf to include your new port definition

Add the following to /etc/postfix/master.cf

2525 inet n - - - - smtpd
    -o smtpd_sasl_auth_enable=yes
#    -o smtpd_tls_wrappermode=yes
    -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
    -o milter_macro_daemon_name=ORIGINATING

NOTE: Uncomment the smtpd_tls_wrappermode=yes line if you want to enable SSL on that port instead of TLS. Sounds strange but that's how it worked for me.

2. Edit change your mail clients smtp port

To 2525 in this case.

3. Reload postfix

postfix reload

or

/etc/init.d/postfix restart


Editing this page means accepting its license.

Page last modified on February 11, 2010, at 06:38 AM EST