An SPF evaluation can fail when a record causes more than ten DNS-querying terms during its lookup process. Common contributors include nested include rules and mechanisms such as a, mx, exists, and redirect. The fix starts with mapping every authorized sender, not simply deleting terms until the check passes.

Find the sources of the lookup count
Each service that sends mail for your domain may ask you to add an SPF include. Those includes can contain other includes, so a short-looking record can trigger many DNS lookups. DNS-querying mechanisms can also add to the total, while address mechanisms such as ip4 and ip6 do not make the same kind of lookup.
Use an SPF-aware diagnostic to expand the record and identify which terms contribute. Also check for multiple SPF TXT records at the same domain; having more than one SPF record can cause a separate evaluation error.
- Inventory all mail platforms and sending services.
- Expand nested includes and identify unused senders.
- Confirm there is one SPF policy record for the domain.
Reduce complexity without removing valid senders
Remove obsolete vendors only after confirming they no longer send mail. Ask active providers whether they offer a lower-lookup record or a maintained sending subdomain. Consolidation can reduce repeated mechanisms, but any change must preserve the authorized IP ranges and services.
SPF flattening replaces DNS-based references with IP addresses, but those addresses can change. A flattened record requires monitoring and updates; it is not a set-and-forget fix. Avoid copying a vendor’s record into your domain without understanding how it affects all senders.
- Keep a source owner and renewal date for each include.
- Retest after every vendor or DNS change.
- Do not publish multiple SPF records to solve a lookup problem.
Verify authentication after the change
Test messages from each legitimate system after publishing the revised DNS record. Confirm SPF results, DKIM signing, and DMARC alignment in received headers or reports. A record that passes a syntax checker can still authorize the wrong source or fail to cover one business system.
Document the final record and review it whenever email vendors, subdomains, or sending infrastructure change. Authentication is an ongoing inventory task as well as a DNS configuration.
If a business has distinct sending systems, a dedicated subdomain can sometimes make ownership and SPF policy easier to manage. It does not automatically remove the lookup issue, but it can separate sender inventories and reduce the risk that a change for one service affects every message sent from the main domain.
How did this article land?
Choose one reaction. You can change it anytime.
