Skip to main content
Enter TitanOS

Email authentication error

Multiple SPF records: why two records break SPF and how to merge them

A domain may publish only one SPF record. If a receiving server finds two TXT records that both begin with v=spf1, the standard tells it to stop and return a permerror, which counts as a failure. Neither record is used, so every sender you listed in either of them stops being authorised at once.

By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.

This usually happens by accident. Someone adds a new service by following its setup guide, which says to add a TXT record, and the old record is left in place beside the new one. This page shows how to find the duplicate, how to merge the two properly and how to avoid creating a second record again.

What the standard says

RFC 7208 section 4.5 describes how a receiver selects the record. It looks up the TXT records at your domain, discards any that do not begin with exactly v=spf1, and then counts what is left. With none, the result is none. With more than one, the result is permerror. The section also notes that a version of v=spf10 would not match and would be discarded.

Section 3.2 of the same RFC repeats the rule from the publisher's side: a domain name must not have multiple records that would cause an authorisation check to select more than one. The reasoning is simple. If two records could disagree, there would be no safe way for a receiver to decide which one you meant, so it refuses to guess.

A permerror means the domain's published records could not be correctly interpreted, and fixing it needs an action by the domain owner. A later retry by the receiver will not help.

How the duplicate usually appears

The most common route is a setup guide from a mailbox provider, a newsletter platform or a helpdesk that says to add a TXT record for SPF, with no mention of checking for an existing one. Another route is a DNS migration, where an old host's records are copied into a new one while a default record added by the new host remains. A third is a website builder or hosting panel that adds its own SPF record when you connect a domain.

A related trap is a record split into two quoted strings in one TXT entry. That is legal and counts as a single record. Section 3.3 of RFC 7208 says multiple character-strings in one record are joined together without spaces, so two quoted pieces inside one entry are fine. Two separate TXT entries are not.

How to find them

Open your DNS provider's control panel and list every TXT record at the root of the domain, the entry that has no name or shows the @ symbol. Look for every value starting with v=spf1. If you see more than one, you have the problem. The lookup tools from DNS providers and our own SPF builder show the same list.

Also check any records published with a different type or at a different name before you delete anything. An SPF record at a subdomain such as news.yourbusiness.com.au does not clash with the root one, because each name is evaluated separately. Only two records at the same name cause the error.

How to merge two records into one

Take the mechanisms from both records and combine them behind a single v=spf1 at the start and a single all at the end. Keep each include, ip4 and ip6 entry once. Drop duplicates, and decide on one ending, either ~all or -all, following our guide to softfail and hardfail.

Merging two SPF records into one
RecordValue
First recordv=spf1 include:_spf.google.com ~all
Second recordv=spf1 include:mail.newsletter-service.example ~all
Merged recordv=spf1 include:_spf.google.com include:mail.newsletter-service.example ~all

Check the lookup count after merging

Merging combines includes, so the total number of DNS lookups rises. The limit is 10 under RFC 7208 section 4.6.4, and going over it produces the same permerror from a different cause. Count the lookups after the merge, using our guide to the SPF 10 lookup limit. If the merged record is too long, move the heavy sender to a subdomain with its own record rather than creating a second record at the root.

Delete the old records only after you have saved their text. Then wait for the time to live of the old records to pass before you test, because receivers may keep an old answer until its cache time expires.

Fix multiple SPF records

  1. List every TXT record at the root of the domain in your DNS control panel.
  2. Copy each value starting with v=spf1 into a text file as a backup.
  3. Identify what service each record was added for.
  4. Write one combined record with a single v=spf1 and a single all ending.
  5. Remove duplicate includes and any service you no longer use.
  6. Count the DNS lookups in the merged record and keep them to 10 or fewer.
  7. Edit the first record to hold the merged value and delete the second.
  8. Wait for the old time to live to expire, then recheck with a lookup tool.
  9. Send yourself a test message from a Gmail account and look for spf=pass in the message headers.
  10. Add a note to your DNS records stating the rule: one SPF record only, edit it, never add another.

Questions people ask

Can I keep two SPF records if they say the same thing?

No. RFC 7208 treats more than one v=spf1 record at the same name as a permerror regardless of what they contain. Merge them into one record.

Does a permerror make my email bounce?

Not directly. A permerror is an SPF failure, and what the receiver does next depends on its own policy and on your DMARC record. Mail can still pass DMARC through an aligned DKIM signature, which is why DKIM is worth having.

Is an SPF record at a subdomain a second record?

No. Records at different names are evaluated separately, so news.yourbusiness.com.au can have its own v=spf1 record beside the one at the root.

Does the old SPF record type still count?

RFC 7208 removed the dedicated SPF record type from use, and SPF evaluates only TXT records. If your DNS panel offers an SPF type, do not use it for this.

Where to from here

The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.

Get the free auditSee Privacy CareBook a call

Sources

  1. RFC 7208, Sender Policy Framework, sections 3.2, 3.3, 4.5 and 4.6.4
  2. RFC 7489, DMARC
  3. ASD, Essential Eight overview
Book a free call