Troubleshooting guideReviewed 2026-08-07By HostWithShery technical editorial

SPF too many DNS lookups

SPF evaluation permits a limited number of DNS-query-causing mechanisms. Exceeding the allowance can produce a permanent error.

Start with evidence from your own domain before changing DNS, SSL or mail settings.
Check your own configuration

Email Health Check

This page is preconfigured with the Email Health Check that best matches this problem.

No accountPublic evidence only
Live public check

Checks MX routing plus SPF, DKIM discovery, DMARC, BIMI, MTA-STS and TLS-RPT public signals.

No account · Public configuration only
On this page

What this symptom usually tells you

SPF limits the number of DNS-query-causing terms evaluated during a check. Nested include and redirect chains can consume the allowance even when the visible top-level record looks short. Crossing the limit can produce permerror and undermine the authentication outcome receivers use.

Evidence that narrows the cause

Use the live diagnostic to test the exact hostname involved. For this problem, the highest-value evidence is below. Treat each result as one piece of the business-email DNS and mail authentication diagnosis rather than as a standalone health score.

  • Count include/a/mx/exists/redirect pathsRead the public MX priorities and targets, then verify that each target itself resolves. A visible MX record is not enough if its mail hostname is broken.
  • Remove unnecessary includesVerify remove unnecessary includes from the public Internet and compare it with the value the responsible provider says should be live.
  • Use provider-supported flattening only with careVerify use provider-supported flattening only with care from the public Internet and compare it with the value the responsible provider says should be live.

Record the current state before editing

Before changing business-email DNS and mail authentication settings, save the exact public values for count include/a/mx/exists/redirect paths, remove unnecessary includes, use provider-supported flattening only with care and note which hostname or mail path is failing. This creates a rollback point and prevents a later resolver cache, provider dashboard or unrelated working record from being mistaken for the original cause. Change one evidence-backed setting at a time, then compare the same signals again.

Safest repair path

Expand the include/redirect dependency tree and remove services that no longer send. Prefer each provider’s supported SPF design and avoid unnecessary a or mx mechanisms that duplicate authorization already covered elsewhere. Flattening can create maintenance risk, so use it only when the provider has a reliable supported approach.

How to confirm this specific repair

Recalculate the evaluation path after the change and make sure the policy stays within the RFC limit for the real branches a receiver may follow. Test messages from every legitimate platform and inspect SPF plus DMARC alignment results.

A common wrong turn

Counting only the number of include words in the top-level TXT record is insufficient. An include can contain further includes, a, mx, exists or redirect terms that add DNS work during evaluation.

When to escalate with evidence

If these public checks match the provider's current documented configuration but the service still fails, give support the exact hostname, the observed business-email DNS and mail authentication result, a timestamp, and the failing network or message path. That separates a provider-side incident from a DNS change that has not actually become authoritative.

Technical references

These primary standards and provider documents are used to verify the behavior described on this page. Provider dashboards can change, so use the current official value for tenant-specific DNS records rather than copying an example from another account.