Skip to content

Instantly share code, notes, and snippets.

@davidrenne
Created March 18, 2015 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidrenne/a84937a091c7cf3084a7 to your computer and use it in GitHub Desktop.
Save davidrenne/a84937a091c7cf3084a7 to your computer and use it in GitHub Desktop.
Setup mandrillapp on ubuntu with postfix
sudo apt-get install mailutils
sudo apt-get install libsasl2-modules
sudo echo "[smtp.mandrillapp.com] YOURUSER:YOURPASSWORD" > /etc/postfix/sasl_passwd
sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo vim /etc/postfix/main.cf
delete relay host line
And add
# enable SASL authentication
smtp_sasl_auth_enable = yes
# tell Postfix where the credentials are stored
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
# use STARTTLS for encryption
smtp_use_tls = yes
relayhost = [smtp.mandrillapp.com]
sudo /etc/init.d/postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment