Skip to main content

Bounce and error codes

SMTP Error Codes Explained (With a Lookup Table)

By Tom Sather•Published •8 min read

SMTP errors pair a three-digit reply code with an x.y.z status code. A 4xx is temporary and retried, a 5xx is permanent. How to read both, plus a lookup table.

On this page

Every SMTP error has two codes. The three-digit reply code (like 550) tells the sending server what to do next: a 4xx means "temporary, try again later" and a 5xx means "permanent, don't retry." The enhanced status code (like 5.7.26) narrows down why, and the text after it, written by the receiving server, usually tells you exactly what to fix.

The anatomy of an SMTP error

Here's a typical rejection, this one from Gmail:

550-5.7.26 This email has been blocked because the sender is unauthenticated.
550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
550 5.7.26 ... - gsmtp

Three pieces:

  1. Reply code (550). Defined in RFC 5321, the SMTP standard. It's meant for software: it tells the sending server whether to retry, give up or carry on. Multi-line replies repeat it with a hyphen (550-) on every line except the last.
  2. Enhanced status code (5.7.26). Defined in RFC 3463 and extended by providers. It's a class.subject.detail triple that classifies the problem more precisely than the reply code can.
  3. Diagnostic text. Free text from the receiving server. RFC 5321 says the number is for machines and the text is for humans, and in deliverability work the text is where the answer lives. It often names a blocklist, a policy, a help URL or a provider-specific code like Microsoft's S3150 or Yahoo's TSS04.

Gmail adds gsmtp to the end of all its errors. If you see gcdp in there too, the rejection came from a custom rule the recipient's Google Workspace admin set up, not from Gmail itself.

First digit: temporary or permanent

Reply code starts withMeaningWhat your server does
2xxSuccessMoves on. 250 is the "OK" you want to see.
3xxIntermediateSends more (for example, 354 after DATA means "send the message body").
4xxTemporary failure (a deferral)Queues the message and retries. If it keeps failing, it eventually gives up and bounces.
5xxPermanent failureStops and returns a bounce to the sender. Retrying the same message unchanged won't help.

That 4xx versus 5xx split matters more than people think. A 4xx deferral is not a bounce yet, and your ESP may report it as "delayed" or "soft bounce." But a 4xx from a mailbox provider is often a reputation warning. Gmail's 421 4.7.0 and Yahoo's TSS04 are both temporary codes that mean "we don't trust you enough right now." Ignore enough of them and they turn into 5xx rejections.

The enhanced status code, decoded

RFC 3463 splits the code into class, subject and detail. The class mirrors the reply code (2 success, 4 temporary, 5 permanent). The subject tells you which part of the system complained:

SubjectCategoryWhat it usually points to
x.0.xOther or undefinedCatch-all. Read the text.
x.1.xAddressingThe recipient or sender address is wrong or doesn't exist. 5.1.1 is "bad destination mailbox address."
x.2.xMailboxThe mailbox is full, disabled or inactive.
x.3.xMail systemThe receiving system has a problem, such as a message that's too big.
x.4.xNetwork and routingDNS or routing trouble, or "delivery time expired" (4.4.7) after retries ran out.
x.5.xProtocolThe SMTP conversation itself went wrong.
x.6.xContent or mediaThe message format or content can't be handled.
x.7.xSecurity or policyAuthentication, reputation, blocklists, policy blocks. This is where most deliverability problems live.

Providers add their own detail numbers on top of the RFC ones. Gmail's 5.7.26 and Microsoft's 5.7.708 aren't in RFC 3463, but they follow the pattern: 5 means permanent, 7 means policy.

Lookup table: common codes and where to start

The same code can mean different things at different providers, so the "usual cause" column is the most common reading, not the only one. Click through for the full diagnosis.

CodeUsual meaningTypeStart here
421 4.7.0Gmail deferral, often low reputation or a temporary blockTemporary421 4.7.0
421 4.7.28 / 550 5.7.28Gmail saw an unusual rate of unsolicited mailTemp / perm421 4.7.28
421 4.7.27, 4.7.29, 4.7.30, 4.7.32Gmail rate limiting for SPF, TLS, DKIM or DMARC alignment failuresTemporaryGmail authentication rate limits
451 4.7.650Microsoft throttling due to IP reputationTemporary451 4.7.650
421 / 451 with TS01 to TSS09Yahoo deferralTemporaryYahoo deferral codes
550 (generic)Permanent failure, cause in the textPermanentSMTP 550
550 5.1.1Recipient address doesn't existPermanent550 5.1.1
550 5.1.8Microsoft 365: your outbound account is blockedPermanent550 5.1.8
550 5.4.1Microsoft: recipient address rejected, access deniedPermanent550 5.4.1
550 5.7.1Delivery not authorized, message refused (policy)Permanent550 5.7.1
550 5.7.1 (Gmail, "likely unsolicited")Gmail spam blockPermanentGmail 550 5.7.1
550 5.7.25Sending IP has no PTR (reverse DNS) recordPermanent550 5.7.25
550 5.7.26Gmail: unauthenticated mailPermanent550 5.7.26
550 5.7.509Microsoft: sending domain fails DMARC with p=rejectPermanent550 5.7.509
550 5.7.511Microsoft 365: banned senderPermanent550 5.7.511
550 5.7.515Outlook.com: domain doesn't meet authentication requirementsPermanent550 5.7.515
550 5.7.606 to 5.7.649Microsoft: banned sending IPPermanent550 5.7.606-649
550 5.7.708Microsoft 365: traffic not accepted from this IPPermanent550 5.7.708
550 5.7.0 / 5.7.1 "per DMARC policy"Receiver enforced your DMARC reject policyPermanentRejected per DMARC policy
554 5.7.1Message refused, or relay access deniedPermanent554 5.7.1
554 5.7.1 [CS01] / [HM08]iCloud policy rejectionPermanentiCloud CS01
550 with S3150 / S3140Outlook.com: your IP range is on Microsoft's block listPermanentOutlook S3150

If the bounce names a public blocklist (zen.spamhaus.org, bl.spamcop.net, b.barracudacentral.org), the code matters less than the list. Go to email blocklists and find the list by name.

How to use a code without being misled by it

  • Pattern beats single bounces. One 550 5.7.1 is noise. Five thousand of them at one provider since Tuesday is a diagnosis. Group your bounces by receiving domain and by code before you change anything.
  • The provider matters as much as the code. A 5.7.1 from Gmail, Microsoft and a corporate Proofpoint gateway are three different problems. Note who generated the bounce (the remote server in the NDR) before you look up the code.
  • Your ESP's bounce category isn't the bounce. "Soft bounce" and "hard bounce" are ESP labels, and some ESPs classify policy blocks as hard bounces and suppress good addresses. Pull the raw SMTP text.
  • Fix the cause, not the code. Codes for authentication (5.7.26, 5.7.509, 5.7.515, the Gmail 4.7.2x and 4.7.3x family) are usually DNS fixes you can check with the SPF, DKIM and DMARC checker. Codes for reputation (421 4.7.0, 5.7.28, S3150, TSS04) mean something about your sending practices needs to change, and no DNS record will fix them.

For a step-by-step walkthrough of pulling apart a real bounce message, see how to read a bounce message.

When to get help

If bounces are spread across several providers with different codes, or a block hasn't lifted after you've fixed the obvious cause, it's usually a reputation problem with more than one input. That's worth a second pair of eyes; get in touch.

FAQ

What's the difference between a soft bounce and a hard bounce?

A soft bounce is a temporary (4xx) failure the sending server will retry, like a full mailbox or a deferral. A hard bounce is a permanent (5xx) failure. Those are ESP terms, though, and ESPs don't all classify codes the same way, so check the raw SMTP text before you suppress an address.

Is a 550 error always a bad address?

No. 550 5.1.1 is a bad address, but 550 5.7.x codes are policy rejections: authentication failures, reputation blocks or blocklist hits. The address can be perfectly valid. See SMTP 550.

Why does the same code mean different things at different providers?

RFC 3463 only defines broad categories and a handful of detail codes, so providers reuse 5.7.1 for whatever policy reason they like and invent new detail numbers for their own checks. The diagnostic text is the authoritative explanation.

How long will a server retry a 4xx error?

It depends on the sending software. Many MTAs and ESPs retry for anywhere from several hours to a few days before giving up and generating a bounce, often with a "delivery time expired" status. Check your ESP's documentation for its retry window.

Sources

In this section

Still stuck?

Some deliverability problems take an experienced eye to untangle. Tell me what you're seeing and I'll tell you what I'd check first. The first 30-minute call is free.