Setup postfix to work with Amazon SES

You are here

Contact

Israel Office

+972-52-838-7222

+972-52-430-5252

Europe office

+33-695-805-004

05.03.2012
Setup postfix to work with Amazon SES
submitted by: Shai Weinstein

2. configure stunnel: edit configuration file /etc/stunnel/stunnel.conf [ssmtp_ses] accept = 127.0.0.1:10111 client = yes connect = email-smtp.us-east-1.amazonaws.com:465 3. edit postfix configuration file /etc/postfix/main.cf relayhost = [127.0.0.1]:10111 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_sasl_mechanism_filter = plain, login 4. create /etc/postfix/sasl_passwd, set the user and password , get it from the AWS SES console: 127.0.0.1 user:password and generate hashed file: cd /etc/postfix ; postmap hash:sasl_passwd 5. make sure that your application is sending from an email address which is verified by Amazon's SES (use the AWS SES console to verify new addresses). 6. reload postfix configuration and you are done..

Comments

A question -
Now, that postfix works with SES, does it solve the problems of the PHP mail(), which uses sendmail to send emails (and is very limited on EC2...) ?

I didn't try to use mail() directly.
Drupal is using mail() functions and it works fine with postfix

Add new comment

blogs