1 SPF1
RFC 7208 Deep Dive • 6 Min Read

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.

RFC 7208 Section 4.6.4 — Processing Limits

"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."

Standard Lookup Cap 10 DNS Queries Max
Void Lookup Cap 2 Empty / NXDOMAIN Max
Failure Result PermError (DMARC Fail)

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:

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:

  1. 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.
  2. Upstream Vendor Deprecations: An active vendor migrates its sending infrastructure to a new hostname and silently drops its old _spf record.
  3. Unused mx or a Mechanisms: Copy-pasted boilerplate records like v=spf1 a mx include:... on sending subdomains that have no A or MX records published.

Example: 5 Total Lookups, 3 Void Lookups = Broken Mail

Broken Record (Triggers PermError on 3rd Void Lookup) 5/10 Lookups • 3 Void
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.

Clean Flattened Record (Zero Void Lookups) 1/10 Lookups • 0 Void
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 →