Amazon SES unsubscribe and bounce notifications

The Amazon Simple Email Services (SES) is a perfect solution for sending emails to users. SES also give you to notifications about the emails being sent. The type of notifications you can receive are complaints, bounces or deliveries.

You need to configure SES to deliver notifications to a SNS topic.

Create a new topic in SNS.

Next you can configure SNS to deliver notifications for the topic to a subcription. In this case I'm configuring the http protocol with an url as endpoint.

This gist contains code (pyramid) for parsing these notifications and handle bounces and complaints.


References