Common failure · updated 2026-09-03
Multiple SPF records: why it fails and how to merge
SPF requires exactly one record starting with v=spf1 per domain. Two or more cause PermError, and receivers then ignore SPF entirely. The fix is to merge them into one.
Why two records is an error
RFC 7208 states that a domain must not publish more than one SPF record. When a receiver finds two TXT records that begin with v=spf1, it cannot know which applies, so it returns PermError. It does not pick one, and it does not combine them.
This usually happens when a second provider's setup guide says to add an SPF record and the person adds a new TXT record instead of editing the existing one.
How to merge
Take the mechanisms from each record and put them into one record with a single v=spf1 at the start and a single all mechanism at the end. Keep the order roughly by importance, since evaluation stops at the first match.
After merging, check the lookup count. Two records with four includes each become one record with eight lookups, which is close to the limit.
- Copy both records to a text editor.
- Remove v=spf1 and the all mechanism from the second record.
- Append its remaining mechanisms to the first record before the all mechanism.
- Delete the second TXT record in DNS and update the first with the merged value.
- Re-run the audit and confirm one record and 10 or fewer lookups.
| Type | Name | Value |
|---|---|---|
| TXT | example.com | v=spf1 include:_spf.google.com include:sendgrid.net ~allExample merge of a mailbox provider and a transactional sender into one record. |
Records that look like SPF but are not
A TXT record containing spf2.0 is Sender ID, an older Microsoft standard, and does not count as a second SPF record. Domain verification TXT records do not conflict either. Only records beginning with v=spf1 are counted.
