Gmail 451 4.7.24: the SPF record has suspicious entries
Updated · 3 min read
Gmail:451 4.7.24421 4.7.24
In short
- Gmail found something in your domain's SPF record that it treats as suspicious, and is deferring your mail until the record changes. Google does not say what it found.
- The likeliest reasons are entries that authorise far more than any real sender needs, such as +all or huge address ranges, and entries the SPF standard warns against, such as the ptr mechanism or includes that no longer resolve.
- Run the SPF check, remove or narrow what it flags, and the deferrals stop once the new record is visible.
Check your SPF record now
Type the domain in your return path: usually your own domain, or the bounce domain your sending service uses.
On this page
The deferral, as Google documents it
451 4.7.24Also sent as 421 4.7.24, with the same textThe SPF record of the sending domain has one or more suspicious entries. To protect our users from spam, email sent from your IP address has been temporarily rate limited. …
Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.
Gmail read the SPF record of the domain your mail came from, found one or more entries it considers suspicious, and is slowing down mail from your server until the record changes. The code is temporary, so your server keeps retrying — but the record is the same on every retry, so the deferrals continue until you edit it.
Google does not publish what it counts as suspicious. The entries below are the ones that make an SPF record authorise much more than any legitimate sender needs, or that the SPF standard itself warns against, which is the most plausible reading. Our SPF checker reports the first four directly and shows the whole include tree for the fifth. Treat the list as our reading of the message, not as Google's.
Most likely causes
- The record ends in +all, or authorises everything another way. +all lets any server on the internet pass SPF as your domain, which is the opposite of what the record is for.
- An address range far too wide. Our SPF checker warns on an ip4 range of /16 or wider, which is 65,536 addresses or more, and on an ip6 range of /32 or wider: no single sender needs that many. A range of /7 or wider covers at least 33 million addresses, and /0 covers every address there is, so the checker grades it as it grades +all.
- The ptr mechanism. RFC 7208 says it should not be published: it is slow, it is less reliable than the other mechanisms when a DNS lookup fails, and it puts a heavy load on the reverse-DNS servers.
- Includes that point at domains with no SPF record, or that no longer exist. A record that keeps referencing a shut-down service produces empty lookups on every check, and RFC 7208 lets receivers return an error after two of them.
- An include that pulls in far more than you expected. Your own record can look tidy while a service it includes authorises a huge range; our checker walks every include, so the whole tree is visible.
Why a loose record is your problem, not only Gmail's
A record that authorises the whole internet does more than worry a filter. Anyone can send mail that passes SPF as your domain, and when the envelope sender is your domain, that pass also counts towards DMARC. A forger needs nothing from you to use it.
So the change that stops the deferrals is also a security fix. Narrowing the record to the servers that really send for you is what makes SPF mean anything.
How to fix it
Replace +all with ~all while you confirm the list of senders, then move to -all.
Replace any range wider than your provider documents with the exact addresses, or with the include the provider publishes.
Remove ptr and use ip4, ip6 or the provider's include instead.
Remove includes for services you no longer use, above all any that no longer publish an SPF record.
Keep exactly one SPF record, under ten DNS lookups.
How to confirm the fix worked
Run the SPF check again once the old record's TTL has passed: nothing should remain flagged for +all, broad ranges, ptr or includes that fail.
Watch your mail log: the 4.7.24 deferrals should stop at the next retry after Gmail sees the new record.
Check your domain with the SPF checker