Home » Email » Multiple SPF Records: Why It Breaks Email and How to Merge Them

Multiple SPF Records: Why It Breaks Email and How to Merge Them

Published 2026-10-03 | Email

Multiple SPF Records: Why It Breaks Email and How to Merge Them banner

The warning "multiple SPF records" means that when someone queries the TXT records of your domain, more than one of them begins with v=spf1. This is among the most common email configuration mistakes and it is easy to cause by accident, because every service that wants to send for you says "add this SPF record".

Why it matters

The SPF standard (RFC 7208) says a domain must have no more than one SPF record. If a receiving server finds two, it does not merge them or pick one. The check ends with a permanent error, permerror, which is treated as an SPF failure for every message from your domain. Your configuration looks fine in each individual record, yet SPF fails for all of it.

Spot it in seconds

dig TXT example.com +short

A broken setup looks like this:

"v=spf1 include:_spf.google.com ~all"
"v=spf1 include:servers.mcsv.net ?all"
"google-site-verification=abc123"

Two lines start with v=spf1. Only one is allowed. The third line is unrelated and is fine.

How it usually happens

  1. You set up Google Workspace and add its SPF record.
  2. A year later you add a newsletter tool. Its instructions say "add this TXT record", so you do.
  3. The DNS panel allows it, because DNS itself does not know that SPF records are special. They are just text.

Fix: merge into one record

Take the mechanisms (everything between v=spf1 and the final all) from each record and put them into a single record.

Before:

v=spf1 include:_spf.google.com ~all
v=spf1 include:servers.mcsv.net ?all

After:

v=spf1 include:_spf.google.com include:servers.mcsv.net ~all

Rules for merging:

  • Keep one v=spf1 at the start.
  • Keep one all at the end, and use the stricter intent you actually want. When in doubt use ~all.
  • Delete the old records afterwards. Do not leave them in place "just in case".
  • Do not duplicate the same include twice.

Watch the 10 lookup limit

Merging makes one record carry every sender, and SPF allows at most 10 DNS lookups to evaluate it. Each include, a, mx, ptr, exists and redirect counts, including the lookups made inside included records. ip4 and ip6 do not count. If you pass 10, SPF fails with permerror again, just for a different reason.

If you are near the limit, replace some include entries with ip4/ip6 ranges where the sender publishes stable ones, or drop services you no longer use.

Verify

After the DNS change has had time to update, run the dig command again. You should get exactly one v=spf1 line. Send a test message to a Gmail address and check that "Show original" reports SPF: PASS.

Common mistakes

  • Fixing it at one DNS provider while the nameservers actually point to another. Check with dig NS example.com +short.
  • Merging the records but forgetting to delete the old ones.
  • Pasting a vendor's full record as a second record when you only needed to copy its include: part into your existing one.

If SPF is missing entirely instead, start with SPF record missing.

Frequently Asked Questions

Why does having two SPF records break SPF instead of just using both?

The SPF specification says a domain must publish at most one SPF record. When a receiver finds more than one, it must treat the result as a permanent error (permerror) rather than choosing between them.

Is it a problem if the second record is on a subdomain?

No. The limit is one SPF record per domain name. mail.example.com and example.com can each have their own.

How many include entries can one SPF record have?

There is no limit on the number of entries as such, but the whole evaluation may trigger at most 10 DNS lookups. include, a, mx, ptr, exists and redirect each count toward that limit.

Found a mistake or still stuck? Contact us. See how we write and check these guides in our editorial policy, or read about DocumentGuy.

More in Email