Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Multiple SPF records on your domain: how to find and fix it

DLV-050Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

SPF (Sender Policy Framework) is a DNS record that lists which servers may send email for your domain. It is a TXT record that starts with v=spf1. Receiving mail servers look it up to check that a message really came from an allowed sender.

The rules (RFC 7208) say a domain must publish one SPF record. When a receiver finds two or more TXT records starting with v=spf1, it does not pick one or combine them. It stops and returns a permerror (permanent error). The result is that SPF does not pass, even if each record is correct on its own.

Example: two SPF records on one domain (broken)text
example.com.  TXT  "v=spf1 include:_spf.google.com ~all"
example.com.  TXT  "v=spf1 include:sendgrid.net ~all"
Example: one merged SPF record (fixed)text
example.com.  TXT  "v=spf1 include:_spf.google.com include:sendgrid.net ~all"

Why it costs you leads or sales

When SPF returns a permerror, receivers lose one of their main signals that your mail is genuine. Some will send your messages to spam. Some will reject them. Others will accept them and only count it against you, depending on their policy and on whether DKIM and DMARC pass.

For a business site this hits the emails you rely on: lead notifications from your contact form, order confirmations, booking emails and replies to customers. A lead who submitted a form may never get the confirmation, and your team may never see the notification. The form itself looks fine, so nobody notices.

How duplicate SPF records lose a lead email
  1. Visitor submits formThe form saves and sends an email
  2. Receiver checks SPFFinds two v=spf1 records
  3. SPF permerrorSPF does not pass for any sender
  4. Email in spam or rejectedTeam or customer never sees it

The form works, but the notification fails authentication on the way to the inbox.

How to check if your site has it

List the TXT records for your domain and count how many begin with v=spf1. More than one means you have the problem. Check the root domain, and also any subdomain you send from (for example mail.example.com).

List SPF records from the command linebash
dig +short TXT example.com | grep -i "v=spf1"

# Windows
nslookup -type=TXT example.com

If you do not use a terminal, a public SPF checker or the DNS panel at your registrar or DNS host will show the same records. Look for two separate lines that each start with v=spf1. One long record with several include: parts is fine.

How to fix it

The fix is the same everywhere: work out every service that sends email as your domain, build one record that lists them all, publish it, then delete the old ones. DNS is edited where your domain's nameservers point, which may be your registrar, Cloudflare, your host or a platform like Wix or Squarespace.

Merge multiple SPF records into one
  1. Copy every existing SPF record

    Save the full text of each TXT record that starts with v=spf1, so you can roll back if needed.

  2. List every real sender

    Check which services send mail as your domain: your mailbox provider (Google Workspace, Microsoft 365), your form or website email service, a newsletter tool, a CRM, a helpdesk, an invoicing tool. Remove services you no longer use.

  3. Build one record

    Start with v=spf1, add each include: or ip4: mechanism once, and end with a single all qualifier (~all or -all). Do not repeat v=spf1 or end each part with its own all.

  4. Edit one record, delete the rest

    Replace the value of one existing record with the merged text, then delete the other SPF records. Do not leave both in place.

  5. Watch the lookup limit

    SPF allows at most 10 DNS lookups in total. Each include: counts, and so do nested ones. If merging pushes you over, remove unused services first.

  6. Wait for DNS to update

    Changes often show within minutes but can take up to the record's TTL (time to live) or longer. Then re-check.

Example merged record for Google Workspace plus a form email servicetext
v=spf1 include:_spf.google.com include:sendgrid.net ~all
Where to edit the DNS record
  1. Edit DNS at your DNS host

    WordPress does not manage DNS. Open the DNS panel at your registrar, host or Cloudflare, not wp-admin.

  2. Merge the records

    If an SMTP plugin (such as WP Mail SMTP) or a mail service told you to add SPF, take only its include: and add it to your existing record.

How to confirm it's fixed

Confirmation checklist
  • Running the dig or nslookup command returns exactly one record starting with v=spf1.
  • The record contains every service that sends mail as your domain.
  • The record ends with one all qualifier (~all or -all).
  • An SPF checker reports a pass with no permerror and no more than 10 lookups.
  • Send a test message from each sender and open the message headers: they should show spf=pass.
  • Submit your own contact form and confirm the notification arrives in the inbox, not spam.
DNS before and after

Two SPF records

  • Two TXT records start with v=spf1
  • Receivers return permerror
  • SPF fails for every sender
  • Form emails risk spam or rejection

One merged record

  • One TXT record starts with v=spf1
  • All senders listed together
  • SPF can pass
  • Form emails are more likely to reach the inbox

How to prevent it happening again

The cause is almost always a person adding a new TXT record when a tool asks for one. Make editing, not adding, the habit.

Habits that stop duplicates
  • Before adding any SPF value, search your DNS for an existing v=spf1 record and edit it.
  • Keep a short list of every service that sends as your domain and update it when you add or remove a tool.
  • Tell agencies and freelancers that SPF is one record per domain.
  • Remove includes for tools you cancelled to stay under the 10-lookup limit.
  • Re-check DNS after any email, CRM, or website migration.

How FunnelGuard handles this

FunnelGuard detects this issue today. Its email DNS check looks at your domain's records and flags when it finds more than one SPF record. You then get the alert with the finding so you can merge the records, rather than learning about it when form emails start landing in spam.

FunnelGuard also runs your real lead journeys on a schedule and checks that test leads reach the inbox and CRM, which shows whether a delivery problem is affecting actual forms. A failure is re-checked from a second region before one alert goes out. You can start on the Free plan (1 site, 2 journeys, daily checks, no card), and paid plans include a 3-day free trial.

Questions people ask

Can a domain have two SPF records?

No. A domain must publish only one SPF record, meaning one TXT record that starts with v=spf1. If there are two or more, receivers return a permerror and SPF fails. Merge all senders into a single record.

Why is my SPF failing with a permerror?

Common causes are multiple SPF records on the domain, more than 10 DNS lookups, or a syntax error. Check the TXT records first: if more than one starts with v=spf1, merge them into one.

How do I merge two SPF records?

Take the include: and ip4: parts from each record and put them into one record that starts with v=spf1 and ends with a single ~all or -all. Publish it by editing one existing record, then delete the other.

How do I check how many SPF records my domain has?

Run dig +short TXT yourdomain.com and count the lines beginning with v=spf1, or use nslookup -type=TXT on Windows. A DNS panel or an online SPF checker shows the same thing. You want exactly one.

Will multiple SPF records send my emails to spam?

They can. SPF returns a permerror, so receivers lose a key trust signal. Depending on the receiver and on your DKIM and DMARC setup, mail may go to spam or be rejected.

Do I need a separate SPF record for each email service?

No. Add each service as an include: inside your one SPF record. Separate records for each service is exactly what causes this error.

Do subdomains need their own SPF record?

If you send mail from a subdomain, yes, it needs its own single SPF record. The root domain's record does not apply to it.

Does FunnelGuard detect multiple SPF records?

Yes. Its email DNS check flags when a domain has more than one SPF record, and you receive an alert so you can merge them.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_dns: more than one SPF record.

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.