Multiple SPF records: why two break email and how to merge
Two SPF records on one domain break SPF completely. Here's how to find them, merge them into one record, and stay under the 10 lookup limit.
Your DNS checker says "multiple SPF records found." Or it says "permerror." Or you added a new email service last week, and now your form notifications and order receipts are landing in spam, or not landing at all. You didn't break anything on purpose, and this is fixable, usually in a few minutes.
Here's the short version: a domain can have only one SPF record. If you have two TXT records that both start with v=spf1, receiving servers treat SPF as broken, so it's as if you had none. The fix is to merge them into a single record that lists every service allowed to send for you, with one "all" at the very end. Jump to the merge section if you just want the steps.
Why two SPF records break SPF
An SPF record is a DNS record that tells the world which servers may send email from your domain. Think of it as a list of approved senders pinned to your front door. When your email arrives at Gmail, Gmail looks for that list.
If it finds one list, it checks the sender against it. If it finds two, it doesn't pick one or combine them. The standard that defines SPF, RFC 7208, says a domain must not have multiple records that would make a check select more than one, and a receiver that finds that gives up with a permanent error (the "permerror" you may have seen). No list means no pass.
That matters more than it used to. Since February 2024, Gmail and Yahoo require senders to authenticate their mail, and SPF is one of the ways to do it. It's no longer a nice extra.
How two records end up on one domain
Almost always, it's an honest mistake. Your host set up one record when you bought the domain. Later you added a newsletter tool, a helpdesk, or a transactional email service, and each one's setup page said "add this TXT record." So you did. Twice, or three times.
Nobody warned you because DNS doesn't. It will happily store as many TXT records as you like. It just can't tell you they contradict each other.
Find every SPF record on your domain
You need to see all of them before you can merge them.
- Log in to wherever your DNS is managed. That's your domain registrar, your host, or a DNS service like Cloudflare, and it isn't always the company you bought the domain from.
- Open the DNS records list and look at the TXT records for your main domain (often shown as @ or your bare domain name).
- Note every record whose value starts with v=spf1. Copy each one into a text file.
- Check any subdomains you send from, too. Each name gets its own SPF record.
If you'd rather not scroll, any free SPF lookup tool will list what the world sees for your domain. It's worth checking this way at the end as well.
Merge them into one record
Every SPF record has the same three parts: v=spf1 at the start, a list of mechanisms in the middle (include: entries and IP addresses), and an "all" at the end that says what to do with anyone not on the list.
Say you have these two records. The domains are placeholders:
- v=spf1 include:_spf.host-one.example ~all
- v=spf1 include:spf.sender-two.example -all
Merged, they become one record:
- v=spf1 include:_spf.host-one.example include:spf.sender-two.example ~all
What changed: one v=spf1, every include: kept, and a single "all" at the end. That's all there is to it.
A few rules for the merge:
- Keep the v=spf1 only once, at the start.
- Carry over every include: and every ip4: or ip6: entry you still need.
- Put one "all" last. Two of them means the second never gets read.
- Delete the old records once the new one is saved. Don't leave them "just in case," because the leftovers are the whole problem.
On which "all" to choose: ~all (soft fail) is the safer one for most sites, especially while you're not yet sure you've listed every sender. -all (hard fail) is stricter, and it will block a legitimate sender you forgot. If you're unsure, use ~all.
A word on includes for specific services: every sending service publishes its own include. Use the exact one from that service's setup instructions, and don't guess at it. For SendWP, the include is include:spf.sendwp.com: add it to the record you already have, as our guide to authenticating your domain shows.
After saving, wait a little for DNS to update (it's often quick, but it can take longer), then run an SPF lookup again. You want to see exactly one record and a pass.
The 10 lookup limit
Once you merge, there's a second thing that trips people up. SPF lets a receiving server do at most 10 DNS lookups while checking your record, and RFC 7208 sets that limit. Each include: counts as one, and so does anything those includes pull in. Go over 10 and you get the same permerror you were trying to escape.
A few things count toward the limit: include, a, mx, ptr, exists and redirect. Plain ip4: and ip6: entries don't, and neither does "all."
If your merged record is over, try these in order:
- Remove services you no longer use. Old includes from a newsletter tool you cancelled two years ago are the most common culprit, and this is the one to do first.
- Swap an include for the raw IP addresses it covers, but only if the service publishes stable ones. If they change the addresses and you don't, mail from that service starts failing, so this takes upkeep.
- Send different kinds of email from different subdomains, each with its own short SPF record. Marketing from one name, store email from another.
Don't bother with fancy tricks until you've done step one. For most small sites, that alone brings you back under the limit.
What this looks like on a WordPress site
WordPress sends a lot of email you don't think about: contact form notifications, WooCommerce receipts, membership and course emails, and password resets. If SPF is broken, those are what quietly go missing. If you're already chasing one of those symptoms, our post on password reset emails not arriving covers that side of it.
SPF is also only one of the things that proves your email is yours. DKIM is another: a DNS record that carries a signature, so the receiver can tell nobody tampered with the message. SendWP's DKIM record is always a CNAME, never a TXT, so if you're pasting records in, watch the record type your DNS screen is set to. Our SPF, DKIM and DMARC explainer covers how the three fit together.
Where SendWP helps
We built SendWP so that you don't have to become an email admin. Every email WordPress sends goes out through SendWP's sending infrastructure instead of your web host's PHP mail, and we help you authenticate your domain so receivers recognize your mail. Our documentation walks through authenticating your domain in plain words, and if you hit a DNS screen that doesn't match, ask us.

If you already have a sending service you're happy with, you don't need to switch to fix this. Merge your records and you're done. If you'd like one place that handles the sending and the authentication help together, here is what SendWP does, and how it compares with WordPress's default mail.
Your DNS now has one SPF record, it's under the lookup limit, and your emails have a proper ID to show at the door. Nice work.
If you'd like help from here, get started for $1 your first month and we'll help you get your domain authenticated.