Gmail · Bounce codes · 421 / 550
Gmail Bounce Codes 421/550 5.7.24–5.7.40 Decoder: What Each Code Means and the Exact Fix
Gmail prints the diagnosis inside the bounce: the first number says temporary or permanent, and the 4.7.x / 5.7.x code names the exact requirement that failed. This page decodes every code in the 5.7.24–5.7.40 family — and its 4.7.x warning partners — in Google's own words, then gives the one fix each code needs.
The fast answer — match your code first
If your code is not in this list, it is not in this family: 550 5.7.1 (policy / reputation / message format), 550 5.4.5 (daily sending limit) and 552 5.2.2 (recipient's inbox full) are different problems with different fixes — the ladder at the bottom of this page tells you where each one goes.
What you are looking at, in plain words
A Gmail bounce has three parts, and each part does a different job. The first number (421, 451 or 550) is the SMTP reply: 421 and 451 mean "try again later" — your sending server will retry on its own — while 550 means "never": the message is rejected for good, and resending the same message unchanged will bounce the same way. The enhanced code (4.7.x or 5.7.x) names the requirement that failed: 4.7.x is the temporary form of a failure, 5.7.x the permanent form. The words after the code are Google's own description of that failure, and they are the most reliable part of the bounce — copy them exactly when you look a code up, because two codes can look alike and mean different things.
One more thing before the table: the codes below are the bulk-sender enforcement family — the codes Gmail sends when your mail fails the sender requirements (SPF, DKIM, DMARC, TLS, reverse DNS, alignment). They apply when you send to personal Gmail accounts, and they bite hardest once you are a bulk sender: close to 5,000 messages a day to personal Gmail, counted per primary domain, with subdomains rolling up — and once you have met that bar even once, Gmail considers you a bulk sender permanently. Since November 2025, Gmail has been ramping up enforcement on non-compliant traffic, which is why a code you used to see as a deferral now arrives as a rejection.
| Temporary (4.7.x) | Permanent (5.7.x) | What failed | Fix |
|---|---|---|---|
| 451 4.7.23 | 550 5.7.25 | No PTR record, or the PTR's forward DNS entry doesn't match the sending IP | Fix 1 — reverse DNS |
| 451 4.7.24 | 550 5.7.24 | The SPF record has one or more suspicious entries | Fix 2 — audit SPF |
| 421 4.7.26 (also 451 4.7.26 — DMARC policy, temporary DNS failure) | 550 5.7.26 (×3 variants) | Unauthenticated mail: neither SPF nor DKIM passed / SPF -all hard fail / DMARC policy | Fix 3 — SPF + DKIM |
| 421 4.7.27 | 550 5.7.27 | SPF authentication didn't pass | Fix 4 — SPF |
| 421 4.7.28 | 550 5.7.28 | Unusual rate of (unsolicited) email from your IP or domain | Fix 5 — rate / reputation |
| 421 4.7.29 | 550 5.7.29 | Not sent over a TLS connection | Fix 6 — TLS |
| 421 4.7.30 | 550 5.7.30 | DKIM authentication didn't pass | Fix 7 — DKIM |
| 4.7.31 and 421 4.7.40 * | 550 5.7.40 * | No DMARC record, or the record specifies no DMARC policy | Fix 8 — publish DMARC |
| 421 4.7.32 | 421 5.7.32 † | From: header isn't aligned with the authenticated SPF or DKIM domain | Fix 9 — alignment |
* Google prints the missing-DMARC code two ways: the sender guidelines FAQ prints 4.7.31; the SMTP errors page prints 421 4.7.40 and 550 5.7.40 for the same words. There is no 5.7.31 on either page. Both codes are taught in this guide — see Fix 8. † The SMTP errors page prints the permanent-looking 5.7.32 code on a 421 temporary reply; the FAQ prints 4.7.32. Same failure, same fix — see Fix 9.
Step 0 — Prove which part is failing
Do not start by changing records. Start by reading the exact bounce, because the bounce code names the missing piece — and since November 2025, guessing wrong costs you a permanent rejection instead of a deferral. If you are stuck at any step below, stop at the exact error code and work the ladder at the bottom of this page; do not resend the same message unchanged and hope.
- Find one real bounce. Open the bounce message your mail system or ESP returned for a Gmail recipient. Copy the full error line — code, words and any bracketed tag — into a note. The family matters before the sentence: 4.7.x is temporary (fix it now, it becomes permanent), 5.7.x is permanent (fix it, then resend — a 5xx is never retried).
- Check the first number. 421 or 451 means the sending server will retry on its own — fix the named problem, then let the retry happen on the sending server's schedule. 550 means the message is dead; the fix has to land before you resend anything.
- Match the enhanced code to the table above, then do that fix first. A missing-DMARC bounce is fixed by publishing DMARC, not by re-checking SPF for the third time. If your bounce carries two codes — for example a 4.7.31 that later becomes a 5.7.40 — they are the same failure at two severities, not two problems.
- Look up your three records as the world sees them. Check that your domain actually publishes SPF, DKIM and DMARC — not as your dashboard claims, but by DNS lookup — and check the sending domain (the one in the From address). Each subdomain that sends needs its own SPF and DKIM records (a DMARC policy is inherited from the organisational domain unless the subdomain publishes its own).
- Check the dashboard that grades you. Google Postmaster Tools (Compliance Status) shows whether Gmail sees your authentication passing. If it shows "No data", that is itself information: too little volume, or the domain is not verified there yet — not proof that you pass. Our bulk sender rules guide explains the Postmaster Tools v2 dashboards.
The fixes, in order
Each fix below starts with the code it cures. Work the fix that matches your code — the order here is the table's order, not a sequence you must run through. If you hold a 5.7.x, remember: nothing you do will revive that message. Fix, then resend.
1 — PTR / reverse DNS (4.7.23 / 5.7.25)
- Understand whose record this is. The PTR record lives with whoever owns the sending IP address — your hosting provider, your ESP, or your ISP — not in your domain's DNS zone. You cannot fix it by editing your own DNS. If you send through an ESP, the PTR is the ESP's to maintain; if you send from your own server, it is your host's.
- Ask the IP owner to set it. Request a PTR record for the sending IP that points at a hostname under your control (for example
mail.yourdomain.com), and make sure that hostname's forward (A) record points back at the same IP. Google's test is exactly that round trip: the PTR must resolve, and the forward entry must reference the sending IP. - Verify: look up the PTR for the sending IP from outside your network, then confirm the forward lookup of that hostname returns the same IP. If either leg fails, Gmail will keep bouncing your mail.
2 — Suspicious SPF entries (4.7.24 / 5.7.24)
- Read your SPF record as published. Look it up by DNS, not in your provider's dashboard. List every
include:,a,mx,ip4:andip6:mechanism in it. - Remove anything you don't recognise or no longer use. Old ESP includes, a previous host's mechanism, a test entry someone added years ago — each one is a sender you are vouching for. Google publishes no list of what it counts as "suspicious", so the honest fix is an audit: every entry must be a real, current sender of yours.
- Keep one SPF record, and count your lookups. Multiple SPF records on one domain cause a permanent error, and
include:,a,mxandredirecteach cost one of your 10 DNS lookups — go over and SPF fails outright. Our SPF lookup guide works the count. - Verify: send a test message to a Gmail address you control and read the
spf=passline in Authentication-Results (the 5.7.26 guide shows the shape).
⚠ Before you touch a live record: copy the old SPF and DMARC records exactly as they are published today — text file, screenshot, whatever survives. A wrong replacement can stop all your mail, not just the marketing stream, and the old text is the only fast way back. Do not delete a record to "start clean".
3 — Unauthenticated mail (4.7.26 / 5.7.26): identify the variant, then use the 5.7.26 guide
This is the one code with three different causes, and the bounce text tells you which one you have. Read the sentence, not just the number. Google also prints a 451 4.7.26 variant — a DMARC-policy rejection held up by a temporary DNS failure — which is the same Variant C problem at temporary severity.
The three variants, in one line each: A — nothing authenticates: neither SPF nor DKIM passed. B — your SPF -all hard fail blocked the graded IP. C — a sender of yours failed under your own DMARC policy. Match the bounce sentence to a variant, then work the full fix in our standalone 550 5.7.26 guide, which covers all three variants step by step — this decoder does not repeat them.
Verify: send a test message and read Authentication-Results — three passes, and the DMARC line's From domain matching the DKIM signing domain (the 5.7.26 guide shows the shape).
4 — SPF failed (4.7.27 / 5.7.27)
- Read the graded IP out of the bounce. Google prints the graded IP in the bounce — in its words, "SPF [yourdomain.com] with IP address: [203.0.113.24] = Did not pass". That IP — not your office IP, not your website's IP — is the one to check.
- Check it against your SPF record. If the IP (or the ESP / service that owns it) is missing, add it: the ESP's
include:, the server'sip4:, or the service's mechanism, inside your single SPF record. If the IP belongs to a service you no longer use, the mail should not be going through it — fix the sending path instead. - Count your lookups again (10 max — see Fix 2). A record that was fine with two ESPs can tip over the limit when a third is added, and an over-limit SPF fails outright.
- Verify: test message to Gmail,
spf=passin Authentication-Results.
5 — Rate limiting (4.7.28 / 5.7.28)
This is the only code in the family with no DNS fix. Google is telling you about volume, pattern or reputation — not about a missing record — and it publishes no volume threshold or clearance time for it. The one number Google does publish for this code is a retry pause, not a clearance time: after a quota 4.7.28, do not send for at least 10 minutes, then resume from a single connection. Do not pay anyone who claims to know when the limit itself clears — Google does not say.
- Slow down. Spread bulk sends across the day instead of firing them in one burst, and respect the deferral: a 421 means Gmail will accept a retry later, so let your sending server retry on its own schedule instead of forcing immediate resends. For a quota 4.7.28 specifically, Google's own guidance is: do not send email for at least 10 minutes, then resume from a single connection and add connections one at a time — if that single connection fails, wait another 10 minutes. That 10 minutes is a pause before retrying, not a promise that the limit has cleared.
- Stop mailing the addresses that bounce or complain. Re-sending to dead addresses and to people who marked you as spam is the fastest way to stay rate-limited. Clean the list before the next send, not after it.
- Check your spam rate in Postmaster Tools. Keep it below 0.1% and never let it reach 0.3% — above 0.3% you are also ineligible for mitigation until the rate stays below 0.3% for 7 consecutive days. A sudden rate rise dated to one campaign names the campaign that caused it.
- Verify: the code clears on its own as volume and complaints fall — there is no record change to check, only the next sends. If a 4.7.28 has become a 550 5.7.28, the message is dead; fix the pattern, then send a fresh message.
6 — TLS (4.7.29 / 5.7.29)
- Turn TLS on for outbound mail. Gmail requires all bulk email senders to use TLS/SSL for SMTP connections. On your own server, enable STARTTLS on the outbound (submission/relay) path; in an ESP or app, switch the SMTP settings to the TLS port and option the provider documents.
- If your server cannot do TLS, send through a relay that can. An old device or application that speaks plain SMTP only (a scanner, an old printer, a legacy app) should hand its mail to a relay — your ESP, your mail host, or a Google Workspace SMTP relay — that negotiates TLS to Gmail on its behalf.
- Verify: send a test message to Gmail and check the received headers for a TLS version on the hop into Gmail (the
Receivedline shows the TLS version used). Postmaster Tools' Encryption dashboard also shows your TLS share over time.
7 — DKIM failed (4.7.30 / 5.7.30)
- Turn DKIM signing on for the sending domain itself. Signing is not automatic: in Microsoft 365, no DKIM signing happens for a custom domain until you configure it in the Defender portal (Email authentication settings → DKIM) and publish the two CNAME records it shows you — never copy CNAME values from a website, they are tenant-specific. In Google Workspace, turn DKIM on in the Admin console. In an ESP, enable DKIM for your domain and publish the selector record it gives you.
- Publish the selector record exactly as shown. One wrong character in the key breaks the signature. DKIM keys must be at least 1024-bit; 2048-bit is recommended. A long key may need splitting across two 255-character strings in the TXT record — our DKIM 2048-bit guide shows the split.
- Check nothing modifies the message after signing. A relay or forwarder that rewrites the body or signed headers breaks the signature. If DKIM passes when you send direct but fails through one relay, the relay is the suspect — send through a path that leaves signed mail alone.
- Verify: test message to Gmail,
dkim=passin Authentication-Results, with the signing domain (d=) matching your From domain (see Fix 9).
8 — Missing DMARC record or policy (4.7.31 / 4.7.40 / 5.7.40)
⚠ Google disagrees with Google here — read this before you search the code. Google's sender guidelines FAQ prints this failure as 4.7.31 (temporary). Google's own Gmail SMTP errors page prints the identical failure — same words — as 421 4.7.40 (temporary) and 550 5.7.40 (permanent). Neither page lists a 5.7.31. Both printings are Google's, both are taught here on equal footing, and there is no single settled code to "correct" your bounce to. If your bounce says 4.7.31, 4.7.40 or 5.7.40, you have the same problem and the same fix below.
- Publish one DMARC TXT record at
_dmarcon your sending domain. Two DMARC records on the same name is undefined — receivers ignore both. Start atp=none: it satisfies every provider's minimum and lets you watch the reports before anything is quarantined or rejected. - Include a
ruareporting address you actually read. Without it you get no aggregate reports and the verify step has nothing to read. Our DMARC record guide works the lookup and the record shape. - Wait out DNS. Records are typically visible within minutes to a few hours; a previously cached "no record" answer can linger up to the zone's negative-cache TTL. Google publishes no clearance time for this code, so the check below is a lookup, not a clock.
- Verify: look the record up from outside your own network, then send a test message to a Gmail address you control and read the
dmarc=passline in Authentication-Results.
9 — From not aligned (4.7.32 / 5.7.32)
⚠ Google prints this one two ways as well. The FAQ prints 4.7.32 (temporary). The SMTP errors page prints 421 4.7.32 and 421 5.7.32 — the permanent-looking code arriving on a 421 temporary reply. Same failure, same fix either way.
- Understand the test. DMARC passes only when the SPF domain (the MAIL FROM domain) or the DKIM signing domain matches the domain in the From address. A message can pass SPF and pass DKIM and still fail DMARC if both authenticated domains are someone else's — typically your ESP's. That is the single most common cause of a 5.7.32 after "everything is set up".
- Align one leg. Either give your ESP a custom MAIL FROM (return-path) domain on your domain so SPF aligns, or enable custom DKIM signing for your domain so the DKIM signing domain matches your From domain. One aligned leg is enough for DMARC to pass.
- Verify: send a test message and read Authentication-Results — the DMARC line must show
dmarc=passwith the From domain matching the DKIM signing domain (or the SPF domain). Our alignment guide works it step by step.
Prove it worked
A green tick in a dashboard is not proof. Proof is a message Gmail accepts, with headers that say so.
- Send a fresh test message to a Gmail address you control — not a resend of the bounced message, and not to the address that bounced. A 5xx is never retried, so the bounced message is dead; only a new message proves the fix.
- Read Authentication-Results in the received message. You want three passes, and the DMARC line's From domain matching the DKIM signing domain:
- Check Postmaster Tools Compliance Status. Each requirement line should read Compliant for your domain. If it reads "No data", you have not sent enough volume yet for Google to grade — send the test volume first, then judge.
- Watch the next real send. One accepted test message proves the record; a full send with no new bounces proves the fix at volume. If a new code appears on the next send, it is the next failing leg unmasked — go back to Step 0 with the new code, not the old one.
Still not working? Work this ladder in order
Each rung assumes the ones above it are genuinely done — do not skip the re-read.
- Re-read the new bounce. The code may have changed: a repaired 5.7.27 often unmasks a 5.7.30 or a 5.7.40 naming the next failing leg. Treat the code you hold now, not the one you started with. If the code is now 4.7.31 after you published DMARC, check the lookup from outside your network — you may be looking at a cached "no record" answer, or the record may be on the wrong name (the
_dmarclabel, on the sending domain, not the root). - Check the code is in this family at all. 550 5.7.1 is a different bucket — policy, reputation, or message format (missing or invalid From or Message-ID, duplicate headers, very low IP or domain reputation) — and it has no single DNS fix; work it through Postmaster Tools and your sending provider. 550 5.4.5 is the daily sending limit (a quota, not authentication), and 552 5.2.2 means the recipient's inbox is full (the recipient's problem, not yours).
- Check Postmaster Tools. Google's own escalation path starts with your compliance status there. Confirm the dashboards show your authentication passing before asking Google for anything — and remember DMARC pass/fail detail is not in Postmaster Tools; Google's own Postmaster FAQ sends you to a third-party DMARC tool for that; your DMARC aggregate reports are the other place to check.
- Bulk senders who meet every requirement: submit a mitigation request through Google's sender contact form. That rung exists only for compliant bulk senders — Google states that senders who don't meet the guidelines are not eligible for mitigation or delivery support, and senders above a 0.3% spam rate stay ineligible until the rate is below 0.3% for 7 consecutive days.
- Everyone else: the trail ends at your sending provider's support, with the full bounce text and the message headers as evidence. That is not a brush-off — the provider owns the sending path Gmail is grading, and only they can see the PTR, the signing, and the relay your mail actually took.
Mistakes that make it worse
- Resending the same message unchanged. A 550 is permanent: the message is dead, and each resend bounces the same way while adding to the volume that got you rate-limited. Fix first, send a fresh message second.
- Changing all three records at once. If you change SPF, DKIM and DMARC in one go, you will never know which change fixed it — or which one broke the next thing. Change one, verify it, then move on.
- Deleting a record to "start clean". A missing record is itself a bounce cause (Fix 8). Copy the old text first, edit it, never delete it.
- Weakening SPF -all to ~all to stop a 5.7.26 Variant B. The bounce was your record working as written. Loosening it trades a visible bounce for silent spoofing room — and Gmail still grades the sending IP the same way.
- Treating a 421 as a rejection — or a 550 as retryable. A 421 will retry on its own; hammering resends only adds volume. A 550 will never retry; waiting for it to clear wastes the day.
- Trusting a third-party tool's code list over Google's pages. This family has a live example of why not: Google's own two pages print different numbers for the same missing-DMARC failure. If a tool lists a code Google doesn't (there is no 5.7.31 on either Google page), the tool is wrong.
- Publishing a second DMARC record instead of editing the first. Two DMARC records on the same name is undefined — receivers ignore both, and your "fix" leaves you exactly where you started.
FAQ
My bounce says 4.7.31, but Google's SMTP errors page says 4.7.40. Which one is right?
Both are printed by Google, for the same words. Google's sender guidelines FAQ prints the missing-DMARC failure as 4.7.31; Google's Gmail SMTP errors page prints it as 421 4.7.40 (temporary) and 550 5.7.40 (permanent). There is no single settled code, and no 5.7.31 on either page. Whichever printing is in your bounce, the problem is the same — the sending domain has no DMARC record, or the record specifies no DMARC policy — and the fix is the same: publish a DMARC record, starting at p=none.
Is a 421 code a rejection, or will Gmail retry it?
A 421 (and a 451) is a temporary deferral: your sending server retries on its own, and the message can still be delivered once the underlying problem is fixed. A 550 is a permanent rejection: the message is dead and is never retried, so you fix the problem and send a fresh message. The enhanced code tells you which case you are in — 4.7.x is the temporary form, 5.7.x the permanent form of the same failure.
I published the record, but Gmail still bounces with the same code. How long do I wait?
DNS changes are typically visible within minutes to a few hours, and a previously cached "no record" answer can linger up to the zone's negative-cache TTL. Google publishes no clearance time for any code, so there is no number to wait for — instead, look the record up from outside your own network, and only then send a fresh test message and read its Authentication-Results.
Can one message trigger two different codes?
Yes, in sequence. Fixing one failing leg often unmasks the next: a repaired SPF failure can reveal a DKIM failure, and a repaired DKIM failure can reveal a missing DMARC record. That is normal, not a sign the first fix was wrong. Each time, read the new bounce code and work the fix it names — do not keep re-applying the fix for the code you started with.
Does this decoder cover Outlook.com or Yahoo bounces?
No — this decoder is Gmail only. Outlook.com has its own codes, including 550 5.7.515 for its high-volume authentication rule and the 550 5.7.1 "Message lacks SPF/DKIM/DMARC Auth Records" rejection observed 5–9 November 2026, covered in our Outlook 5.7.1 guide and our bulk sender rules guide. Yahoo's rejections carry Yahoo's own tags. The SPF, DKIM and DMARC fixes themselves are the same work at every provider — only the codes differ.
Sources
Google — Gmail SMTP errors and codes (support.google.com/mail/answer/3726730: every code in the decoder table, including the 421 4.7.40 / 550 5.7.40 printings, the three 5.7.26 variants, 421 5.7.32, and the 535 5.7.80 / 534 5.7.90 renumbering) · Google — Email sender guidelines FAQ (answer/14229414: the 4.7.31 printing, the November 2025 enforcement ramp-up, the bulk-sender definition and its permanence, spam-rate thresholds and mitigation eligibility, the 48-hour unsubscribe recommendation) · Google — Email sender guidelines (answer/81126: the authentication, TLS, reverse-DNS and DKIM key-length requirements) · Microsoft Learn — DMARC, SPF and DKIM configuration (the DMARC starter record shape, one-record rules, DKIM off by default until configured) · RFC 9989 (DMARCbis, May 2026: pct retired; np, t and psd added; v=DMARC1 unchanged) · Merroway — the 5.7.26 guide (gmail-550-5-7-26-unauthenticated-fix: the three variants in full), the alignment guide (dmarc-fail-spf-dkim-pass-alignment-fix), the bulk sender rules guide (gmail-yahoo-outlook-bulk-sender-rules-2026-what-changed: Postmaster Tools v2 and the November 2026 Outlook.com bounce).
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.