Created
September 29, 2011 23:06
-
-
Save zapnap/1252184 to your computer and use it in GitHub Desktop.
postfix config for AWS-SES
This file contains hidden or 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
# /etc/postfix/main.cf | |
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | |
biff = no | |
append_dot_mydomain = no | |
readme_directory = no | |
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for | |
# information on enabling SSL in the smtp client. | |
myhostname = <%= RUBBER_ENV %> | |
alias_maps = hash:/etc/aliases | |
alias_database = hash:/etc/aliases | |
mydestination = <%= RUBBER_ENV %>, localhost.localdomain, localhost | |
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | |
mailbox_size_limit = 0 | |
recipient_delimiter = + | |
inet_interfaces = all | |
# Amazon SES | |
default_transport = aws-email | |
relay_transport = smtp | |
relayhost = | |
# /etc/postfix/master.cf (transport) | |
aws-email unix - n n - - pipe | |
flags=R user=mail argv=/mnt/mail/amazon/bin/ses-send-email.pl -r -k /mnt/mail/amazon/aws-credentials -e https://email.us-east-1.amazonaws.com -f ${sender} ${recipient} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment