Postfix SMTP Port

Discussion in 'Installation/Configuration' started by admins, Aug 21, 2009.

  1. admins

    admins Member HowtoForge Supporter

    Hi all

    I want, that postfix has only port 25 authentificated and port 587 authentificated open.

    How could I do this?

    Thanks
    admins
     
  2. admins

    admins Member HowtoForge Supporter

    I've it:

    Code:
    587      inet  n       -       -       -       -       smtpd
      -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
    25      inet  n       -       -       -       -       smtpd
      -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
    
     
  3. admins

    admins Member HowtoForge Supporter

    May how could I deactivate port 25 for outgoing mails?

    Thanks
    admins
     
  4. fbnewtz

    fbnewtz New Member

    That doesn't sound like a very good idea? The server even if you are only receiving emails still has to send out bounce messages and other communication.

    This line in the master.cf file pretty much explains what you need to do to secure the server from spammers.

    Code:
    #submission inet n       -       -       -       -       smtpd
    #  -o smtpd_enforce_tls=yes
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    Of course you want to remove any #'s in there.

    This is all explained in various How To's on the site. A little searching will pull this information up with out a problem.

    Thanks,

    Fred
     

Share This Page