Skip to content
FunnelGuard

Fix guide by FunnelsGuard

SPF exceeds 10 DNS lookups (permerror): how to find and fix it

DLV-049Medium impactDetectedBy FunnelGuardPublished Updated
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.

Example: a record that looks short but is over the limittext
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
What happens to a form notification
  1. Visitor submits formYour site or CRM sends a notification
  2. Receiver checks SPFNeeds 11+ DNS lookups
  3. SPF returns permerrorCounts as not passed
  4. 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.

Notification emails reaching the inboxExample numbers
Notification emails reaching the inbox (example)SPF permerror: 70 %; SPF passing: 98 %038757098SPF permerrorSPF passing%

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

Count your SPF lookups
  1. Read your current record

    Run dig TXT yourdomain.com +short or use any DNS lookup tool and copy the line starting with v=spf1.

  2. List every counting term

    Count each include:, a, mx, ptr, exists: and redirect=. Ignore ip4:, ip6: and all.

  3. 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.

  4. 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.

  5. Check message headers

    In a delivered test email, open the original message and look at Authentication-Results. 'spf=permerror' confirms it.

Look up your record and one includebash
dig TXT example.com +short | grep spf1
dig TXT _spf.google.com +short

How 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.

Get below 10 lookups
  1. 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.

  2. Drop redundant mechanisms

    Remove mx and a if they are not needed, and never use ptr. Remove duplicate includes that another include already covers.

  3. 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.

  4. 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.

  5. 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.

Example: trimmed recordtext
v=spf1 include:_spf.google.com include:sendgrid.net ip4:203.0.113.10 ~all
Where to edit the SPF record
  1. Edit 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).

  2. 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.

How to confirm it's fixed

Confirmation checks
  • 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

Habits that keep SPF healthy
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_dns: SPF lookups counted through includes.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.