Enable submission port 587 in Postfix

Enabling submission port support for Postfix is really easy. To have postfix listen on both 25 and 587, be sure that the line starting with submission is uncommented in /etc/postfix/master.cf:

smtp      inet  n       -       n       -       -       smtpd
submission inet n      -       n       -       -       smtpd
Printed from: http://rackerhacker.com/2007/07/04/enable-submission-port-587-in-postfix/ .
© Major Hayden 2012.

6 Comments   »

  • Trashman says:

    I think you mean: /etc/postfix/master.cf (not main.cf)

  • major says:

    @Trashman - Thanks for spotting the error! I've corrected it in the post.

  • And if your home machine is running linux, you can test your mail server's new config by running the 'swaks' command:

    swaks --from me@example.tld --to my-offsite-box@example2.tld --server my-mail-server.example.tld -a -au my-username -ap my-password -tls --port 587

    Yeah, the mix of single-dash and multiple-dash parameters is intentional. Swaks has funny arguments.

    If you have never playes with swaks, learn it. Especially if you're a mail admin. Awesome tool.

  • sru says:

    Butbutbut doesn't :587's RFC *REQUIRE* authentication (i.e. it should not allow delivery even to local users without auth)? It shouldn't be a plain "copy" of :25.

  • greenpossum says:

    @sru: Yes, that submission line is generally followed by a couple more specifying SSL and authentication.

  • nelsone says:

    The above configure can't be use 587 ssl port ! please tell me how to enable 587 ssl port in postfix !!

Trackbacks/Pingbacks

  1. closing port 25 - Zimbra - Forums

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this