Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AWS SNS to handle SES Feedback Notifications #461

Open
garyhtou opened this issue Apr 2, 2024 · 1 comment
Open

Use AWS SNS to handle SES Feedback Notifications #461

garyhtou opened this issue Apr 2, 2024 · 1 comment

Comments

@garyhtou
Copy link
Member

garyhtou commented Apr 2, 2024

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 [email protected].

By sending the SES Feedback notification to a AWS SNS Topic, we can then programmatically unsubscribe these users.

image

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

@sarthaktexas sarthaktexas self-assigned this Apr 2, 2024
@garyhtou
Copy link
Member Author

garyhtou commented Apr 2, 2024

To provide a bit more info, this Rails app should subscribe to the SNS topic (such as via a webhook) — or even a nightly job is fine — to then process these notifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants