Lesson 8 of 9 · 25m
Bounce Handling, Complaint Suppression, and List Hygiene as a Security Control
Classify permanent and temporary failures correctly, operate suppression lists, process bounces asynchronously, and avoid resending loops that destroy trust.
Bounce handling is where email operations become data-integrity work. If you treat all failures as the same, you will either suppress people who could have received mail tomorrow or keep hammering dead addresses until receivers conclude you are negligent. Both are bad. Suppression is not merely a marketing hygiene feature; it is abuse prevention, privacy hygiene, and sometimes a compliance requirement.
Permanent does not mean inconvenient
A 5xx permanent failure means retrying the same recipient in the same form is not expected to succeed:
550 5.1.1 user unknown
550 5.2.2 mailbox full policy-dependent, often treated as permanent by receivers
554 5.7.1 delivery not authorizedA 4xx temporary failure means retry later:
450 4.2.1 mailbox temporarily unavailable
452 4.3.1 insufficient system storage
421 4.7.0 temporary reputation or service throttleReal-world responses are messy. Some receivers use technically wrong codes, some return text that matters more than the code, and some accept-then-bounce asynchronously. Build classification around enhanced status codes, diagnostic text, receiver-specific behavior, and observed repeatability. Do not write a naive regex that treats the number 550 as gospel forever.
Model the lifecycle explicitly
Track recipient state per sending stream, not as one global boolean:
active; soft_failing; hard_bounced; complained; unsubscribed; manual_review
# state is per sending stream, with complaint and unsubscribe suppression immediateA user can remain active for password resets while suppressed for newsletters. Conflating streams either blocks critical account mail or violates unsubscribe expectations.
Bounce events arrive through multiple doors
SMTP bounces can arrive as inbound messages to your envelope sender domain, provider webhooks, API polling, or log events. Normalize them into a single event schema:
{
"type": "bounce", "stream": "transactional", "recipient": "user@example.net",
"provider_message_id": "8f2aa5d4", "smtp_status": "550", "enhanced": "5.1.1",
"diagnostic": "user unknown", "occurred_at": "2026-11-30T18:45:12Z"
}Verify webhook authenticity before trusting it. If your suppression system can be modified by unauthenticated webhook posts, an attacker can deny service to users or manipulate your sending hygiene.
List hygiene protects recipients and infrastructure
Continuing to send to dead addresses wastes money and damages reputation. Continuing after explicit complaints is worse. Build automatic decay rules, but preserve audit evidence:
hard bounce or complaint: suppress immediately for the affected stream
repeated soft bounce: suppress after defined attempts; re-engagement requires explicit action
unsubscribe: immediate, durable, synchronised across systemsDo not let a CRM import overwrite suppression. That is how old mistakes return wearing a new integration's clothes. Suppression needs provenance: source event, timestamp, actor, and reason.
Field notes
- Never automatically retry a hard bounce as-is; mailbox providers notice repetitive pointless traffic.
- Catch-all domains make pre-send validation unreliable. Sending behavior is the real test.
- Role accounts such as
postmasterandabusehave special operational meaning; do not suppress them carelessly on your own domain. - Process unsubscribe and complaint events near-real-time. Batch jobs once a day are not enough for high-volume streams.
- Keep sample raw bounces in a regression corpus. Every parser upgrade should be tested against real oddities.
Was this lesson helpful?