Hello, I'm Alan

Postfix Outbound SMTP auth

Sunday, June 30 2013

I’ve recently started moving some of my mail hosting back to machines I control. Outbound SMTP can be a hassle for spam reasons, so I’m just using Mandrill.

I Added the following to my main.cf

smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl-passwords
smtp_sasl_security_options=

and in /etc/postfix/sasl-passwords

smtp.mandrillapp.com username:password

Just run “postmap /etc/postfix/sasl-passwords” after editing.