The Hidden SPF Void Lookup Limit: Why a 4/10 Record Still Fails With PermError
Most email administrators know about the 10-DNS-lookup ceiling in SPF. Far fewer know that RFC 7208 enforces a second, stricter cap: a maximum of 2 void lookups. Exceed that limit and receiving mail servers immediately return PermError—even if your total lookup count is only 4 out of 10.
"SPF implementations SHOULD limit 'void lookups' to two. An implementation MAY choose to make such a limit configurable. In this case, a default of two is RECOMMENDED."
What Counts as a "Void Lookup"?
A void lookup occurs whenever an SPF mechanism (include:, a, mx, exists:, or redirect=) performs a DNS query that returns either:
- NXDOMAIN (RCODE 3): The target hostname or subdomain no longer exists.
- NOERROR with 0 Answer Records: The domain resolves, but contains no matching
TXT,A, orAAAArecords.
Crucially, this limit exists as an anti-DDoS safeguard so attackers cannot force receiving MTAs to waste cycles querying non-existent domains.
How Healthy Domains Hit the Void Lookup Trap in Production
Void lookups almost never happen on day one. They accumulate silently through routine SaaS churn:
- Retired Marketing & CRM Tools: Marketing cancels an old newsletter or ticketing platform, the vendor decommissions its legacy SPF subdomain, and the stale
include:stays in your root TXT record. - Upstream Vendor Deprecations: An active vendor migrates its sending infrastructure to a new hostname and silently drops its old
_spfrecord. - Unused
mxoraMechanisms: Copy-pasted boilerplate records likev=spf1 a mx include:...on sending subdomains that have noAorMXrecords published.
Example: 5 Total Lookups, 3 Void Lookups = Broken Mail
v=spf1 a mx include:spf.protection.outlook.com include:legacy-crm.example.net -all
If the apex domain has no A record (1 void), no MX record (2 void), and legacy-crm.example.net returns NXDOMAIN (3 void), Microsoft 365 emails fail SPF with PermError before Outlook's include even matches.
v=spf1 include:your-org.spf1.com -all
Dead includes and empty mechanisms are stripped, and active vendor CIDRs resolve directly to valid IPv4/IPv6 ranges with zero void DNS queries—just watch out for the 255-character DNS TXT string limit when pasting flattened records.
Check Your Domain for Hidden Void Lookups & Nested Bloat
SPF1 walks your full recursive DNS tree—catching nested vendor includes, dead NXDOMAIN targets, and approaching 10-lookup limits before DMARC alignment breaks.
Scan Your Domain Free →