SPF looks simple: one TXT record listing who may send email for your domain. But it has a hard limit that catches out a lot of businesses, usually right after someone adds "just one more" service.
The rule
When a receiving server checks your SPF record, it may perform at most 10 DNS lookups in total. Each of these mechanisms costs one lookup: include:, a, mx, ptr, exists: and redirect=. Crucially, the includes inside an include count too.
So include:_spf.google.com isn't one lookup: Google's record itself includes three more. A record with Google Workspace, Microsoft 365, a newsletter tool, a help desk and a CRM can easily need 12 or 15 lookups.
What happens when you go over
The check doesn't partly work. Going over the limit is a permanent error (permerror), and receivers treat SPF as failed for every message, including the ones from your main mailbox. If DKIM is set up and aligned, DMARC may still pass; if not, your mail starts landing in spam with no obvious reason.
The other classic mistake is publishing two SPF records, for example when a new service's setup guide says "add this TXT record" and you add a second v=spf1 line instead of editing the first. Two records is also a permanent error.
How to get back under 10
- Remove services you no longer use. Old newsletter tools and former email providers are the usual suspects.
- Drop
ptrentirely; it's deprecated and slow. Replaceaandmxwith explicitip4:ranges if those addresses rarely change, since IP ranges cost no lookups. - Send marketing mail from a subdomain, such as
news.example.com, with its own SPF record. This keeps your main record short and protects your main domain's reputation. - Rely on DKIM where you can. Many services (Mailchimp is one) sign with DKIM for your domain and don't need to be in SPF for DMARC to pass.
Avoid "SPF flattening" services unless you understand them: they replace includes with fixed IP addresses, which break silently when a provider changes its servers.
Our SPF checker counts the lookups in your record and flags duplicates. Domain Health re-checks it every few hours, so you find out the day someone adds the include that tips it over.
Want this checked automatically? Domain Health watches your SSL certificates, domain renewals, DNS, email security and blocklists, and emails you before something breaks. Start free (2 domains, no card).