How to Fix 'SPF PermError: Too Many DNS Lookups' (Exceeding the 10-Lookup Limit)
Why This Happens
RFC 7208 strictly limits SPF evaluation to 10 nested DNS-querying mechanisms (include, a, mx, redirect, exists). Adding tools like Google Workspace, HubSpot, SendGrid, and Zendesk together easily pushes a domain to 12-16 lookups, causing Gmail and Microsoft 365 to fail SPF with PermError.
Step-by-Step Resolution
- Run a free domain scan below to count your exact nested SPF lookups.
- Remove legacy 'include:' statements for old marketing tools your company no longer uses.
- Move cold outreach and bulk marketing tools onto a dedicated subdomain (e.g. mail.yourbrand.com) so each subdomain gets its own fresh 10-lookup budget.
- Ensure you only have ONE TXT record starting with v=spf1 ending in ~all or -all.
Recommended DNS TXT Example:
v=spf1 include:_spf.google.com include:sendgrid.net ~all