Sources indicate that most engineers know about the 10 DNS lookup limit in SPF (RFC 7208). You count your include: mechanisms, see 4/10 or 6/10, and assume your SPF record is healthy.
Then outbound emails start failing authentication with PermError—even though you're nowhere near 10 lookups. (Related: Stop treating agents as one-off projects and start runn...)
The culprit is often RFC 7208 Section 4.6.4: the void lookup limit.
During SPF evaluation, a receiving mail server treats a DNS lookup as void when a lookup mechanism (include:, a, mx, ptr, exists:) returns:.
Under RFC 7208 Section 4.6.4, more than 2 void lookups during a single SPF evaluation aborts evaluation and returns permerror.
That means a record with only 4 total DNS lookups can still fail if 3 of those lookups are void.
In practice, void lookups rarely come from someone typing garbage on purpose. They usually show up because of day-to-day drift:. (Related: Few-shot learning in practice: GPT-Neo and the 🤗 Accele...)
Basic SPF checkers only count top-level mechanisms or stop at the first syntax error. They often show 4/10 or 5/10 and give you a false green light while hiding 3 void lookups buried inside the evaluation chain.
Sources indicate that to catch it properly, you have to walk the full recursive expansion and inspect the DNS response status (NOERROR vs. NXDOMAIN / empty answer) on every lookup step—not just tally include: count.
If you want to inspect the full recursive lookup chain and void-lookup count on a live domain without signing up, I built a free scanner at SPF1.
