Reading SMTP bounce codes in WordPress mailer logs

A WP Mail SMTP Pro log row against a failed message looks like this:

Status: Failed
Error: SMTP Error: 550 5.7.26 This email has been blocked because
the sender is unauthenticated. Gmail requires all senders to
authenticate with either SPF or DKIM.

Three pieces are inside that string. 550 is the SMTP reply code (from RFC 5321); 5.7.26 is the enhanced status code (from RFC 3463); the prose is what Gmail chose to say about it. Reading all three together tells the operator what the receiver decided and, usually, what to change on the sending side. Reading them in isolation, or misreading which piece is which, is where diagnosis goes wrong.

This reference decodes those log rows for the codes WordPress senders actually see: what each numeric class means, what the enhanced status codes add, and where the provider-specific variations (Gmail’s sender-authentication codes, Microsoft 365’s three flavours of 5.7.1) diverge from the RFC gloss. Grouped by cause, not by numeric order.

How WordPress mailer plugins record bounces

The three mailer plugins WordPress sites actually use, WP Mail SMTP, FluentSMTP, and Post SMTP, all preserve the SMTP response verbatim on failure, but they surface it differently in the log UI.

  • WP Mail SMTP Pro stores the response in the Error field on the individual log entry (Email Log, then open a failed message) and captures the raw SMTP session in the entry’s details view. The free version has no email log; failures appear in Tools > Debug Events.
  • FluentSMTP shows the response in the log entry’s Details pane, alongside the Log Status: Failed marker. Pro adds the raw conversation transcript.
  • Post SMTP stores it in the Delivery Response column of the Message log. Failed rows carry the exact <code> <enhanced-code> <text> line the plugin got back, whether the transport was SMTP or a provider REST API.

When the mailer is configured against a REST-API provider (SendGrid, Postmark, Mailgun, Amazon SES) rather than raw SMTP, the string the plugin logs is the provider’s translation of the receiver’s rejection into their own error dictionary. The underlying wire event is the same; the string is not. The codes below apply to raw SMTP responses; the lookup section at the end covers where each provider’s dictionary lives. Delivery-status webhooks are the asynchronous surface for the same events; see email service webhooks in WordPress for the callback side.

The numeric code: 4xx versus 5xx

The three-digit reply code is the RFC 5321 class. Its first digit is the only piece of the code every receiver interprets the same way.

  • 2yz: accepted. 250 OK is the response WordPress operators want to see; it means the receiver has taken responsibility for the message. If the plugin logs the row as Sent, this is what it saw.
  • 4yz: transient negative. The command was refused, but the refusal is not final. A sending MTA (mail transfer agent, the software that hands the message from the sending relay to the receiving server) MAY re-attempt. Common codes: 421 (service not available, closing channel), 450 (mailbox temporarily unavailable), 451 (local processing error), 452 (insufficient system storage, or too many recipients).
  • 5yz: permanent negative. The command was refused; a retry with the same message and the same configuration will not succeed. The sending side typically issues a delivery status notification (DSN) to the envelope-from address (the address in the SMTP MAIL FROM command, which is the return path for bounces and often differs from the From: header the recipient sees). Common codes: 550 (mailbox unavailable or policy rejection, the workhorse), 552 (exceeded storage allocation), 553 (mailbox name syntax rejected), 554 (transaction failed).

The 4xx / 5xx split is the first thing to read. A 421 in the log at 09:00 that isn’t in the log at 09:15 means the retry succeeded and the message went; a 550 in the log means the message is gone, whatever the prose says.

Sending MTAs vary in how long they retry a 4xx before giving up and downgrading to a DSN. The provider relays a WordPress site is most likely to use retry within a day or two (AWS SES around 12 hours, SendGrid and Mailgun around 72), while self-hosted MTAs at defaults (Postfix, Sendmail, Exim) retry for five days, per RFC 5321 §4.5.4.1’s “at least 4-5 days” recommendation. The code class does not change during that window.

The enhanced status code

The 5.7.26 in the example log row is an enhanced status code, defined in RFC 3463. It uses a fixed three-part shape: class.subject.detail.

The class digit mirrors the SMTP reply code’s class (2 success, 4 transient, 5 permanent), which is why an enhanced code almost always shares its first digit with the numeric code next to it. The subject digit narrows the failure to a category. The detail digit identifies the specific failure inside that category.

The subject codes WordPress operators run into most often, from RFC 3463 §3:

Subject Name (RFC 3463) What it flags in a log row
X.1.X Addressing Status Something is wrong with the sender or recipient address
X.2.X Mailbox Status The recipient mailbox itself is the problem
X.4.X Network and Routing Status The delivery system couldn’t route or reach
X.5.X Mail Delivery Protocol Status Protocol-level issue between MTAs
X.7.X Security or Policy Status The receiver applied a policy and rejected

RFC 3463 defines the detail codes that follow, but individual providers extend the space with their own values (Google’s 5.7.26, 5.7.30, 5.7.40; Microsoft’s 5.7.606-649, 5.7.750). The provider extensions are the ones that carry the actual diagnosis.

Codes WordPress senders actually see

The subsections below group codes by cause; the RFC-numeric order lives in the tables under each subsection.

Authentication rejections (5.7.x)

The 5.7.x family absorbs the majority of policy-driven rejections a WordPress sender sees, because “the receiver applied a policy” is what most rejections actually are.

5.7.1, three separate meanings on Microsoft 365. Microsoft’s Exchange Online Protection uses 5.7.1 for three unrelated situations, distinguishable only by the accompanying prose (Microsoft NDR reference):

  1. Delivery not authorized: the recipient (typically a distribution group) is configured to accept mail only from named senders, or an Exchange transport rule matched and blocked.
  2. Unable to relay: the receiving system is being asked to forward a message to a domain it doesn’t handle. On a WP operator’s log this usually means an MX record pointed the message at the wrong host.
  3. Client was not authenticated: the sending client submitted a message before authenticating. This is the WordPress-specific case: a mailer plugin configured to connect to smtp.office365.com on port 587 with a username but no working password, or with a legacy password on an account that now requires an app password or OAuth. Log rows carrying this text point at the plugin’s SMTP credentials, not at the message or the recipient. The WordPress SMTP with Microsoft 365 guide covers the credential-side setup that resolves this state.

550 5.7.30 Basic authentication is not supported for Client Submission (Microsoft). A different 5.7.30 from Gmail’s DKIM code below: Microsoft documents it as the response a password login gets once Basic Authentication is permanently disabled, and has not announced that date. For logins refused before then, users have posted errors carrying 535 5.7.139 Authentication unsuccessful, with text saying that SMTP AUTH or basic authentication is disabled. Basic Authentication goes off by default on existing Exchange Online tenants at the end of December 2026, and will be unavailable by default on tenants created after that. Microsoft 365 is disabling password SMTP has the migration path per plugin.

Microsoft’s 5.7.750 Client blocked from sending from unregistered domains. Same family: a Microsoft 365 tenant sending from a domain that isn’t provisioned on the tenant. The fix is to add the domain to the tenant’s accepted domains list, not to change the WordPress side. Microsoft’s actual entry begins Service unavailable.; the 5.7.750 appears next.

Gmail app-password auth failures (535 5.7.80 and 534 5.7.90). The Gmail parallel to Microsoft’s Client was not authenticated. Both codes indicate the SMTP credentials the plugin is presenting are wrong for a Gmail SMTP submission. These codes are from Google’s list of Gmail SMTP errors; in error messages that users have posted, they appear as 535-5.7.8 and 534-5.7.9.

  • 534 5.7.90 Application-specific password required: the SMTP authentication is using the account’s main password, not an Less Secure App (LSA) access was Google's name for the third-party authentication path that used a plain account password against Gmail's SMTP, IMAP, and POP endpoints. Google shut it down for consumer accounts on 30 May 2022 and for Workspace accounts on 1 May 2025; OAuth, App Passwords, or a different sending provider replace it. Read full reference →. Generate one and switch.
  • 535 5.7.80 Username and Password not accepted: Google lists this as a Gmail SMTP authentication error. Check the credentials, and check that the account is eligible for App Passwords; on Workspace, that includes whether security keys are enforced for 2-Step Verification. If the account password changed, create a new App Password, because Google revokes the existing ones when that happens.

Gmail App Passwords for WordPress SMTP walks through the credential-side fix.

Gmail’s 5.7.26, 5.7.27, 5.7.30, 5.7.40, the sender-authentication codes. Google’s list gives 5.7.26 for three different replies, so the text after the code says which one you have (Gmail SMTP error reference):

  • 5.7.26, “the sender is unauthenticated”: neither SPF nor DKIM passed. Gmail requires at least one of them from every sender, at any volume.
  • 5.7.26, “SPF record with a hard fail policy (-all)”: the sending IP address did not pass the -all SPF record of the MAIL FROM domain.
  • 5.7.26, “not accepted due to domain’s DMARC policy”: the message did not pass DMARC for the domain the reply names.
  • 5.7.27: the message failed SPF specifically.
  • 5.7.30: the message failed DKIM specifically.
  • 5.7.40: “Your message was blocked because the sending domain doesn’t have a DMARC record or the DMARC record doesn’t specify a DMARC policy.”

Google’s text for 5.7.27, 5.7.30 and 5.7.40 cites its requirements for bulk senders. The 5.7.26 replies identify the authentication failure but do not prescribe a fix. Check the DNS records and sending-service settings that apply to the domain named in the reply. If a DMARC reply names a domain you do not control, the reply alone does not say how to change the From address. The DNS setup guide covers the records the codes are asking for, and the Workspace SMTP guide covers the Workspace side of the same configuration. Once DMARC is deployed, parsing DMARC aggregate reports is the next step for confirming the fix landed.

Gmail’s 5.7.1, the generic policy code. Gmail’s 5.7.1 covers unrelated refusals, and the text after the code decides. Google’s list gives 550 5.7.1 for a policy of the sending or receiving domain, SMTP relay settings, mail Google judges likely unsolicited, the low reputation of an IP address or domain, IPv6 sending, an IP address that may not send to Google directly, faulty headers, and rate and relay limits. None of those replies names an SPF record; Gmail’s SPF, DKIM and DMARC failures have the codes above. Other receivers can use 5.7.1 for SPF: RFC 7208 §8.4 recommends 550 5.7.1 for a message refused on a failed SPF check, and RFC 7372 added 5.7.23 for it.

Gmail’s 5.7.25, 5.7.28, 5.7.29. 5.7.25 is a missing or mismatched PTR record (the reverse-DNS entry that maps an IP address back to a hostname) on the sending IP; the relay’s problem, not the WordPress operator’s, unless the operator is running their own MTA. 550 5.7.28 says Google has blocked email from the sending IP because it saw an unusual rate of unsolicited email from that IP. The 421 4.7.28 replies are temporary. 5.7.29 is a rejection for not using TLS.

Address failures (5.1.x)

A 5.1.x on a WordPress send almost always means the address the plugin submitted doesn’t resolve on the recipient’s side. The message never reached spam filtering; the receiver rejected it at the recipient step.

  • 5.1.1: bad destination mailbox address. RFC 3463 §3 quotes it as “The mailbox specified in the address does not exist.” Common causes: a typo in a WooCommerce order form, a stale WordPress user profile, a form plugin sending to a name that used to exist but doesn’t now.
  • 5.1.10: Microsoft’s variant, “Recipient not found,” returned when EOP’s address lookup fails.
  • 5.1.2: bad destination system address. The domain part is unreachable, meaning the MX doesn’t resolve. Usually a typo (gmial.com) or an expired domain.

5.1.x codes are the easy ones to clean up. They point at an address the sending site controls (a form input, a user record, a list entry), not at the sending infrastructure. Cleaning them up costs nothing and reduces the log noise that hides real deliverability signals.

Mailbox failures (5.2.x)

The mailbox exists but can’t accept the message. Most of these are the recipient’s problem; the sender’s remedy is limited to noticing.

  • 5.2.1: mailbox disabled, not accepting messages. RFC 3463 §3: “The mailbox exists, but is not accepting messages.”
  • 5.2.2: the RFC 3463 meaning is mailbox full, and Gmail’s 552 5.2.2 says the recipient’s inbox is out of storage space and inactive. Microsoft’s list gives 5.2.2 another meaning, “Submission quota exceeded”: the sender went over its recipient or message rate limit.
  • 5.2.3: message length exceeds an administrative limit on the recipient’s system. Large WooCommerce order confirmations with many line items, or membership-plugin exports attached, can trip this against corporate mailbox limits set below Gmail’s 25 MB default.

Microsoft’s 5.2.2 is the exception: it is about the sending account. Microsoft says the error could mean that the account was compromised and is being used to send spam.

Rate limiting and reputation

Two shapes to watch, both of which arrive first on high-volume WordPress properties (WooCommerce launches, LMS enrolment bursts, newsletter double-opt-in floods).

  • 421: service not available, receiver closing the connection. Gmail documents 421 for unusual sending rates or reputation and for failed SPF, DKIM or DMARC checks and connections without TLS. Read the reply text to identify the case. SMTP clients normally retry temporary 4yz replies (RFC 5321 §§4.2.1, 4.5.4.1).
  • 450 4.2.1 on Gmail: Google lists three replies. Two say the recipient is receiving mail too quickly, and that a message sent again later will be delivered if the recipient can receive mail then. The third, “Peak SMTP relay limit exceeded”, is about the sending customer’s Google Workspace SMTP relay.
  • 4.7.x: Gmail lists temporary authentication replies: 421 4.7.26 when neither SPF nor DKIM passed; 451 4.7.26 when a DMARC policy rejects unauthenticated mail but DNS failures prevent authentication; 421 4.7.27 (SPF), 421 4.7.30 (DKIM) and 421 4.7.32 (From alignment). For a missing DMARC record or policy, Google’s error list gives 4.7.40 and its sender guidelines FAQ gives 4.7.31, with the same text. Sending less does not fix any of these. 4.7.28 is the volume code.
  • Microsoft’s 5.7.606-649 Access denied, banned sending IP: the sending IP is on Microsoft’s block list. Sender-facing action is limited to Microsoft’s delisting portal, and only if the operator controls the sending IP (which they generally don’t when sending via a provider).

Message-shape rejections

  • 552: exceeded storage allocation (RFC 5321 §4.2.3). At Gmail the enhanced code says why: 5.3.4 is the size of the message or its headers, or the number of attachments; 5.2.2 is a full, inactive mailbox; 5.7.0 is content Google calls a potential security issue. For a message-size or attachment-count limit, reduce the attachments or move large files to a link; for a header-size limit, inspect and reduce the headers.
  • 553: mailbox name not allowed. The address is syntactically invalid, or the receiver’s policy rejects the specific local-part (some receivers refuse role addresses).
  • 554: transaction failed. Used as a catch-all when the receiver’s SMTP service is refusing at the transaction level. Prose is essential; the code alone doesn’t say what failed.

Transient failures worth waiting on

A 4xx in the log is not a bounce. The sending MTA has the message and will re-attempt.

  • 421: service not available, connection closing. See Rate limiting above; at Gmail the text can name a rate, a reputation or a failed authentication check.
  • 450: mailbox temporarily unavailable. Retry. Greylisting also arrives as a 4xx: the receiver defers a sender it does not know and expects a retry. RFC 6647 §5 recommends no particular code, and says the reasonable choices are 421 to close the connection and 450 otherwise.
  • 451: receiver’s local processing error. Retry. The text can also name a problem on the sending side: Gmail uses 451 4.7.23 for a missing or mismatched PTR record and 451 4.7.24 for suspicious entries in the SPF record.
  • 452: insufficient system storage, or too many recipients (RFC 5321 §§4.2.3, 4.5.3.1.10). 4.3.1 is the server’s own storage and 4.5.3 is too many recipients in one transaction (RFC 3463). Gmail uses 452 4.2.2 for a full mailbox and 452 4.5.3 for too many recipients and for a domain policy’s size limit per transaction. Separately, Google’s SMTP relay service documents a limit of 100 recipients per transaction; its documentation does not tie that limit to 452 4.5.3.
  • 454 4.7.0: temporary authentication failure (RFC 4954 §6). Gmail’s two replies are too many sign-in attempts and a temporary system problem at sign-in; neither says the password is wrong. Postfix also sends 454 4.7.0 when it cannot start TLS.

If a 4xx row from a provider relay (SES, SendGrid, Mailgun, Postmark) has been sitting in the log for more than about 72 hours, the relay has almost certainly given up and a 5xx DSN row will follow. Self-hosted setups at defaults may still be retrying up to five days. Until the DSN lands, the message is in-flight.

Looking up what your specific string means

Numeric class and enhanced code narrow the failure to a family; the prose the receiver returned is where the diagnosis lives. Four external lookup references cover the common receivers well and complement each other:

  • Google’s Gmail SMTP error reference: authoritative for every 5.7.x and 4.7.x code Gmail issues. Updated as Google adds codes; the 2024 bulk-sender expansions are documented here.
  • Microsoft’s Exchange Online NDR reference: the full table for Exchange Online / Microsoft 365 rejections, including the three 5.7.1 flavours above and the 5.7.6xx/5.7.7xx reputation and tenant-provisioning codes.
  • The SMTP Field Manual: MIT-licensed catalogue of real-world SMTP responses collected across 23 mailbox providers and 9 spam filters. Useful when the receiver is not Google or Microsoft (Yahoo, ProtonMail, Zoho, GMX, Rackspace, and the corporate filter services like Proofpoint and Mimecast are all covered). Community-contributed snapshots, so entries are directional rather than real-time authoritative. Built by Wildbit and now maintained by ActiveCampaign after the May 2022 acquisition.
  • Provider-specific error dictionaries where the sending relay is a REST-API provider: AWS SES bounce/complaint notifications, Postmark’s bounce API, Mailgun’s error index. These matter because the string Post SMTP or WP Mail SMTP logs came through the provider’s translation layer, and the provider’s dictionary is what maps the translated code back to the receiver’s original response.

For the wider session transcript that surrounds a single bounce line, how to read an SMTP session log walks through a full conversation.

What the code cannot tell you

The bounce code says what the receiver did. It does not say what to change.

5.7.26 says Gmail refused the message over authentication, and the text says whether neither SPF nor DKIM passed, SPF hit a hard fail, or the domain’s DMARC policy applied. It does not say which record to add, whether the SPF include is missing or the DKIM selector is wrong, or whether the mailer plugin’s From: header is misaligned with the authenticated domain. Answering that lives further upstream, in how email works on WordPress. Gmail’s 5.2.2 says the recipient’s mailbox is full; whether the sender should suppress future sends to that address, and how, is a suppression-list decision that lives in the sending provider’s dashboard, not in the log. 421 says the receiver refused for now; without the text it does not say whether the cause is volume, reputation or authentication.

For the WordPress-side surface (how a failing send actually reaches WordPress and what hook fires), see debugging the wp_mail_failed hook. For the diagnostic flow that lands on a specific bounce in the first place, troubleshoot WordPress email.

Corrections
  • 2026-11-25: an earlier version gave 5.2.2 only as a full mailbox, 552 only as a message over a size limit, and Gmail’s 5.7.28 as throttling. Microsoft lists 5.2.2 as a submission quota, Google also uses 552 for a full mailbox and for blocked content, and Google’s 550 5.7.28 says email from the IP address has been blocked. It also said a persistent 5.2.2 means the recipient is not reading their mail; the code does not say that.
  • 2026-11-25: an earlier version said 452 is often greylisting. RFC 5321 gives 452 for insufficient storage and for too many recipients, and RFC 6647 names 421 and 450 as the reasonable codes for greylisting. That version said the sender can’t fix a persistent 451. It also described Gmail’s 4.2.1 as recipient-rate limiting, without mentioning Google’s separate 450 4.2.1 SMTP relay-limit reply.
  • 2026-11-25: an earlier version treated 421 and Gmail’s 4.7.x replies as throttling, and said a persistent 4.7.28 becomes a 5.7.28. Google also uses 421 for failed SPF, DKIM and DMARC checks, and its list does not say that one code turns into the other.
  • 2026-11-25: an earlier version said Gmail’s 5.7.26 means SPF and DKIM both failed, and that it goes to senders above five thousand messages a day. Google lists three replies under the code, and the one for an unauthenticated sender applies at any volume. The example log row showed wording that is not on Google’s list.
  • 2026-11-25: an earlier version said smtp.office365.com returns 550 5.7.30 once Basic Authentication is disabled on the tenant, and that it is unavailable on new tenants after that. Microsoft documents it as the response to a password login once Basic Authentication is permanently disabled, a date it has not announced; it will be unavailable by default on tenants created after December 2026.
  • 2026-11-05: an earlier version implied the free WP Mail SMTP plugin has an email log. The log is a Pro feature; the free version records failures in Debug Events.
Reading SMTP bounce codes in WordPress mailer logs details
Short Definition
The three-part strings (like 550 5.7.26 sender not authenticated) that WordPress mailer plugin logs record when a message fails: SMTP reply code, enhanced status code, and provider prose, decoded for the codes WordPress senders actually see.
Related Terms
email-explained-from-first-principles, email-service-webhooks-wordpress