How to Fix the SPF 10-DNS-Lookup Limit (PermError) Before Emails Bounce
RFC 7208 caps SPF evaluation at 10 recursive DNS lookups. Learn why exceeding 10 causes PermError bounces and 4 proven ways to bring your count back under budget.
What counts toward the RFC 7208 10-lookup ceiling
Under RFC 7208 Section 4.6.4, an SPF evaluator may perform at most 10 DNS-querying mechanisms per check: include:, a, mx, ptr, exists:, and the redirect= modifier—recursively across every nested include.
Static ip4: and ip6: mechanisms cost 0 lookups. A single include:_spf.google.com plus HubSpot, Salesforce, Zendesk, and Mailchimp routinely explodes past 12–18 nested lookups, causing receiving MTAs to return PermError and route messages to spam or bounce.
Four reliable fixes to get below 10 lookups
1. Remove legacy vendors you no longer send from (old CRMs, defunct helpdesks) and drop redundant ptr or mx mechanisms when ip4 ranges already cover your relay.
2. Isolate marketing and bulk notifications onto dedicated subdomains (for example mail.example.com or notify.example.com) so each subdomain gets its own fresh 10-lookup SPF budget.
3. Replace static vendor includes that resolve to 1–2 fixed /24 blocks with direct ip4:/ip6: entries only if the provider publishes static ranges, or use automated SPF flattening/macros.
4. Never publish two separate v=spf1 TXT records on the apex domain—multiple SPF records also trigger an immediate PermError.
; BAD: Multiple SPF records or >10 nested lookups
; example.com TXT "v=spf1 include:_spf.google.com include:servers.mcsv.net include:sendgrid.net include:spf.protection.outlook.com include:_spf.salesforce.com ~all"
; GOOD: Apex limited to core workspace + subdomain delegation for bulk tools
example.com. IN TXT "v=spf1 include:_spf.google.com -all"
notify.example.com. IN TXT "v=spf1 include:amazonses.com -all"Check if your domain already passes these requirements
Run a 15-second live compliance scan across Privacy, EAA 2025, Email Auth, and Security Headers—or generate exact configs using our 6 free tools.