SPF “too many DNS lookups”: how to fix the 10-lookup limit
SPF (RFC 7208) allows at most 10 DNS-querying mechanisms per check. Exceed it and the result is permerror, which many receivers treat as a fail.
What counts
Each include:, a, mx, ptr, exists: and redirect= counts as one, including those nested inside includes. ip4:, ip6: and all don’t count. Separately, more than two lookups that return nothing (“void lookups”) also cause a permerror.
Ways to reduce lookups
- Remove services you no longer use. Old newsletter or CRM tools are the usual suspects.
- Drop
aandmxif those servers don’t send mail. - Remove
ptr; it’s deprecated. - Move senders to a subdomain. Have marketing tools send from
news.yourdomain.comwith its own SPF record. - Rely on DKIM for services that sign with your domain; DMARC passes on DKIM alone.
- Flatten carefully. Replacing includes with IP ranges works but breaks when providers change IPs, so only do it with an automated flattening service.
See exactly what your domain’s SPF, DKIM and DMARC look like, free.
Check my domainFrequently asked questions
Can I have two SPF records to get around the limit?
No. Two v=spf1 records on the same name is itself a permerror. Merge them into one.