✉ Senderlint

SPF “too many DNS lookups” (PermError) checker

If a header says spf=permerror or a tool reports “too many DNS lookups”, your SPF record needs more than 10 lookups once all includes are expanded. Run the check to see the exact count and which include costs the most.


How to get back under 10

  1. Remove senders you no longer use. Old marketing tools often stay in SPF for years.
  2. Move bulk mail to a subdomain (for example news.example.com) with its own SPF record, so marketing and transactional vendors don't share one budget.
  3. Replace a and mx with explicit ip4:/ip6: ranges when you control those servers; IP mechanisms cost no lookups.
  4. Rely on DKIM alignment for vendors that sign with your domain; DMARC passes on aligned DKIM even when SPF doesn't align.
  5. Flattening (replacing includes with IPs) works but breaks silently when a vendor changes IPs, so monitor it if you do it.

Get an email if these records change

Free monitoring beta: we re-check your domain's SPF, DKIM and DMARC and tell you when something breaks (for example a second SPF record or a removed DMARC policy). Join the waitlist; we email you once when it opens. No list, no sharing.

FAQ

Which mechanisms count toward the limit?

include, a, mx, ptr, exists and redirect. ip4, ip6 and all do not. Nested includes count too.

What is a void lookup?

A lookup that returns no record or NXDOMAIN. RFC 7208 suggests receivers fail after 2, so stale includes can break SPF even under 10.

Why does Google Workspace plus a few tools hit the limit?

Some vendor records include other records. One include can cost 3–4 lookups once expanded, which the lookup tree shows.

All free checks