SPF Include Limit Calculator

Audit your SPF record DNS lookup count and identify which includes can be flattened.

SPF RecordEmail AuthenticationDNS LookupsSPF FlatteningDMARC

SPF Include Limit Calculator

The SPF specification limits records to 10 DNS lookups. Exceeding this causes PermError — effectively breaking SPF for your domain.

Each include typically uses 1 lookup

The SPF 10-Lookup Rule

RFC 7208 limits SPF records to 10 DNS-resolving mechanisms. Exceeding this returns PermError, which many receivers treat as SPF failure — breaking email authentication for your entire domain.

Each include:, a:, mx:, and redirect= costs one lookup. Nested includes in third-party records count against your limit too.

  • SPF flattening: Tools like dmarcian or AutoSPF expand includes to raw IP ranges, eliminating lookup costs
  • DKIM as backup: DKIM alignment in DMARC means SPF failure alone may not block delivery if DKIM passes