Created
March 18, 2015 20:27
-
-
Save davidrenne/a84937a091c7cf3084a7 to your computer and use it in GitHub Desktop.
Setup mandrillapp on ubuntu with postfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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