Skip to content

How to Fix SPF PermError (RFC 7208 10-Lookup Limit)

RFC 7208 strictly caps SPF evaluation at 10 recursive DNS lookups (including nested include:, a, mx, ptr, exists, and redirect mechanisms). In our 2026 audit of 268 live B2B and e-commerce domains, 26.1% sat at 8 or more recursive lookups and 4.5% were actively failing with SPF PermError. Fixing it properly requires pruning legacy SaaS tools and moving bulk ESPs onto subdomains.

Key facts
Error code
SPF PermError
Provider
All Mailbox Providers (RFC 7208)
Typical fix time
2 to 5 business days
Typical scope
$1,500 Audit / $3,000 Repair

Most common root causes

  • – Stacking Google Workspace (3-4 nested lookups) or Microsoft 365 (2-3) alongside HubSpot, Zendesk, Salesforce, SendGrid, and Mailchimp on the apex domain.
  • – Publishing two separate v=spf1 TXT records instead of combining into one (instant PermError regardless of lookup count).
  • – Leaving retired marketing or support tools in DNS years after canceling the subscription.
  • – Using deprecated ptr mechanisms or unnecessary mx/a lookups on the root record.

How to diagnose SPF PermError

How to diagnose SPF PermError
Step Check / Command Expected Healthy Result
Expand recursive SPF tree Run Live DNS Checker or dr-check CLI to count nested lookups Total recursive lookups strictly <= 10 (target <= 7 for safety)
Verify single TXT record dig +short TXT yourdomain.com | grep spf1 Exactly 1 v=spf1 line returned
Audit DMARC RUA reports Check which vendors actually send using your apex Return-Path Remove every vendor that uses its own aligned subdomain Return-Path

Step-by-step fix checklist

  1. Remove every ESP include that does not actually use your root domain as the SMTP envelope MAIL FROM / Return-Path (for example, Klaviyo, Postmark, and HubSpot subdomain senders do not need to sit in apex SPF).
  2. Delete retired SaaS tools verified inactive in DMARC RUA XML logs.
  3. Move bulk marketing and transactional streams onto dedicated aligned subdomains (updates. and mail.) so each subdomain gets its own fresh 10-lookup budget.
  4. Avoid static manual IP flattening unless automated, because cloud ESP IP ranges rotate without warning.

SPF PermError FAQ

Straight answers on pricing, timelines, and fit.

My SPF record only has 5 include: entries. How can it be over 10 DNS lookups?

The RFC 7208 limit counts recursive lookups, not just the top line. A single vendor include like HubSpot, Zendesk, or Salesforce frequently contains 2 to 4 nested includes inside its own DNS record, silently pushing a 5-include record to 12+ lookups.

Should I use a static SPF flattening tool to paste raw IPv4 blocks into DNS?

Static manual flattening is risky because Google, Microsoft, HubSpot, and AWS rotate IP ranges, breaking your SPF silently months later. Moving ESPs onto dedicated subdomains and pruning unused root includes is cleaner and permanent.

Does moving HubSpot or Postmark to a subdomain give them a separate 10-lookup SPF limit?

Yes. Each subdomain has its own independent SPF evaluation and 10-lookup budget, while still passing relaxed DMARC alignment with your parent organizational domain.

Start with a 24-hour Deliverability Audit.

We inspect your recursive SPF tree, raw sent headers, ESP settings, and Postmaster data and deliver exact copy-paste DNS/ESP fixes within 24 hours of read-only access (free if we miss the clock). Hire us for implementation within 30 days and the full $1,500 credits toward the project.

Prefer email? Send your domain and what broke directly to [email protected] .