Skip to main content

Setting up SES for email sending

Setting up Amazon SES to send (but NOT receive) emails:

- Register your domain in Route 53 (or transfer it).
- In Amazon SES, create a new verified identity for your domain. Choose Easy DKIM and make sure both 2048-bit RSA and "Publish to Route 53" are enabled. Enable a custom MAIL FROM domain and keep the "Publish MX record to Route 53" box checked.

Verification should happen on its own as Route 53 will handle it for you.

- Create a configuration set. Once it's created, add an Event Destination to it, and set the destination to an Amazon SNS topic (you can create the topic in the same dialog). You can choose which notifications to publish to it.
- Go into the Amazon SQS console, and create a Standard queue. Ensure you set "Receive message wait time" to 20 seconds to enable optimal long polling.
- Subscribe your new SQS queue to the SNS topic you created earlier. It can now retrieve events from SNS via polling for them. You can use this to monitor e.g. failed email sending.