Notes on how to monitor [[Email deliverability]] of emails sent through [[AWS SES]].
## Receive notifications for bounces and complaints
Reasons for bounces can be quite opaque, so getting the full bounced email along with email headers back, can grealy help with debugging the reason for these bounces.
The below steps are a simplification of [this AWS tutorial](https://aws.amazon.com/blogs/messaging-and-targeting/amazon-ses-set-up-notifications-for-bounces-and-complaints/).
### Create/configure AWS resources:
- Create new [[AWS SNS|SNS]] standard topic named `ses-email-monitoring`. Add email addresses to subscribe
- Update existing SES Verified Identity (e.g. a noreply email address that you send emails from) as follows:
- edit the Feedback Notifications for each feedback type (Bounce, and Complaint) and configure it to point to the `ses-email-monitoring` SNS topic, ensuring to select "Include original email headers"
- Disable "Email feedback forwarding" to avoid receiving double notifications through Email Feedback Forwarding and SNS notifications.
### Test notifications
Uses [Amazon SES Mailbox Simulator](https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from-console.html) to test send and receive a bounce notification via SNS topic.
Follow "Step 3" in [the tutorial](https://aws.amazon.com/blogs/messaging-and-targeting/amazon-ses-set-up-notifications-for-bounces-and-complaints/) for this.