Select Language:
Amazon SES doesn’t have a built-in way to send notifications only when an email address is first added to the suppression list. The notifications you’re receiving are standard bounce and complaint alerts that happen every time SES can’t deliver an email. This means you’ll see multiple notifications for the same email address over time.
To get notifications only when an email address is being added to the suppression list for the first time, you’ll need to set up a custom solution. Here are some simple ways to do this:
First, you can use AWS Lambda together with SNS. Keep your current SNS notifications, but instead of sending them directly to your email, route them through a Lambda function. This function can:
– Keep track of email addresses already in your suppression list, using a database like DynamoDB.
– Check if the email that bounced or was flagged is new.
– Send you a notification only if it’s the first time that email has been added.
– Save the email address so future notifications are skipped.
Another option is to handle this within your application. When you receive bounce or complaint notifications, add logic to check whether that email has already been flagged before. If it has, ignore it; if not, send out your notification and mark it as processed.
You could also consider using SES Event Publishing. While this won’t stop the notifications from happening, you can publish SES events to services like Amazon Kinesis or CloudWatch. Then, you can build custom rules to detect when an email is being suppressed for the first time.
Remember, the existing SNS notifications will still be sent each time an email bounces or complains, so you’ll need to add some filtering outside of SES to only get the alerts you care about for first-time suppressions.




