Has anyone been able to re-configure postfix to always relay via Mandrillapp (relayhost = [smtp.mandrillapp.com])? In my case, my domain email is being hosted with another server.
Is it possible? I tried to add the info. below but it is not working.
Thank you very much for any assistance on this.
Add the following lines to file /etc/postfix/main.cf:
relayhost = [smtp.mandrillapp.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
# Make sure Postfix listens to localhost only
inet_interfaces = 127.0.0.1
Set up your Mandrill credentials for Postfix:
echo "[smtp.mandrillapp.com] MANDRILL_USERNAME:MANDRILL_API_KEY" > /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd