Bounces and deferrals: reading SMTP replies

By Sendviser · Updated · 8 min read

Every message you send gets an answer from the receiving server, either during the SMTP conversation or later as a bounce message. This guide shows how to read those answers, which ones mean retry and which mean stop, how to retry without making things worse, and when an address should be suppressed.

Three classes of reply

RFC 5321 gives every SMTP reply a three-digit code. The first digit decides what your sending software does next.

First digitRFC 5321 nameWhat to do
2yzPositive CompletionAccepted. Record the delivery.
4yzTransient Negative CompletionNot accepted this time. Queue and retry later.
5yzPermanent Negative CompletionNot accepted. Do not repeat the same request.

RFC 5321 offers a rule of thumb: a reply belongs in 4yz if the same command could succeed when repeated unchanged. A 5yz means something has to change first: the address, the sender’s authentication or the sender’s behaviour.

“Accepted” means the receiving server has taken responsibility for the message. It says nothing about whether the message reached the inbox or the spam folder.

Enhanced status codes (RFC 3463)

Most receivers add an enhanced status code after the basic reply. RFC 3463 defines the format as class.subject.detail.

550 5.1.1 The email account that you tried to reach does not exist.
     | | |
     | | +-- detail 1:  bad destination mailbox address
     | +---- subject 1: addressing status
     +------ class 5:   permanent failure

The class repeats the meaning of the first digit: 2 for success, 4 for persistent transient failure, 5 for permanent failure. The subject narrows it down.

SubjectRFC 3463 nameIn practice
X.0.XOther or undefined statusRead the text
X.1.XAddressing statusThe address is wrong or does not exist
X.2.XMailbox statusThe mailbox exists but has a problem, such as being full
X.3.XMail system statusThe receiving system has a problem
X.4.XNetwork and routing statusConnection, routing or timing problems
X.5.XMail delivery protocol statusProtocol errors
X.6.XMessage content or media statusContent or format problems
X.7.XSecurity or policy statusAuthentication, reputation or policy decisions

The free text after the codes varies widely. The M3AAWG Sender Best Common Practices note that status codes generally follow the RFCs while the descriptive text may follow them only loosely, so a bounce classifier needs both.

Hard bounces, soft bounces and policy blocks

The usual split into hard and soft bounces misses a third kind that needs different handling.

  • Hard bounce: a permanent failure about the address. 5.1.1, “user unknown”, is the classic case. Suppress it.
  • Soft bounce (deferral): a temporary failure, such as a full mailbox, a busy server or a rate limit. Retry, and suppress only if it keeps failing.
  • Policy block: a refusal about the sender, not the recipient: failed authentication, poor reputation, unusual volume. Most carry an X.7.X code, and they can be temporary (4.7.X) or permanent (5.7.X). The address is probably fine. The sender has something to fix.

Real replies, read carefully

The Gmail and Outlook.com replies are quoted from the providers’ documentation and shortened; the Yahoo reply is what its servers return. The address 192.0.2.25 and the domain example.com stand in for yours.

ReplyFromMeaningAction
421 4.7.28 Gmail has detected an unusual rate of email originating from your IP address 192.0.2.25. To protect our users from spam, email sent from your IP address has been temporarily rate limited.GmailRate limited for unusual volumeBack off and slow the whole stream to Gmail, on every route
421 4.7.0 [TSS04] Messages from 192.0.2.25 temporarily deferred due to unexpected volume or user complaintsYahooDeferred for volume or complaintsSlow the stream to Yahoo on every route; check complaints and recent volume changes
452 4.2.2 The recipient's inbox is out of storage space.GmailMailbox fullRetry; suppress if it persists across sends
552 5.2.2 The recipient's inbox is out of storage space and inactive.GmailMailbox full, account inactiveSuppress
550 5.1.1 The email account that you tried to reach does not exist.GmailUnknown userSuppress immediately
550 5.7.26 Unauthenticated email from example.com is not accepted due to domain's DMARC policy.GmailFailed DMARC under a reject policyPause and fix SPF or DKIM alignment; do not suppress recipients
550 5.7.515 Access denied, sending domain example.com does not meet the required authentication level.Outlook.comFrom domain fails Microsoft’s authentication requirementsFix SPF, DKIM and DMARC; do not suppress recipients

Gmail’s full list is on its SMTP errors page. Microsoft explains 5.7.515 on its support page. Authentication fixes are covered in SPF, DKIM and DMARC when you send through several providers.

RFC 3463 says the mailbox-full detail, X.2.2, should be used as a persistent transient failure, so 4.2.2 is the textbook form. Gmail returns 5.2.2 when the mailbox is also inactive. TSS04 is Yahoo’s own tag: its SMTP error codes page gives the causes of “TS” deferrals as complaints from Yahoo users, spam-like content, poor IP reputation and unusual traffic patterns.

Deferrals and throttling: retry with backoff

A 4xx reply is the receiver asking you to slow down or come back later. Google’s dashboard documentation calls temporary failures a throttling tool and warns that senders who do not slow down are likely to see a period of permanent failures. It recommends exponential backoff and, as best practice, stopping completely for a short period before resuming at a slower rate.

RFC 5321 sets the baseline: the retry interval should generally be at least 30 minutes, and the give-up time generally needs to be at least four to five days.

Tell two kinds of temporary failure apart. A connection failure or a timeout says nothing about you: try again later, or over another of your routes. A deferral that names rate, volume, complaints, content or reputation is about you: send less to that provider on every route you use, and never move the mail to another route, IP address or domain to get round it. If a reply is ambiguous, treat it as about you.

A retry policy, in outline:

  1. Classify each reply by code and text: temporary address problem, throttling, permanent address problem, or policy block.
  2. Back off per destination, not only per message. When a provider defers for rate or reputation, lower concurrency and send rate for that whole provider. Never open more connections to push through.
  3. Lengthen the delay between attempts, for example 30 minutes, 1 hour, 2 hours, 4 hours, then every 4 hours. These numbers are illustrative.
  4. Set expiry by message type. Ordinary mail should keep trying for four to five days. A one-time login code is useless once it has expired, so time-sensitive messages can expire sooner.
  5. On expiry, record a soft bounce with the last reply text and feed it into the suppression rules below.

When to suppress

  • Immediately: permanent address failures such as 5.1.1, “mailbox full and inactive” as Gmail uses 5.2.2, and any address that complained or unsubscribed.
  • After repeated soft bounces: Spamhaus’s sender guidelines suggest a threshold of typically 3 to 5 consecutive bounces; M3AAWG suggests removing an address that bounces consecutively at least two times over two weeks or more. Pick a rule and apply it consistently.
  • Never for policy blocks alone. A 5.7.26 or 5.7.515 says your authentication is wrong: fix it and resend. A block that names reputation, content or complaints says the mail is unwanted: stop the stream and fix the cause. Suppressing the recipients, or sending from somewhere else, only hides a sender problem.

Why a hard-bounce rate above 2% matters. On a list built from confirmed sign-ups and kept current, unknown-user failures are uncommon. Spamhaus asks senders to keep the overall bounce rate below 5%, and 2% for hard bounces alone is a stricter working line. M3AAWG notes that large volumes of permanent failures often point to a poorly managed registration process or an old or misapplied list, and that receivers use them to judge a sender’s reputation. Treat a hard-bounce rate above 2% on a send as a list problem, not a delivery problem: stop and find the source before the next send. A verification service is not the fix: it lowers the bounce count and leaves the source in place. Spamhaus says list validation “is not and never will be a replacement for permission”, and Microsoft’s Outlook.com policies forbid checking whether addresses exist without sending mail to them. The same lists often carry spam traps, see Spam traps: what they are and how lists hit them.

Asynchronous bounces (DSNs)

Not every failure arrives during the SMTP conversation. Some servers accept a message and only later find they cannot deliver it. They then send a delivery status notification (DSN) to the envelope sender, the Return-Path address. M3AAWG notes these can arrive hours or even days later and are more common in business-to-business mail.

DSNs follow RFC 3464: a multipart/report message with a human-readable part and a machine-readable message/delivery-status part.

Content-Type: multipart/report; report-type=delivery-status;
    boundary="dsn-boundary"

--dsn-boundary
Content-Type: text/plain

Delivery to [email protected] failed permanently.

--dsn-boundary
Content-Type: message/delivery-status

Reporting-MTA: dns; mx1.example.net

Final-Recipient: rfc822; [email protected]
Action: failed
Status: 5.1.1
Diagnostic-Code: smtp; 550 5.1.1 User unknown
--dsn-boundary--

To match DSNs reliably, encode the recipient in the Return-Path (VERP), for example <[email protected]>, where the token maps to one recipient and one message in your own database. A DSN that arrives days later can then be matched even if the original headers were dropped. Read the Action and Status fields as you would a synchronous reply: “failed” with a 5.X.X status is a hard bounce, “delayed” is informational. Out-of-office replies are not bounces and should never trigger suppression.

How Sendviser handles this

Sendviser retries temporary failures with backoff and keeps one suppression list across every provider: a hard bounce on one route is suppressed on all of them.

Talk to us.

[email protected]