MailAuth Tools

Multiple SPF records: how to merge them

A domain can only have one SPF record. Two is an automatic PermError, and it's one of the most common mistakes.

How it happens

A new service's setup page says "add this TXT record: v=spf1 include:theirservice.com ~all". Someone adds it as a new record instead of editing the existing one. Now there are two, and SPF fails for all your mail, including Microsoft 365.

How to merge

Take everything between v=spf1 and the all from both records and put it in one:

v=spf1 include:spf.protection.outlook.com ~all v=spf1 include:servers.mcsv.net ~all becomes v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net ~all

Then delete the extra record. Keep one all at the very end. Use ~all or -all, never both.

The SPF generator builds the merged record if you tick each service. Afterwards, run the SPF checker to confirm there's only one record and you're under 10 lookups.

Watch out for

Would you rather someone just fixed it? I'm an IT engineer in Sydney with 9 years of Microsoft 365 work. I'll set up SPF, DKIM and DMARC properly for your domain and send you a plain-English report. See the fixed-price service on Fiverr.
Checking lots of domains? There's a bulk checker on Apify that grades hundreds at once.

Free checks