An SPF record with five include: mechanisms looks fine in the zone file and answers DNS queries cleanly. It still fails the spec the moment those includes chain past ten total DNS lookups. Receivers that enforce the limit — Gmail, Microsoft 365, Yahoo, Apple iCloud — return a PermError, which counts as an SPF fail for DMARC alignment. The domain then lands on the wrong side of every reputation filter the recipient applies, and nobody at the cPanel host sees a single Exim log line that explains it.
What’s happening
SPF resolution is recursive. Each include:, a:, mx, exists:, and redirect= mechanism counts toward the lookup budget, and so does every mechanism inside the included record. include:_spf.google.com alone resolves to four lookups on a typical day. Add Mailchimp, SendGrid, your cPanel hostname, and a forgotten ESP from two years ago and you are at 11, 12, 14 lookups before the receiver gives up. The record is syntactically valid; it is operationally broken.
How to verify
From any host with dig:
dig +short TXT example.com | grep spf
Then feed the record into an SPF lookup-counter. spf-record.com and dmarcian.com/spf-survey both walk every include and report the count. Anything above 10 is a fail. From the cPanel host itself, cross-check what the active outbound profile claims:
whmapi1 get_domain_info domain=example.com
The fix
- Inventory real senders. Pull the last 30 days of DMARC aggregate reports. Any include that does not show up in
ruadata is dead weight — remove it. - Flatten the long includes. For ESPs that publish their own SPF (Mailchimp, SendGrid, Postmark), resolve their includes to
ip4:andip6:blocks and inline those instead. Re-flatten on a schedule — IP lists change. - Use a managed flattening service if multiple ESPs are in play. Tools like Valimail and easyDMARC publish a single dynamic include they keep flat for you. One include, one lookup.
- Keep
~alluntil you confirm zero PermErrors in DMARC reports for two weeks, then move to-all.
When the same flattening logic has to be kept current across a fleet of cPanel accounts, Stack Harbor folds it into WHM server management so the count never drifts past 10.