Automated Sendmail Configuration for AWS SES on Elastic Beanstalk
This repository provides an ebextensions solution to configure sendmail to use Amazon SES.
This solution only provides a way to automate the configuration described in Amazon's official documentation.
Please check the Prerequisites and read the documentation thoroughly before using this.
Add Environmental Variables to EB
MAIL_HOST- The SMTP server to use EX
email-smtp.us-east-1.amazonaws.com(refer to smtp connection strings at the bottom of the page)
MAIL_USERNAME- Amazon SES username
MAIL_PASSWORD- Amazon SES password
MAIL_DOMAIN- Verified domain to send mail from. Must be qualified with Amazon SES
.ebextensions folder to the top level of your application directory
Sendmail usage is normal but you must specify the sender address as a verified SES email address using the
-f option like so:
sudo /usr/sbin/sendmail -f firstname.lastname@example.org email@example.com
Make a PR for some extra functionality and I will happily accept it :)
This repository is licensed under the MIT license.