Understand what your scan results mean / SPF

How to fix multiple SPF records

A domain may publish only one SPF record. With two or more, SPF cannot pass for any message, including your own. Merge them into one record and delete the rest.

Last reviewed: 2026-11-21

First, check your own domain

Opens the free scan with your domain filled in. Nothing runs until you press the scan button.

Short answer

Receivers look for exactly one TXT record at your domain that starts with v=spf1. If they find two or more, they stop and return a permanent error (permerror). SPF then cannot pass for any message, including legitimate mail from your own provider, and DMARC can only pass through DKIM.

The fix: merge every include, ip4 and ip6 entry into one record and delete the extra records.

Why it happens

Almost always after adding a second sending service or changing provider. The new provider's setup page says "add this TXT record", so a second v=spf1 record is created next to the old one instead of the old one being edited.

Before: two records

Each record is valid on its own; together they break SPF.

example.com.  TXT  "v=spf1 include:spf.protection.outlook.com -all"
example.com.  TXT  "v=spf1 include:_spf.google.com ~all"

After: one merged record

One v=spf1, all mechanisms, one ending. If one of the old records ended in ~all, keep ~all until you have confirmed every service that sends mail as your domain, then move to -all.

If an old record uses redirect=, do not copy it into the merged record: redirect= is ignored when the record also ends in all. Use the include: value from that provider's setup page instead.

example.com.  TXT  "v=spf1 include:spf.protection.outlook.com include:_spf.google.com ~all"

Step by step

  1. List every TXT record at the domain itself that starts with v=spf1.
  2. Collect every include:, ip4:, ip6:, a, mx and exists entry from all of them; drop exact duplicates.
  3. Write one record: v=spf1, then the entries, then a single ending (~all or -all).
  4. At your DNS host, edit one of the existing SPF records to the merged value and delete the others.
  5. Leave other TXT records alone (for example google-site-verification or MS=ms…); they are not SPF.
  6. Wait for the record's TTL to pass, then check again.

Common include values

Use the value your provider's own setup page shows; these are the usual defaults.

Microsoft 365      include:spf.protection.outlook.com
Google Workspace   include:_spf.google.com
Amazon SES         include:amazonses.com
SendGrid           include:sendgrid.net
Mailchimp          include:servers.mcsv.net
Yandex 360         include:_spf.yandex.net

Stay under 10 DNS lookups

Every include, a, mx, ptr, exists and redirect costs a DNS lookup, and includes inside includes count too. Above 10, SPF fails with permerror again. After merging, check the real count; Korantix's Email Security check follows every include chain and shows it.

How to verify the fix

The first command should print 1. On Windows, use the second and count the lines that start with v=spf1.

dig +short TXT example.com | grep -c "v=spf1"
nslookup -type=TXT example.com

Can I keep two records if both are correct?

No. The rule is about the number of records, not their content: two correct records still give permerror.

How long until it takes effect?

As long as the old record's TTL, usually between a few minutes and a few hours. Some receivers cache longer, so recheck the next day before changing anything else.

Does this change DKIM or DMARC?

No records other than SPF change. Once SPF passes again, DMARC can pass through SPF as well as DKIM, as long as the envelope sender's domain matches your From domain.

Monitor your domain automatically

Hear about it the day something breaks

  • Every night Korantix checks your domain again: SPF, DMARC, MX, DNS and the TLS certificate.
  • When something changes or breaks, you get an email alert.
  • Your mail servers' blocklist status is checked every night, newly registered look-alike domains every week.

No credentials. No tenant access. Public DNS/TLS data only.