New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Webhooks and eventsUpdated 26 Oct 2026

Bounce Classification: Turning SMTP Replies into Hard, Soft, Block and Technical Categories

How to classify bounces for your own system: parse enhanced status codes and reply text, map them to hard, soft, block, policy and technical categories, set suppression rules and thresholds, and avoid common misclassification.

AO
Written by Amara Okafor
DNS and Domain Specialist
Reviewed by Karan Malhotra
  • Published14 Mar 2025
  • Read time6 min
  • Length1,179 words
Share this guide

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.

InputsEnhanced status code, basic reply code, reply text, source (synchronous reply or later DSN) and recipient domain
CategoriesHard, soft, block or policy, mailbox full, technical and unknown
ActionsSuppress, retry, alert or investigate, each tied to a category
RuleClassify by evidence, count repeats, and treat unknown cases conservatively

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 table

There 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

LevelExampleReliability
Basic reply class4xx temporary, 5xx permanentGood, but some providers use 5xx for temporary conditions
Enhanced status code5.1.1 unknown user; 5.2.2 mailbox full; 5.7.1 policyGood 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

CategoryTypical signalsAction
Hard: invalid recipient5.1.1, 5.1.2, 5.1.10, "user unknown", "no such user", "domain does not exist"Suppress immediately
Hard: other permanent5.1.x or 5.4.x with address or routing permanenceSuppress after a second occurrence if unsure
Soft: mailbox full4.2.2 or 5.2.2 with quota textRetry; suppress after repeated failures over several days
Soft: temporary4.x.x, deferrals, greylisting, timeoutsLet the MTA retry; count only final failures
Block: reputation or policy5.7.1, 5.7.x with text on IP, domain, spam, blocklist, DMARC, authenticationDo NOT suppress the address; alert and investigate your side
Content or size5.2.3 message too large, 5.6.x content problemsFix the message; do not suppress the address. See size limits
Rate limiting421, 450, 451, 452 with "too many", "rate", "try again"Slow down. See 421
Technical: network or DNSTimeouts, no MX, connection refusedRetry; investigate if it persists
Auto-reply or out of officeNot a bounce; may arrive on the null senderIgnore for suppression. See the null sender
UnknownNo pattern matchedLog, 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

  1. 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.
  2. Match specific patterns before general ones. Check provider-specific block phrases before falling back to the numeric class.
  3. 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.
  4. Suppress hard invalid-recipient bounces at once, and scope the suppression by address, not by message.
  5. Never suppress on block, size or rate-limit categories. Alert the team and mark the affected messages for resend after the cause is fixed.
  6. 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.
  7. Keep an unknown bucket and review it weekly; add new patterns as you meet them.
  8. 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)CategoryAction
550 5.1.1 The email account that you tried to reach does not existHard: invalid recipientSuppress
552 5.2.2 The email account is over quotaSoft: mailbox fullRetry, count
550 5.7.1 Service unavailable; client host blocked using SpamhausBlockAlert, check listing, do not suppress
550 5.7.26 Unauthenticated email is not accepted from this domainBlock (authentication)Fix SPF, DKIM or DMARC. See authentication results
421 4.7.0 Try again later, closing connectionRate limitingSlow down, retry
554 5.4.14 Hop count exceeded - possible mail loopTechnical (loop)Check forwarding; do not suppress immediately
450 4.2.0 greylisted, please try again in 300 secondsSoft: temporaryWait for retry
550 5.4.1 Recipient address rejected: Access deniedHard or policyTreat 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.

Open the validator

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.

Topics#bounces#classification#suppression#dsn#status codes
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales