AWS Builder Center

Setting up SES for transactional email taught me more about bounce handling than sending itself

Sending the first email through Amazon SES was the easy part, actually handling bounces and complaints properly turned out to be where most of the real work was.

Sending a test email through  SES  took about ten minutes once the domain was verified, which made me think the whole integration would be similarly quick.


Why bounces matter more than they seem


What I had not appreciated was that a sending reputation with SES, and with email providers in general, depends heavily on how you handle bounces and complaints, not just on successfully sending mail. Ignoring bounce notifications and continuing to send to addresses that hard bounce repeatedly is exactly the pattern that gets a sending domain flagged.


Wiring up the feedback loop


I set up an SNS topic subscribed to bounce and complaint notifications from SES, feeding into a small Lambda function that marks the offending email address as suppressed in our own user table, so the application simply stops trying to send to that address going forward without anyone needing to notice manually.


The result


A few weeks in, the suppression list had already caught a handful of addresses that were clearly typos made during signup, addresses that would have kept bouncing silently and slowly hurting our sending reputation if nobody had been watching. Sending the email was the ten minute part of this integration, building the feedback loop that keeps sending reputation healthy took the rest of the week.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article