How to enable port 465 (smtps) in postfix mailserver

Wednesday, October 28, 2009 posted by Till

More and more internet access providers are closing port 25 to reduce spam except for connections to their own mailservers. If you run your own mailserver and have problems to connect to it on port 25, you can enable port 465 (smtps) in postfix as a workaround. Edit the /etc/postfix/master.cf file:

vi /etc/postfix/master.cf

and remove the # in front of the smtps line. Example for Debain 5, change the line:

#smtps     inet  n       -       -       -       -       smtpd

to:

smtps     inet  n       -       -       -       -       smtpd

and restart postfix:

/etc/init.d/postfix restart

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
  • FriendFeed
  • MisterWong
  • StumbleUpon


4 Responses to “How to enable port 465 (smtps) in postfix mailserver”

  1. Daniel says:

    Postfix documentation directs use of ‘postfix reload’ to re-read configuration files including master.cf.

    The following is an excerpt from the description of the stop command in the postfix man page.

    “Note: in order to refresh the Postfix mail system after a configuration change, do not use the start and stop commands in succession. Use the reload command instead.”

  2. monkey says:

    Sorry, but after the release line “SMTPS …….” started soon and will SMTP or SMTPS not starts

  3. medwinz says:

    @monkey

    For openSUSE you need to change the smtps become 465, it will look like

    465 inet n – n – – smtpd

    I use it and it runs flawlessly

Leave a Reply