Guides / Gmail 550 5.7.27 and 421 4.7.27: SPF didn't pass

Gmail 550 5.7.27 and 421 4.7.27: SPF didn't pass

Updated December 5, 2026

If Gmail bounces or slows your email with 5.7.27 or 4.7.27, it is telling you one specific thing: the message didn't pass SPF. The server that handed Gmail your message isn't authorized by the SPF record of the domain Gmail checked, or that record is missing or broken. The bounce itself names the domain and the IP address, so you can usually find the cause in a few minutes. Run the free checker above on that domain first, then use the steps below.

Check your domain nowFree SPF, DKIM, DMARC, MX and blacklist check. No signup.

What the two versions say

Google lists both in its SMTP error reference. The permanent version reads:

550 5.7.27 This message was blocked because it didn't pass SPF authentication. Gmail requires bulk email senders to authenticate their email with SPF.

The temporary version reads:

421 4.7.27 Your email has been rate limited because SPF authentication didn't pass for this message. Gmail requires all bulk email senders to authenticate their email with SPF.

Both continue with an "Authentication results" line that shows the SPF domain and the IP address Gmail checked, followed by "did not pass". A 421 is a deferral: your server will usually retry, but more mail from the same setup will keep being slowed. A 550 is a rejection: the message was not delivered and won't be retried.

Why Gmail asks for SPF specifically

Google's email sender guidelines say every sender to Gmail must "Set up SPF or DKIM email authentication". Senders of more than 5,000 messages a day to Gmail accounts must "Set up SPF and DKIM email authentication" plus DMARC. That is why the 5.7.27 text talks about bulk senders: once Gmail treats you as one, DKIM alone isn't enough and SPF has to pass too.

If DKIM also failed, you are more likely to see 550 5.7.26, which says neither SPF nor DKIM passed. A message that passed DKIM but failed SPF can still get 5.7.27.

Which domain Gmail checked

SPF doesn't look at the address your recipient sees in the From line. It checks the envelope sender (the MAIL FROM address, shown as Return-Path in the delivered message); RFC 7208 section 2.4 says verifiers "MUST check the 'MAIL FROM' identity". Many sending platforms use their own domain or a bounce subdomain of yours (something like bounces.yourdomain.com or em123.yourdomain.com) for the envelope sender.

So read the domain in the bounce's "Authentication results" line, not just your From address. If it's a subdomain, that subdomain needs its own SPF record: the root domain's record doesn't cover it. See SPF record for a subdomain.

The usual causes

  • The sending tool isn't in the record. You added a new email platform, CRM or sending tool and never added its include, so its servers aren't authorized.
  • The domain Gmail checked has no SPF record at all. Common with a new secondary cold email domain, or with a custom bounce subdomain someone set up in a platform's dashboard but never finished in DNS.
  • The record is broken, so SPF can't pass even though the right include is in it: two SPF records on one domain (multiple SPF records), more than 10 DNS lookups (too many lookups), an include for a name with no SPF record (void lookups), or a typo such as include= instead of include:.
  • The record ends in ~all or ?all and the IP isn't listed. A softfail or neutral result still isn't a pass. Gmail's message only says the check "didn't pass", so treat any result other than pass as the problem.
  • The message was forwarded or relayed through a server you don't control (a mailing list, a forwarding rule, a security gateway), so the IP Gmail saw isn't one of yours. DKIM survives forwarding better than SPF does.

How to fix it

  1. Copy the domain and IP address from the bounce's "Authentication results" line.
  2. Run the free checker above on that domain. Confirm it has exactly one SPF record, the record is valid, and it needs 10 lookups or fewer.
  3. Work out which service owns the IP. Usually it's the tool you sent that campaign through; its setup page will give the include to use. If the IP belongs to your mailbox provider, check you have its include (for example include:_spf.google.com for Google Workspace or include:spf.protection.outlook.com for Microsoft 365).
  4. Add the missing include to the existing record for that domain. Don't create a second record. If the envelope sender is a subdomain, publish the record on the subdomain.
  5. Wait for DNS to update, then send a test message through the same tool to a Gmail address and open Show original. The summary at the top should say SPF: PASS, with the IP address and domain from the bounce.
  6. Resend the messages that got the 550. Mail that got a 421 is normally retried by your server on its own.

If the bounce says null MX

The code 5.7.27 also has an older meaning. RFC 7505, which defines the null MX record, says servers that reject mail because the sender's domain publishes a null MX "SHOULD use a 550 reply code ... and a 5.7.27 enhanced status code (Permanent failure: Sender address has null MX)". If the text of your bounce mentions a null MX rather than SPF, the cause is your MX record, not SPF: see does a cold email domain need an MX record. The free checker flags a null MX on the domain too.

Keep it from coming back

5.7.27 usually returns when someone adds a sending tool or moves DNS and the SPF record isn't updated. OutboxWatch checks SPF, DKIM, DMARC, MX and blocklists on your sending domains every day and emails you when something changes, so a missing include or a second record gets caught before Gmail starts bouncing. While you're fixing SPF, make sure DKIM and DMARC are set up too: Gmail requires all three from bulk senders.

Frequently asked questions

What does Gmail error 550 5.7.27 mean?

Gmail blocked the message because it didn't pass SPF. The server that sent it isn't authorized by the SPF record of the domain Gmail checked (the envelope sender domain), or that domain's SPF record is missing or broken. The bounce shows the domain and IP address it checked.

What is the difference between 421 4.7.27 and 550 5.7.27?

421 4.7.27 is temporary: Gmail rate limited the message and your server will usually retry. 550 5.7.27 is permanent: the message was blocked and won't be retried. Both have the same cause, an SPF check that didn't pass.

My DKIM passes. Why does Gmail still reject my email for SPF?

Google's sender guidelines require senders of more than 5,000 messages a day to Gmail accounts to set up both SPF and DKIM. Once you're treated as a bulk sender, a DKIM pass doesn't make up for an SPF failure.

My SPF record looks right. Why does it still fail?

Check the domain in the bounce. SPF is checked on the envelope sender (Return-Path), which is often a subdomain or your sending platform's domain, not your From address. Also check for a second SPF record, more than 10 lookups, or a ~all record that doesn't list the sending IP.

Can 5.7.27 mean something other than SPF?

Yes. RFC 7505 uses 5.7.27 for "Sender address has null MX". If the bounce text mentions a null MX, remove the null MX record and publish your real MX records.

Find out what is wrong with your domainRun the free checker, or let OutboxWatch watch your domains daily and alert you when something changes.
Free weekly report for your domainOne email every Monday with your SPF, DKIM, DMARC, MX and blacklist status and what changed since last week. No card.
See the free weekly report

Related guides