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.com. TXT "v=spf1 include:_spf.google.com ~all"
example.com. TXT "v=spf1 include:sendgrid.net ~all"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.
- Visitor submits formThe form saves and sends an email
- Receiver checks SPFFinds two v=spf1 records
- SPF permerrorSPF does not pass for any sender
- 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).
dig +short TXT example.com | grep -i "v=spf1"
# Windows
nslookup -type=TXT example.comIf 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.
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.
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.
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.
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.
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.
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.
v=spf1 include:_spf.google.com include:sendgrid.net ~allEdit DNS at your DNS host
WordPress does not manage DNS. Open the DNS panel at your registrar, host or Cloudflare, not wp-admin.
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.
Open the domain's DNS settings
If the domain is bought through Shopify, go to Settings > Domains, choose the domain, then DNS settings. Otherwise edit DNS at your registrar.
Merge TXT records
Keep one v=spf1 record. Add the includes your email provider and any other sender need.
Not applicable
Google Tag Manager has no effect on SPF. This is a DNS setting only.
Edit DNS where the domain is registered
Webflow hosting does not control email DNS unless your nameservers point to a provider that does. Open the DNS panel of your registrar or DNS host.
Merge TXT records
Combine all senders into one v=spf1 record and delete the extras.
Check the sending domain setup
In GoHighLevel, the dedicated sending domain setup asks you to add DNS records at your DNS host. Add only the include it gives you to your existing SPF record.
Delete the separate SPF TXT entry
If you added a second v=spf1 record for it, merge it into the first and remove the duplicate.
Open DNS records
If the domain is managed by Wix, go to Domains, choose the domain, then Manage DNS Records and find the TXT section.
Merge and delete
Edit one SPF TXT record to hold all senders and delete the others.
Open DNS settings
For a Squarespace-managed domain, open the Domains panel, choose the domain, then DNS settings and find the TXT records.
Merge and delete
Keep one v=spf1 record containing all senders. Remove the duplicates.
Edit the zone file or DNS panel
In your DNS provider or zone file, keep exactly one TXT record at the domain that begins with v=spf1.
Check subdomains
If a subdomain sends mail, it needs its own single SPF record. Root-domain records do not cover it.
How to confirm it's fixed
- 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.
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.
- 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.
Related issues
- DLV-048Domain has no SPF recordFix guide
- DLV-049SPF exceeds 10 DNS lookups (permerror)Fix 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