On this page
What this issue is
SPF (Sender Policy Framework) is a DNS TXT record listing which servers may send email for your domain. Receiving mail servers read it and check the sending server against it.
Two rules cause most breakage. First, evaluating an SPF record may trigger at most 10 DNS lookups. Mechanisms such as include:, a, mx, ptr, exists: and the redirect= modifier each count, and so do the lookups nested inside included records. Second, a domain must have exactly one record starting with v=spf1. If a receiver finds two, or needs an eleventh lookup, the result is a permerror (permanent error), and SPF is treated as failed.
Why it costs you leads or sales
Email is part of your funnel. Form notifications to your sales inbox, auto-replies to new leads, order confirmations and nurture emails all depend on passing authentication. With an SPF permerror, mailbox providers are more likely to junk or reject those messages, especially when DKIM or DMARC are also weak. Nobody sees an error on the website, so leads simply seem to go quiet.
- Visitor submits formForm works and shows a thank-you page
- Website sends emailNotification or auto-reply leaves your server
- Receiver checks SPFMore than 10 lookups or two records: permerror
- Message in spam or rejectedSales team never sees the notification
- Lead goes coldNo follow-up within the hour
The form works and the lead submits, but the email step fails silently.
How to check if your site has it
List your TXT records
Run the command below, or use a DNS lookup tool. Count how many results start with v=spf1. More than one is a problem.
Count the lookups
Paste your domain into an SPF checker such as the one from MxToolbox, dmarcian or Kitterman's SPF validator. It expands every include and reports the total lookup count and any permerror.
Check every sending service
List each tool that sends mail from your domain: mailbox provider, newsletter tool, CRM, helpdesk, website form plugin, transactional service. Note which ones are in the record.
Look at message headers
Open a test email in Gmail, choose Show original, and look for spf=permerror in the Authentication-Results header.
dig +short TXT example.com | grep -i "v=spf1"How to fix it
The fix has two parts: merge into one record, then reduce the lookups. Edit the record where your DNS is hosted (your registrar, Cloudflare, or your hosting provider), not in the website builder.
Copy every existing SPF record
Save the full text of each v=spf1 record before you change anything.
Merge into one record
Combine all include: entries into a single TXT record with one v=spf1 at the start and one all mechanism at the end. Delete the extra records.
Remove services you no longer use
Old newsletter tools and trials are the most common cause of excess lookups. Remove their includes.
Replace a, mx and ptr where possible
Use ip4: and ip6: entries for servers you control. These do not count as lookups. Avoid ptr entirely.
Move some senders to a subdomain
Send marketing mail from a subdomain such as mail.example.com with its own SPF record. Each domain gets its own 10-lookup budget. Set the From address and the vendor's domain setup to match.
Flatten only if you must
Flattening replaces includes with raw IP addresses. It works, but vendors change their IPs, so a static flattened record can go stale. Use a flattening service that updates automatically, or review it regularly.
Publish and re-test
Save the record, wait for the TTL, then re-run the SPF checker until it shows one record and 10 or fewer lookups.
Before (two TXT records, invalid):
v=spf1 include:_spf.google.com ~all
v=spf1 include:sendgrid.net ~all
After (one TXT record):
v=spf1 include:_spf.google.com include:sendgrid.net ~allEdit DNS at your DNS host
WordPress does not hold DNS. Edit the TXT record at your registrar, Cloudflare or host.
Check SMTP plugins
If you use an SMTP plugin such as WP Mail SMTP, make sure its provider's include is in the single SPF record.
Edit DNS where the domain is managed
If you bought the domain through Shopify, go to Settings, Domains, choose the domain, then DNS settings. Otherwise edit at your registrar.
Keep one record
Add any email app's include to the existing SPF record rather than creating a second one.
Not applicable
SPF is a DNS setting and cannot be changed in Tag Manager.
Edit DNS at your DNS host
Webflow does not send your domain email. Edit the TXT record where your DNS is hosted and include your form or mailbox provider.
Add the sending domain's include
If you set up a dedicated sending domain in GoHighLevel, follow its email settings for the records to add. Add the SPF include to your existing record at your DNS host instead of a new one.
Open DNS records
If DNS is managed by Wix, go to Domains, choose Manage DNS Records, and edit the TXT record that starts with v=spf1.
Open DNS settings
Go to Domains, choose your domain, then DNS Settings. Edit the single SPF TXT record. Add extra includes there rather than a new record.
Edit the zone file or DNS panel
Publish one TXT record on the root domain. Use ip4: entries for your own mail server to save lookups.
Broken
- Two TXT records starting with v=spf1
- 12 DNS lookups after expanding includes
- Receivers return permerror
Fixed
- One merged v=spf1 record
- 8 lookups after removing unused services
- SPF passes for each legitimate sender
How to confirm it's fixed
- dig shows exactly one record starting with v=spf1
- An SPF checker reports 10 or fewer lookups and no permerror
- A test email from each sending tool shows spf=pass in Show original
- Form notifications reach the inbox, not spam
- The record ends with one all mechanism, such as ~all
How to prevent it happening again
- Before adding a vendor, edit the existing SPF record rather than creating a new one
- Keep a list of every service that sends as your domain and who owns it
- Remove includes when you cancel a tool
- Use subdomains for bulk or marketing senders
- Re-run an SPF checker every quarter and after any new email tool
- Pair SPF with DKIM so mail still passes if SPF breaks
Example: illustrative lookup counts as tools are added. The limit is 10.
How FunnelGuard handles this
FunnelGuard does not check SPF records today. Checking for too many lookups or duplicate SPF records is a possible future check, not a current feature.
What FunnelGuard does cover nearby: a robot visitor runs your real lead forms on a schedule and checks that test leads reach the inbox and CRM. If a test lead never arrives, you get one alert with a screenshot and a likely cause after a second-region re-check. That can show the symptom of an email problem, but it will not tell you SPF is the reason.
Questions people ask
What is the SPF 10 DNS lookup limit?
SPF allows at most 10 DNS lookups when a receiver evaluates your record. Mechanisms like include, a, mx, exists and redirect count, including those nested inside included records. Going over returns a permerror and SPF fails.
Can I have two SPF records on one domain?
No. A domain must publish only one TXT record starting with v=spf1. If receivers find two, they return a permerror. Merge them by combining all include and ip4 entries into one record.
Why is my SPF record failing with permerror?
The usual causes are more than 10 DNS lookups, two SPF records on the same domain, or a syntax error. Run your domain through an SPF checker to see which one applies.
How do I reduce the number of SPF lookups?
Remove includes for tools you no longer use, replace a and mx with ip4 entries, and move marketing senders to a subdomain with its own SPF record. Flattening to IP addresses also works but needs regular updating.
Do ip4 and ip6 entries count as DNS lookups?
No. The ip4 and ip6 mechanisms do not require a DNS lookup, so they do not count toward the limit of 10. The all mechanism does not count either.
Will too many SPF lookups send my form emails to spam?
It can. An SPF permerror counts as a failure, so receivers may junk or reject the message, especially if DKIM and DMARC are also missing or misaligned. Results vary by mailbox provider.
Does FunnelGuard check my SPF record?
No. FunnelGuard does not check SPF yet. It can run your lead form on a schedule and tell you if the test lead never reaches the inbox or CRM, but it does not diagnose SPF.
Related issues
- OPS-040Missing SPF recordFix guide
- OPS-042DKIM missing or wrong for sending serviceFix guide
- OPS-043DMARC missing or p=none onlyFix guide
- OPS-044DMARC p=reject breaking form-notification mail from websiteFix guide
- OPS-048Email sending domain mismatch with From addressFix guide
- OPS-039Missing or wrong MX records (inbound mail fails)Fix guide