Author Topic: relayhost mandrillapp  (Read 2858 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
relayhost mandrillapp
« on: April 02, 2015, 11:17:29 PM »
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:
Code: [Select]
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:
Code: [Select]
echo "[smtp.mandrillapp.com]    MANDRILL_USERNAME:MANDRILL_API_KEY" > /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd