Every bounce carries a reason, but the reasons arrive as a mixture of numeric codes, enhanced status codes and free text written by thousands of different mail systems. To protect your sender reputation you must act on them correctly: suppress addresses that will never work, retry the ones that are only temporarily failing, investigate blocks that signal a problem on your side and avoid punishing recipients for your own configuration errors. That requires classification, a consistent way of mapping raw replies to a small set of categories with defined actions. This guide shows how to build one: which fields to read, a practical category scheme, rules for suppression and alerts, and the traps that cause good addresses to be removed or bad ones to be mailed repeatedly. It builds on hard and soft bounces, reading a bounce code and suppression lists.
What a bounce contains
Final-Recipient: rfc822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: dns; mx.example.net
Diagnostic-Code: smtp; 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox tableThere are two sources. A synchronous bounce is the reply your server received during the SMTP conversation. An asynchronous bounce is a later delivery status notification (DSN) sent to your return-path after a receiving system accepted and then rejected the message. The fields are similar, but asynchronous bounces from different systems vary in format, so they need a tolerant parser. Prefer the structured parts, the Status field and the Diagnostic-Code, over free text. See VERP for linking a notice back to the recipient and message.
The three levels of code
| Level | Example | Reliability |
|---|---|---|
| Basic reply class | 4xx temporary, 5xx permanent | Good, but some providers use 5xx for temporary conditions |
| Enhanced status code | 5.1.1 unknown user; 5.2.2 mailbox full; 5.7.1 policy | Good where present; many systems use them loosely |
| Reply text | "Recipient address rejected: User unknown" | Rich but unstandardised; provider-specific patterns needed |
A practical category scheme
| Category | Typical signals | Action |
|---|---|---|
| Hard: invalid recipient | 5.1.1, 5.1.2, 5.1.10, "user unknown", "no such user", "domain does not exist" | Suppress immediately |
| Hard: other permanent | 5.1.x or 5.4.x with address or routing permanence | Suppress after a second occurrence if unsure |
| Soft: mailbox full | 4.2.2 or 5.2.2 with quota text | Retry; suppress after repeated failures over several days |
| Soft: temporary | 4.x.x, deferrals, greylisting, timeouts | Let the MTA retry; count only final failures |
| Block: reputation or policy | 5.7.1, 5.7.x with text on IP, domain, spam, blocklist, DMARC, authentication | Do NOT suppress the address; alert and investigate your side |
| Content or size | 5.2.3 message too large, 5.6.x content problems | Fix the message; do not suppress the address. See size limits |
| Rate limiting | 421, 450, 451, 452 with "too many", "rate", "try again" | Slow down. See 421 |
| Technical: network or DNS | Timeouts, no MX, connection refused | Retry; investigate if it persists |
| Auto-reply or out of office | Not a bounce; may arrive on the null sender | Ignore for suppression. See the null sender |
| Unknown | No pattern matched | Log, count and review; treat conservatively |
Why the block category matters most
The costliest mistake is treating a block as a hard bounce. When Gmail or Microsoft rejects mail because your IP reputation is low, the code is permanent (5.7.1) but the address is perfectly valid. If your system suppresses every such address, you will wipe out good subscribers during a deliverability incident and then be unable to recover them. The opposite mistake is leaving true invalid-recipient bounces unsuppressed, which keeps your bounce rate high. To tell them apart, combine the code with the reply text and with the pattern across recipients: a block affects many addresses at one provider at once, while an invalid-recipient bounce affects one address. See reputation recovery.
Rules that work in practice
- Normalise first. Extract the enhanced code, the basic code, the recipient, the remote host and the lowercase text into fields; keep the raw text for audit.
- Match specific patterns before general ones. Check provider-specific block phrases before falling back to the numeric class.
- Use thresholds for soft failures. For example, suppress after three full-mailbox bounces across seven days, or after five consecutive deferrals that end in expiry.
- Suppress hard invalid-recipient bounces at once, and scope the suppression by address, not by message.
- Never suppress on block, size or rate-limit categories. Alert the team and mark the affected messages for resend after the cause is fixed.
- Detect clusters. If more than a small percentage of one provider's recipients bounce with the same reason within an hour, raise an incident rather than processing each bounce individually.
- Keep an unknown bucket and review it weekly; add new patterns as you meet them.
- Record the classification result and rule version on each event so that later rule changes can be compared with history.
Example mapping
| Raw reply (shortened) | Category | Action |
|---|---|---|
| 550 5.1.1 The email account that you tried to reach does not exist | Hard: invalid recipient | Suppress |
| 552 5.2.2 The email account is over quota | Soft: mailbox full | Retry, count |
| 550 5.7.1 Service unavailable; client host blocked using Spamhaus | Block | Alert, check listing, do not suppress |
| 550 5.7.26 Unauthenticated email is not accepted from this domain | Block (authentication) | Fix SPF, DKIM or DMARC. See authentication results |
| 421 4.7.0 Try again later, closing connection | Rate limiting | Slow down, retry |
| 554 5.4.14 Hop count exceeded - possible mail loop | Technical (loop) | Check forwarding; do not suppress immediately |
| 450 4.2.0 greylisted, please try again in 300 seconds | Soft: temporary | Wait for retry |
| 550 5.4.1 Recipient address rejected: Access denied | Hard or policy | Treat as hard after repetition; some providers use this for non-existent users |
Testing your classifier
Treat the rules as code. Collect a few hundred real bounce samples from your own logs, label them by hand and use them as a regression set. Every time you change a rule, run the set and review the differences. Include awkward cases: providers that return 5.1.1 for blocked senders, systems that put a permanent code on a quota problem, multi-line replies where the useful sentence is on the second line and localised text in languages other than English. Keep per-provider notes on quirks, because providers change wording occasionally and a silent change can turn yesterday's block pattern into today's unknown. Measure how much traffic lands in the unknown bucket; a healthy classifier keeps it to a small share and shrinks it over time.
Using the data
- Suppression. Sync classified hard bounces to the global suppression list, which every campaign must check.
- Reporting. Show customers or teams the category rather than the raw text, with the raw text one click away.
- Alerting. Alert on spikes in the block category or on a rising unknown bucket.
- Feedback to acquisition. Many hard bounces from one signup source reveal bad forms or a list-buying problem.
- Webhooks. Send the category and code in the event payload so your own systems can act. See delivery events.
Good classification is a small piece of engineering with a large effect: it protects reputation by removing dead addresses, protects subscribers by not removing live ones during a block and gives your team early warning when something changes at a provider. Start with the scheme above, keep it data driven and review the unknown bucket often.
Validate addresses before sending Catch invalid recipients before they bounce.
References and further reading
Frequently asked questions
What is bounce classification?
Mapping raw SMTP replies and DSN fields to a small set of categories, such as hard, soft and block, each with a defined action.
Should every 5xx bounce be suppressed?
No. Block and policy rejections such as 5.7.1 usually concern your sending reputation, not the address, so alert instead of suppressing.
When should a mailbox-full bounce lead to suppression?
After repeated failures over several days, for example three within a week, depending on your rules.
Which part of a bounce is most reliable?
The structured Status and Diagnostic-Code fields, supported by provider-specific text patterns.
What should I do with unmatched bounces?
Keep them in an unknown bucket, review it regularly and add patterns for new cases.