How to Fix the SPF 10-DNS-Lookup Limit (PermError)

RFC 7208 hard-caps SPF evaluation at 10 DNS lookups (including nested includes). Here is how to eliminate PermError permanently without fragile manual IP flattening.

Fix PermErrorSubdomain IsolationInteractive Audit

Copy-Ready DNS Records & Configuration

Host / NameTypeValueTTLPurpose
@ (Root) TXT v=spf1 include:_spf.google.com ~all 3600 Corporate mail only (4 lookups)
send TXT v=spf1 include:amazonses.com ~all 3600 Transactional API mail isolated on send.<domain> (1 lookup)
news TXT v=spf1 include:spf.hubspotemail.net ~all 3600 Marketing blasts isolated on news.<domain> (2 lookups)

Interactive SPF 10-DNS-Lookup Limit Checker

MechanismTypeDirectEst. TotalNotes

Step-by-Step Deployment Checklist

  1. Audit your current root SPF record in the live checker below to see which `include:` expands into 2–4 nested lookups.
  2. **Fix #1 (Best): Isolate senders on subdomains.** Move transactional (Resend/SES/Mailgun) to `send.` and marketing to `news.` — each subdomain gets its own fresh 10-lookup budget.
  3. **Fix #2: Remove redundant ESP includes.** SendGrid (Automated Security), Postmark (Custom Return-Path), and Mailchimp use DKIM/CNAME Return-Path and do not need a root SPF `include:`.
  4. **Fix #3: Remove unnecessary `a`, `mx`, and `ptr` mechanisms** if your web server or inbound MX host never sends outbound mail directly.

Common Pitfalls to Avoid

Chrome Extension — DiffRadar + Gumroad

Track DNS Console Changes, Status Pages & Vendor Docs Automatically

Use our DiffRadar Chrome Extension to watch cloud provider policy updates and grab our Indie Infra & Automation Kits on Gumroad.

Frequently Asked Questions

Why does my SPF fail when I only have 5 include statements?

Nested includes count! For example, `_spf.google.com` counts as 4 lookups, `mail.zendesk.com` counts as 3, and `spf.protection.outlook.com` counts as 2 — just 5 includes can easily hit 12+ total lookups.

Is SPF flattening safe?

Automated dynamic SPF flattening (which polls and refreshes IPs on a schedule) is safe, but one-time manual IP flattening is risky because ESPs change IP blocks without warning. Subdomain isolation is cleaner and free.

Does removing an ESP from root SPF hurt DMARC?

Not if that ESP signs with an aligned DKIM key or uses a dedicated Return-Path subdomain (`send.yourdomain.com`). DMARC only requires either SPF or DKIM to pass and align.

Related DNS & Email Auth Guides