On this page
What this issue is
SPF (Sender Policy Framework) is a DNS TXT record that lists which servers may send email for your domain. Receiving servers read it and check whether the sending server is on the list.
The SPF standard (RFC 7208) caps the work a receiver must do at 10 DNS lookups. Each include:, a, mx, ptr, exists: and redirect= term counts, and so does every lookup inside the included records. ip4:, ip6: and all do not count. Go over 10 and the result is permerror, a permanent error, rather than pass.
v=spf1 include:_spf.google.com include:sendgrid.net include:servers.mcsv.net include:mail.zendesk.com include:spf.protection.outlook.com include:_spf.salesforce.com ~all- Visitor submits formYour site or CRM sends a notification
- Receiver checks SPFNeeds 11+ DNS lookups
- SPF returns permerrorCounts as not passed
- Email filtered or rejectedSpam folder or bounce, depending on DMARC policy
The email is sent normally, but the receiver cannot evaluate SPF and the message loses a trust signal.
Why it costs you leads or sales
A permerror means SPF cannot vouch for your mail. If DKIM also fails or is not aligned, DMARC fails too. With a DMARC policy of quarantine or reject, the message goes to spam or is refused. With a weaker policy, the missing SPF pass still lowers trust and raises the odds of the spam folder.
Example: illustrative figures showing how a lead inbox might be affected before and after the fix. Your results will vary.
How to check if your site has it
Read your current record
Run
dig TXT yourdomain.com +shortor use any DNS lookup tool and copy the line starting with v=spf1.List every counting term
Count each include:, a, mx, ptr, exists: and redirect=. Ignore ip4:, ip6: and all.
Open each include
Look up the TXT record of every included domain, for example
dig TXT _spf.google.com +short, and count the counting terms inside it. Repeat for nested includes.Use an SPF checker
Any SPF validator that reports the total lookup count will do this recursion for you. A result above 10, or the word permerror, confirms the issue.
Check message headers
In a delivered test email, open the original message and look at Authentication-Results. 'spf=permerror' confirms it.
dig TXT example.com +short | grep spf1
dig TXT _spf.google.com +shortHow to fix it
Work from least risky to most risky. Stop as soon as you are at 10 lookups or fewer, and leave yourself a margin of one or two.
Remove senders you no longer use
Old newsletter tools, past CRMs and trial services often leave an include behind. Confirm nothing sends from them (check DMARC reports or the tool's own settings) before deleting.
Drop redundant mechanisms
Remove
mxandaif they are not needed, and never useptr. Remove duplicate includes that another include already covers.Move some senders to a subdomain
Send marketing or transactional mail from a subdomain such as mail.example.com with its own SPF record. Each subdomain gets its own 10-lookup budget. Set the tool's From address and return path to that subdomain.
Replace includes with IP ranges (flatten)
Swap an include for the ip4:/ip6: ranges it resolves to. This costs zero lookups but the provider can change its IPs, so flattened records go stale. Only do it for providers with stable ranges, or use a managed flattening service that updates the record for you.
Publish one record and re-test
Keep a single v=spf1 TXT record (two records is a separate error). Save, wait for the TTL, then recount.
v=spf1 include:_spf.google.com include:sendgrid.net ip4:203.0.113.10 ~allEdit DNS at your DNS host
SPF lives in DNS, not in WordPress. Edit it at your registrar or DNS provider (Cloudflare, GoDaddy, Namecheap, your host).
Check your SMTP plugin
If a plugin such as WP Mail SMTP sends through a provider, make sure that provider's include is the only one you need for site mail.
Edit DNS where the domain is registered
In Shopify admin go to Settings > Domains to see where DNS is managed. If it is at a third party, edit the TXT record there.
Keep only senders you use
Shopify sends order emails from its own systems. Keep includes for your own mailbox and marketing tools only, and follow Shopify's sender authentication guidance if you use a custom sender domain.
Not applicable
GTM does not control email DNS. Edit the TXT record at your DNS provider.
Edit DNS at your DNS provider
Webflow form notifications do not need your SPF record, but your mailbox and marketing tools do. Edit the TXT record where your domain's DNS is hosted.
Keep only the includes you need
If you send through a connected sending domain, follow the DNS records shown in the email settings for that domain, and merge them into one SPF record.
Use a subdomain for the CRM
A dedicated sending subdomain keeps its own lookup budget and leaves your main domain record short.
Open DNS records
In Wix, go to Domains, choose your domain, then Manage DNS Records, and edit the TXT record that starts with v=spf1. If the domain is registered elsewhere, edit it there.
Open DNS settings
Go to Domains, choose the domain, then DNS Settings, and edit the TXT record that starts with v=spf1. Keep only one SPF record.
Edit your zone file or DNS panel
Replace the TXT value with the shortened record. If your server sends mail directly, use ip4:/ip6: for it instead of mx or a.
How to confirm it's fixed
- An SPF checker shows 10 lookups or fewer, ideally with a margin
- Only one v=spf1 record exists on the domain
- A test email to Gmail or Outlook shows spf=pass in Authentication-Results
- A test form submission lands in the inbox and in your CRM
- Every tool that sends for your domain still passes SPF or DKIM aligned
How to prevent it happening again
- Re-count lookups every time you add or remove an email tool
- Give each new sending tool its own subdomain where possible
- Rely on DKIM for alignment so one SPF problem does not break DMARC
- Keep a list of who sends mail for your domain and why
- Review flattened records regularly, as provider IPs change
- Remove includes as soon as you cancel a service
How FunnelGuard handles this
FunnelGuard detects this issue today. Its email DNS check reads your domain's SPF record and counts the DNS lookups, following the includes, so you can see when a record is over the limit of 10.
FunnelGuard also runs your real lead journeys on a schedule and checks whether test leads reach your inbox and CRM, so a delivery problem shows up from both sides. A failed check is re-checked from a second region before one alert goes out. The Free plan covers 1 site and 2 journeys with daily checks and no card, and every paid plan has a 3-day free trial.
Questions people ask
What does SPF permerror mean?
SPF permerror means the receiver could not finish evaluating your SPF record because of a permanent error. Common causes are more than 10 DNS lookups, invalid syntax or multiple SPF records. Receivers treat it as SPF not passing.
What is the SPF 10 DNS lookup limit?
The SPF standard allows a maximum of 10 DNS-querying terms per check: include, a, mx, ptr, exists and redirect. Lookups inside included records count toward the same total. ip4, ip6 and all do not count.
How do I fix too many DNS lookups in SPF?
Remove includes for tools you no longer use, drop unneeded mx and a terms, and move some senders to a subdomain with its own record. If that is not enough, replace stable includes with ip4 and ip6 ranges, remembering to keep them updated.
Why are my form emails going to spam after I added a new email tool?
Adding a tool usually adds another include to your SPF record. If that pushes the total above 10 lookups, SPF returns permerror and your mail loses a trust signal. Count your lookups and trim the record.
What is SPF flattening and is it safe?
Flattening replaces include terms with the IP addresses they resolve to, so no lookups are used. It is safe only if the IPs stay current. Providers change their ranges, so a static flattened record can silently start failing.
Do nested includes count toward the SPF limit?
Yes. Every include you add counts once, and each DNS-querying term inside that include counts as well. A record with six includes can easily exceed 10 once nested terms are added.
Does an SPF permerror break DMARC?
DMARC passes if either SPF or DKIM passes and aligns with the From domain. With SPF in permerror, you depend on DKIM alone. If DKIM is missing or misaligned, DMARC fails and your policy applies.
Can I have two SPF records to get around the limit?
No. A domain must publish only one SPF record, and two records cause a permerror of their own. Merge everything into one record or use subdomains.
Related issues
- DLV-048Domain has no SPF recordFix guide
- DLV-050Multiple SPF records on the domainFix guide
- DLV-051SPF missing the ESP's include (SendGrid, Mailgun, Postmark)Fix guide
- DLV-052DKIM selector record missing or wrong keyFix guide
- DLV-053DMARC record missing (Gmail/Yahoo bulk sender requirement)Fix guide
- DLV-054DMARC alignment fails because From domain differs from the sending domainFix guide