SPF fails after adding one more include
SPF allows a maximum of 10 DNS lookups. One more include pushed the record over, and SPF returned permerror.
What happened
After adding one more include: for a new email service, SPF started failing for all mail.
Why
SPF evaluation is limited to 10 DNS lookups (each include, a, mx, ptr, exists and redirect counts, including nested ones). Going over returns permerror, which receivers treat as a failure.
Fix
- Remove includes for services you no longer use.
- Replace
aandmxmechanisms withip4:/ip6:ranges where they’re stable. - Move some senders to a subdomain with its own SPF record.
Check the lookup count with an SPF checker after every change.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.