Multiple SPF records
A domain can have only one SPF record. With two TXT records that start with v=spf1, receivers return PermError and SPF fails for every message. Merge them into one record with every include and a single all at the end, then delete the other.
Updated 8 October 2026 by Mohamed Arkid
A domain may publish only one SPF record. When a receiver finds two TXT records that
start with v=spf1, RFC 7208 says the result is PermError, and most receivers
then treat every message as failing SPF. It usually happens when a new service's setup
guide says "add this SPF record" and the old one stays in place.
How to merge them
- Keep one
v=spf1at the start. - Put every
include,ip4,ip6,aandmxterm from both records after it, once each. - End with a single
all. The checker suggests the strictest of the ones you had. - Delete the second record.
v=spf1 include:_spf.google.com ~all v=spf1 include:sendgrid.net -all becomes v=spf1 include:_spf.google.com include:sendgrid.net -all
The lookups of both records now add up. Check the merged record stays under the limit of 10 DNS lookups.
Questions
Can a domain have two SPF records?
No. RFC 7208 allows one SPF record per domain name. A subdomain is a separate name, so mail.example.com can have its own.
Can one SPF record be split into several strings?
Yes. A long record can be several quoted strings inside the same TXT record. Receivers join them without adding spaces, so it is still one record.