Short answer: SPF is only allowed 10 DNS lookups each time a receiving server checks it. Go over, and the check ends in an error that counts as a failure, so your SPF fails for every email you send, even though the record looks fine. Fix it by removing services you no longer use and cutting lookups that aren't needed until the total is 10 or fewer.
What the error actually means
Your SPF record is a list of the servers allowed to send email for your domain. When a mailbox provider like Gmail checks it, some parts of the list make it go and look up more DNS records. The SPF standard (RFC 7208) caps those lookups at 10 per check. Once a check needs more than that, the receiver stops and returns a "permanent error" (often shown as permerror).
That matters because DMARC treats an SPF permanent error as a failure. So a domain can have a perfectly normal-looking SPF record that silently fails everywhere, and the first sign is usually emails drifting into spam.
What counts toward the 10
| Part of the record | Counts? |
|---|---|
include: | Yes — 1, plus everything inside the record it points to |
a, mx, exists, ptr | Yes — 1 each |
redirect= | Yes — 1 |
ip4:, ip6:, all | No |
The catch is the first row. An include: counts once for itself and again for every lookup inside the record it points to, and so on down the chain. Google Workspace is the classic example: include:_spf.google.com points to three more records, so that one line uses 4 of your 10 lookups. Add a CRM, a help desk, a newsletter tool and a billing tool, each with its own include, and you can pass 10 without noticing.
There's a second, lesser-known limit too: the standard recommends allowing no more than 2 "void" lookups, meaning lookups that come back empty. An include left over from a tool you cancelled can point to a record that no longer exists, and enough of those can break SPF on their own.
Not sure how many lookups you're using?. ThawStack checks your SPF, DKIM and DMARC live and writes the exact records to fix them. Free, no signup.
How to fix it
- Count your real total. Counting by eye misses the nested lookups. Use a checker that follows every include (the ThawStack audit does this and shows the running count).
- Remove services you no longer use. This is the most common fix. Old email tools, past newsletter platforms and trial software often stay in SPF for years.
- Drop
ptrentirely. The standard itself says not to use it. - Remove
aormxif those servers don't send mail. Many records include them by default even when the website or inbound mail server never sends anything. - Move a sender to a subdomain. For example, send your newsletter from
news.yourdomain.comwith its own SPF record. Each subdomain gets its own budget of 10. - Replace an include with fixed IP addresses only if the provider tells you to. This saves lookups, but if the provider changes its servers later your SPF breaks without warning. Paid "SPF flattening" services automate this and keep the IPs updated.
Mistakes that cause the same symptoms
- Two SPF records on one domain. Only one is allowed. Two also causes a permanent error, so merge them into a single record.
- Ending with
+all. That tells receivers any server in the world may send as you. End with~allor-allinstead. - Adding an include for your cold email tool when you don't need one. Sending tools that send through your connected Google Workspace or Microsoft 365 inbox usually go out through Google's or Microsoft's servers, which your existing include already covers. Check the tool's own setup docs before adding anything.
A note for cold email setups
If you send cold email from separate lookalike domains (which you should, so your main domain stays safe), each of those domains has its own SPF record and its own limit of 10. Keep them simple: usually just your email provider's include and ~all. Our guide on how many inboxes and domains you need covers the rest of that setup.
Run a free live audit on your domain. ThawStack checks your SPF, DKIM and DMARC live and writes the exact records to fix them. Free, no signup.