Email authentication error
SPF void lookup limit: why two empty answers cause a permerror
Most people know that SPF allows 10 DNS lookups. Fewer know about the second limit in RFC 7208: a receiver should stop with a permerror if evaluating your record produces more than two void lookups. A void lookup is a DNS query that returns no records, or tells the receiver the name does not exist.
By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.
This catches records that carry old entries for services that have closed, domains that have lapsed, or typos. The record can look short and tidy, sit well under 10 lookups, and still fail. This page explains the rule and shows how to track the offending terms down.
What the standard says
Section 4.6.4 of RFC 7208 sets the processing limits. Besides the limit of 10 terms that cause queries, it says evaluation should also limit the number of void lookups to two. A void lookup is defined as a DNS query that returns either a positive answer with no records or an answer of NXDOMAIN, meaning the name does not exist.
When the count goes past two, the standard says the check returns a permerror. The wording is a recommendation to implementers, so behaviour differs a little between receivers, but the large mailbox providers should be assumed to follow it. A record that depends on three dead entries is therefore at risk even if it works today on some receivers.
Where void lookups come from
The usual source is an include that points to a domain that no longer publishes an SPF record, or no longer exists. A cancelled email marketing tool, a former web developer's mail host and a business that was acquired and rebranded are all typical.
Next are mechanisms that resolve to nothing: an a term for a hostname that has no address record, or an mx term for a domain with no MX records. Misspelt domains in include terms produce them too.
An include for a domain with no SPF record also fails for a second reason. RFC 7208 treats an included domain with no record as a permerror in its own right, so even one dead include can break the record before the void count is reached.
How to find them
Follow each term in your record and query its target. For include and redirect, look up the TXT record and check it starts with v=spf1. For a and mx, check the hostname returns an address. Any answer that comes back empty or with NXDOMAIN is a void lookup. Write down how many you find.
A free checker that walks the whole tree does this for you and is worth running after each change. Then cross-check the list against real senders in your DMARC aggregate reports, so you remove only entries that truly nothing uses.
How to fix it
Delete the dead terms. Fix any typos, and replace an include with the correct domain from the provider's help page. If a sender still uses an address that you cannot reach by name, publish it as an ip4 term instead, since that needs no query.
Re-test, and keep the lookup budget in view as well: the 10 lookup limit and the void limit are separate checks and both must pass. Reading the error text from your checker, rather than only the pass or fail, tells you which of the two you tripped.
Find and remove void lookups in your SPF record
- Save a copy of the current v=spf1 record before editing.
- List every include, a, mx, exists and redirect term in the record.
- Query each include and redirect target and confirm it returns a v=spf1 record.
- Query each a and mx target and confirm it returns an address or MX answer.
- Mark every empty or NXDOMAIN answer as a void lookup and count them.
- Check with the owner of each flagged term whether the service is still used.
- Delete dead terms and correct any misspelt domain names.
- Publish the record and re-run a full tree checker to confirm zero void lookups.
- Send a test message and confirm spf=pass in the headers at the receiving end.
- Add a yearly review of the record to your IT calendar.
Questions people ask
Is the void limit the same as the 10 lookup limit?
No. They are separate rules in RFC 7208 section 4.6.4. The first counts queries that cause further lookups, the second counts only queries that return nothing.
Do all receivers enforce the two void lookup limit?
The standard sets it, but it is worded as a limit implementers should apply, and behaviour can differ by receiver. Plan for the strict reading.
Does a void lookup always mean a mistake?
Usually, yes. Check with whoever set the term up before removing it, in case it is meant to point at a name that is empty for most senders.
Will a void lookup show up in DMARC reports?
It appears as an SPF permerror or fail on the affected mail, so look for spf results of permerror for your own sending sources.
Where to from here
The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.
Sources
- RFC 7208, Sender Policy Framework, section 4.6.4 (evaluation limits)
- ASD, how to combat fake emails
- RFC 7489, DMARC
General information, not legal advice. Laws and guidance change: check the linked primary sources and ask a qualified adviser about your own situation. Written by Kyle Deligny with AI assistance, last reviewed 1 December 2026. How we write and check: editorial policy.
