In this article
To check SPF, the recipient’s mail server makes DNS lookups: for every include, a, mx and for every nested record inside them. The standard allows no more than 10 such lookups. If there are more, the check ends with a permerror — and SPF stops working entirely, for all emails at once.
What it is
Lookups are counted not per line but across the whole chain. For example, include:_spf.google.com on its own is one lookup, but it contains several more includes, and each of those counts too.
| Mechanism | Counts towards the limit |
|---|---|
| include, a, mx, exists, redirect, ptr | Yes, each one — plus everything nested |
| ip4, ip6, all | No |
An example of a record that looks harmless but can exceed the limit: v=spf1 a mx include:_spf.google.com include:mailgun.org include:sendgrid.net include:servers.mcsv.net include:spf.crm.example ~all.
How the monitor checks
Impact on the site and business
- SPF stops working completely — for all emails, not just for the “extra” service.
- DMARC starts rejecting emails if you have a strict policy and DKIM isn’t set up for every service.
- The problem is invisible: nobody gets an error; emails just land in spam more often.
Why it matters
This is how it usually goes: first email on Google Workspace, then a newsletter service, a CRM, an online till, a survey tool. Each asks you to “add our include”. A year later the record has eight includes, and one day another service pushes it over the limit. No error emails — deliverability just drops.
Norms
| Rating | DNS lookups | Comment |
|---|---|---|
| Good | up to 7 | Room for new services |
| Could be better | 8–10 | Works, but almost no headroom |
| Bad | more than 10 | SPF returns an error for all emails |
How to fix it
- List every include in the record and for each one ask: does this service still send email from our domain?
- Remove the services you no longer use — the easiest and most common win.
- Remove
aandmxif the website and mail servers don’t send email directly (for example, email is on Google and the site sends via Google’s SMTP). - Remove
ptr— this mechanism is deprecated and not recommended. - If there really are many services, move bulk mailings to a subdomain (for example
news.your-domain) with its own SPF record.
Hosting and control panel
Edit the single TXT record with v=spf1 in the DNS section. After the change, wait for DNS to update and check the number of lookups in the monitor.
Cloudflare
Edit the record under DNS → Records. While you are there, check that there is only one: Cloudflare lets you create several TXT records with v=spf1, and that is an error too.
General recommendations
- Review the list of includes every six months.
- When you connect a new service, check the number of lookups straight away.
- Set up DKIM for every service: if SPF breaks, emails with a DKIM signature still pass DMARC.
FAQ
Why exactly 10?
The SPF standard sets it so that checking a single email doesn’t trigger an avalanche of DNS lookups. All major mail providers enforce this limit.
Can I just create a second SPF record for the other services?
No: two SPF records are also an error, and the check fails completely. You need one record within 10 lookups.
How do I find which include “eats” the most lookups?
The monitor report shows the total. Online SPF checkers give a breakdown per include — just enter your domain.