Email

Gmail error 550 5.7.27: the message did not pass SPF, how to fix it

In short. Gmail blocked your email because the SPF check failed: the IP address that sent it is not authorized by your domain's SPF record. The recipient gets nothing, and you receive an error message in return. The fix is made in your domain's DNS zone, by you or by your provider. Allow an hour, then send a test.

550 5.7.27 is a permanent Gmail rejection. Its temporary version is 421 4.7.27: Gmail does not block the message but limits the sending rate. According to Gmail's official list of SMTP errors, both codes describe the same cause: a bulk sender whose SPF check did not pass.

Last verified: November 30, 2026, in Google's official help (the list of Gmail SMTP errors and the email sender guidelines).

The message you receive

Gmail returns its text in English, whatever your language. This is the blocking version:

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.
Authentication results: SPF with ip-address = did not pass

And the temporary version, which limits the rate without blocking:

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.
Authentication results: SPF domain-name with IP address: ip-address = Did not pass.

The last line is the most useful: it gives the IP address Gmail saw when the message was sent. That is the address missing from your SPF.

Who is affected

The message talks about "bulk" senders. Under Google's rules, a sender is in that category above 5,000 messages a day to Gmail accounts. It must then publish SPF and DKIM, plus a DMARC record. A smaller sender must at least have SPF or DKIM.

In practice, a small business can also see this error: a newsletter tool, an invoicing program or a website form sends with your domain without being in your SPF, and the message is treated as unauthenticated.

Expected values

CheckExpected value
SPF recorda single TXT v=spf1 … on the sending domain
Contentevery service that sends with this domain, including the IP address Gmail saw
DNS lookups10 at most (RFC 7208), otherwise the result is a permanent error
End of the record-all or ~all, never +all

SPF checks the domain of the technical envelope address (the MAIL FROM, also called the "return path"), not necessarily the one the recipient sees in From. That is the source of many surprises with sending tools.

Step 1: check what is published

From a terminal (replace example.com with your sending domain):

dig +short TXT example.com

You must get one line starting with "v=spf1. Two SPF records on the same name give a permanent error: merge them. On Windows, nslookup -type=TXT example.com gives the same information.

Step 2: find the IP address and the service

Take the address shown on the "Authentication results" line of the error message. Find out which service it belongs to: your mail host, a newsletter tool, a CRM, a website server. If the address is not recognized, first check that you do not have a sender you did not know about, which is a security problem more than a DNS problem.

Step 3: fix the SPF

  • Service missing: add it to the same record, with the mechanism its provider gives (often an include:). Example of the shape: v=spf1 include:_spf.service.example ~all. Use the value from your provider, not the one in this example.
  • Two records: merge them into one.
  • More than 10 lookups: every include, a, mx or redirect counts, including those inside the includes. Remove services you no longer use.
  • Forwarded message: SPF often breaks when a message is forwarded by another address, because the IP that resends it is not yours. There DKIM must take over: see error 550 5.7.30.

Do not switch to +all to "silence" the error: it lets anyone send in your domain's name.

Step 4: test

Send a message to a Gmail address, open it, menu Show original: the SPF line must read PASS, with the expected IP address. Our free SPF checker reads the record from the Internet and flags duplicates and overruns. The DKIM checker and DMARC checker cover the rest of the chain. Step-by-step guides: SPF, DKIM, DMARC.

Check your domain for free. AttackScout reads your SPF, DKIM and DMARC from the Internet and tells you which one blocks your sending. In one minute, no account. Check my domain

To watch these records over time and be warned of a change, see the pricing.

Frequently asked questions

550 5.7.27: what is the difference with 421 4.7.27?

The 421 code is temporary: Gmail slows your sending. The 550 code is permanent: the message is refused. The cause is the same, a failed SPF, and so is the fix. The 421 is a warning to take seriously, because the 550 can follow.

550 5.7.27: my SPF is published, why does it fail?

Most often the sending IP is not in the record, or the record exceeds 10 DNS lookups, or it exists twice. A correct SPF on the From domain is useless if the check applies to the return-path domain of your sending tool.

550 5.7.27: do I also need DKIM to fix it?

To clear this error you need a passing SPF. But Google asks bulk senders for SPF and DKIM, plus DMARC. You may as well set them up together.

550 5.7.27: is the problem on Gmail's side?

No. Gmail applies a public rule. Only the domain owner can change the SPF record.

Sources

Read on 11/30/2026.

Get the free alerts