Email Auth Check › Guides

Multiple SPF records found: how to merge them

A domain must have only one TXT record starting with v=spf1. With two, SPF returns permerror and mail can fail authentication.

How to merge

Suppose you have:

v=spf1 include:_spf.google.com ~all
v=spf1 include:mailgun.org ~all

Combine all mechanisms into one record, with a single all at the end:

v=spf1 include:_spf.google.com include:mailgun.org ~all

Then delete the second record. Check the merged record still stays within 10 DNS lookups.

How it happens

Each new email service’s setup guide says “add this SPF record”, and it gets added as a new record instead of being merged into the existing one.

See exactly what your domain’s SPF, DKIM and DMARC look like, free.

Check my domain

More guides