hackclub / hackclub/hackathons-backend
Use AWS SNS to handle SES Feedback Notifications
- Dominant language
- Ruby
- Stars
- 29
- Forks
- 8
- Avg merge
- 12h 2m
- Merged PRs (30d)
- 41
Description
Whenever we send digests on Tuesdays, HCB gets spammed with hundreds of `"Delivery Status Notification (Failure)"` emails.
When we receive these notifications, it generally means the email bounced (e.g. email address no longer valid), or there was a complaint (marked as spam). Because of this, we want to unsubscribe the user. Currently, these notifications get sent to `hackathons@hackclub.com`.
By sending the SES Feedback notification to a AWS SNS Topic, we can then programmatically unsubscribe these users.

https://docs.aws.amazon.com/ses/latest/dg/notification-contents.html
https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity-using-notifications-sns.html
_follow up with @MelSmith104 and @alexdevz once completed_
Contributor guide
Assessment
This issue has not been assessed yet.