Articles

SPF void lookups: the limit of two in RFC 7208

A void lookup is a DNS lookup during an SPF check that finds nothing. RFC 7208 recommends allowing two. A receiver that uses that limit returns "permerror" at the third.

If your record already reaches it, too many SPF lookups find nothing shows how to find the terms and remove them.

What counts as void?

Section 4.6.4 defines it as a term whose DNS query returns "either a positive answer (RCODE 0) with an answer count of 0, or a "Name Error" (RCODE 3) answer". The name exists but has no record of the kind asked for, or the name doesn't exist.

A lookup that times out or gets a server failure is not void. When that happens to the SPF record itself, the check ends with "temperror" (section 4.4).

Is the limit required?

No. The standard's wording:

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.  Exceeding the limit
produces a "permerror" result.

Unlike the 10-lookup limit, which is a MUST, this is a SHOULD. A receiver that follows the standard may set another limit or none, though one that makes it configurable is told to start at two. The RFC doesn't tell you which receivers use it.

The count is separate from the 10. A record with three lookup terms in total reaches it if all three find nothing.

Why does the limit exist?

Lookups for names that don't exist cost receivers the same work as real ones. Section 11.1 describes an attacker who publishes terms such as a:example.com a:foo.example.com a:bar.example.com aimed at a victim's DNS, and notes "The names used in the record needn't exist for the attack to be effective." Its answer is to stop "as soon as more than two "void lookups" have been encountered". RFC 4408, the version before RFC 7208, had no such limit (appendix B).

Is a term always void, or only sometimes?

It can depend on the message. An a term asks for an A record when the sending server uses IPv4 and an AAAA record when it uses IPv6 (section 5.3). A name with only an IPv6 address is a void lookup for mail sent over IPv4, and not for mail sent over IPv6.

Check your record

The free SPF checker can mark some entries "finds nothing". It can't predict that result for a particular message.

Sources

Next: SPF include and redirect in RFC 7208 · All articles

Check your domain

See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.

Last updated : New article: the recommended limit of two lookups that find nothing, quoted from RFC 7208.

Found an error, or a question this page does not answer? Email support@mailglo.com.

For AI agents: this page in Markdown, llms.txt, the index of guides and public pages