Last active
November 25, 2016 06:26
-
-
Save elijahchancey/98a40f5b033ac3b61f7c to your computer and use it in GitHub Desktop.
Relaying mail through AWS SES | Chef + Postfix Cookbook + Sasl
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
HOWTO: Use the Postfix Chef Cookbook to have your EC2 server relay all mail through AWS SES. | |
node.default['postfix']['mailtype'] = "master" | |
node.override['postfix']['main']['relayhost'] = "[email-smtp.us-west-2.amazonaws.com]:25" | |
node.default['postfix']['main']['smtp_sasl_auth_enable'] = "yes" | |
node.default['postfix']['main']['smtp_sasl_password_maps'] = "hash:/etc/postfix/sasl_passwd" | |
node.default['postfix']['main']['smtp_sasl_security_options'] = "noanonymous" | |
node.default['postfix']['main']['smtpd_use_tls'] = "yes" | |
node.default['postfix']['main']['mynetworks'] = "42.42.42.0/24, 127.0.0.1/32" | |
node.default['postfix']['main']['mydomain'] = "solongandthanksforallthefi.sh" | |
node.default['postfix']['main']['myorigin'] = "solongandthanksforallthefi.sh" | |
node.default['postfix']['main']['smtp_tls_security_level'] = "encrypt" | |
node.default['postfix']['main']['smtp_tls_note_starttls_offer'] = "yes" | |
node.override['postfix']['sasl']['smtp_sasl_user_name'] = "DONTPANIC" | |
node.override['postfix']['sasl']['smtp_sasl_passwd'] = "DONTPANIC" | |
include_recipe "postfix" | |
include_recipe "postfix::sasl_auth" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment