Guides / SPF void lookup limit: why a dead include makes SPF fail
SPF void lookup limit: why a dead include makes SPF fail
A "void lookup" is a DNS query made while checking SPF that comes back empty: the name exists but has no record of that type, or the name doesn't exist at all. The SPF standard says receivers should allow only two of them. Separately, an include: or redirect= that points at a name with no SPF record is a permanent error (permerror) on its own. Both usually come from the same thing: an include for a tool you stopped using, a typo in a domain name, or a provider that moved its SPF record. Below: what the spec actually says, how to find the bad term, and how to fix it.
What the SPF standard says
RFC 7208 section 4.6.4 defines void lookups as DNS queries that return "either a positive answer (RCODE 0) with an answer count of 0, or a 'Name Error' (RCODE 3) answer". It says: "SPF implementations SHOULD limit 'void lookups' to two" and "Exceeding the limit produces a 'permerror' result." The limit was new in RFC 7208; it wasn't in the older RFC 4408.
This is a separate limit from the better-known rule that a record may only use 10 DNS-querying terms in total. A record can be well under 10 lookups and still break because of void lookups. See SPF record too many lookups for the 10-lookup rule.
An include with no SPF record is an error by itself
Section 5.2 has a table of what an include: does with each result of the record it points at. The last row is "none" -> "return permerror". In plain terms: if include:mail.example-tool.com points at a name that has no SPF record, the include doesn't just get skipped, it turns the whole SPF check into a permanent error.
redirect= works the same way. Section 6.1 says that if the redirect target has no SPF record, "the result is a 'permerror' rather than 'none'".
- Name doesn't exist (NXDOMAIN): a void lookup, and no SPF record, so permerror when the include is reached.
- Name exists but has only other TXT records (a site verification token, for example): no SPF record, so permerror when the include is reached.
- Name has two SPF records: also a permerror, the same as multiple SPF records on your own domain.
Why it might only fail some of the time
Section 4.6.2 says mechanisms are "considered in turn from left to right" and that when one matches, "processing ends". So a receiver only reaches a dead include if the sending server didn't match anything before it.
That's why this problem is easy to miss. If your main mailbox provider is listed first, mail from it still passes. Mail from a tool listed after the dead include, or from a server that isn't listed at all, gets a permerror instead of a clean pass or fail. Under DMARC, an SPF permerror doesn't count as a pass, so that mail has to rely on DKIM alone.
How a dead include gets into your record
- You stopped using a sending tool and the vendor removed or renamed its SPF host, but your record still includes it.
- A typo when the include was added, such as a missing letter or an extra dot.
- A provider moved its SPF record to a new name and the old one now returns nothing.
- An include that points at a vendor's main domain instead of its dedicated SPF host, where the main domain has no SPF record or has two.
- An
a:ormx:term pointing at a host name that no longer exists. These also count as void lookups when they return nothing.
How to find the bad term
- Run the free checker on your domain. When an include or redirect target has no SPF record, the SPF row names it.
- Or check by hand: for each
include:andredirect=in your record, look up the TXT records of that name (for exampledig +short TXT _spf.example-tool.com) and confirm exactly one starts withv=spf1. - Repeat for the includes inside those records. A provider's include can itself include other names.
- Note any
a:ormx:host names and confirm they still resolve.
How to fix it
- If you no longer send through that service, delete the include. This is the most common fix.
- If you still use the service, look up its current SPF include in the vendor's own setup docs and replace the old one.
- Fix typos character by character. Copy the include from the vendor's docs rather than retyping it.
- If you can't tell what an include is for, check your sending tools' domain settings before removing it, so you don't drop a service that still sends.
- Publish the change, then run the checker again and send a test message to a mailbox where you can read the headers. Look for
spf=passin Authentication-Results.
Is it the provider's fault?
Sometimes. If a vendor's documented include stops resolving, that's on their side, and their status page or support should know. You still own the fix on your domain: until they repair it, every message that reaches that include gets a permerror. Removing it temporarily is safer than leaving a broken term in place, as long as your other mail still passes.
Catch it before it costs you replies
Includes break when someone else changes their DNS, so a record that passed last month can quietly start erroring. OutboxWatch checks SPF, DKIM, DMARC, MX and blocklists on your sending domains every day and emails you when a result changes, so a dead include shows up the day it happens.
Frequently asked questions
What is an SPF void lookup?
A DNS query made during the SPF check that returns no answer, either because the name has no record of that type or because the name doesn't exist. RFC 7208 says receivers should allow at most two.
Does an include with no SPF record really fail the whole check?
When a receiver reaches it, yes. RFC 7208 section 5.2 says an include whose target returns none produces permerror. Receivers stop at the first matching term, so mail from servers listed earlier can still pass.
Is the void lookup limit the same as the 10-lookup limit?
No. The 10-lookup limit counts terms that cause DNS queries. The void lookup limit counts queries that came back empty. A record can break either one without breaking the other.
Do all receivers enforce the void lookup limit?
The standard says SHOULD, not MUST, and allows the limit to be configurable with two as the recommended default. You can't count on a receiver being lenient, so treat any empty include as something to fix.
Can a dead include hurt DMARC?
It can. An SPF permerror is not a pass, so for mail that reaches the dead include, DMARC depends on DKIM passing and aligning. If DKIM also fails, that mail fails DMARC.
Related guides
- SPF record: too many DNS lookups, and how to fix it
- Multiple SPF records: why two records break SPF and how to merge them
- SPF record longer than 255 characters: how to split it correctly
- SPF record for Google Workspace: the exact value and common mistakes
- SPF and DKIM pass but DMARC fails: how alignment works and how to fix it
- Cold email deliverability checklist
- The SPF ptr mechanism: why to remove it and what to use instead
- SPF redirect vs include: which one should you use?
- All guides
- Monitoring plans