MailHealthKit

SPF troubleshooting

Multiple SPF records

A domain must publish exactly one SPF record. If it publishes two or more TXT records starting with v=spf1, receivers return a permanent error (permerror) instead of an SPF result. Check a domain below.

No signup required. We look up public DNS records only.

  • SPF records
  • Duplicate records
  • Included records

About multiple SPF records

Why more than one SPF record is invalid

SPF (RFC 7208) requires receivers to collect every TXT record at the domain that starts with v=spf1. If more than one remains, evaluation stops with a permanent error. Receivers don't pick one of the records or merge them.

The result is the same as having a broken record: mail from the domain gets no usable SPF result, and for DMARC it can't pass through SPF. Which of the records is correct doesn't matter until only one is published.

How a domain ends up with several SPF records

  • A new email service's setup instructions say to add a TXT record, and it's added as a new record instead of being merged into the existing one.
  • A domain moves to a different email provider and the old provider's record is left in place.
  • A DNS host or setup wizard adds its own default SPF record next to one you created.
  • A long record is split into two records, each starting with v=spf1, when it should be one record made of several quoted strings.

Combining them into one record

Keep a single record that starts with v=spf1, move the mechanisms from the other records into it, remove duplicates, and end it with one all mechanism. Then delete the other records. For example, these two records:

v=spf1 include:spf.mail-provider.example ~all
v=spf1 include:spf.newsletter-service.example ~all

become one:

v=spf1 include:spf.mail-provider.example include:spf.newsletter-service.example ~all

If the records end with different all qualifiers, choose one deliberately; the softfail page compares them. The combined record's DNS lookups add up, so check it against the 10-lookup limit after merging.

Multiple records in an included domain

The same rule applies to every domain SPF evaluation reaches through include: or redirect=. If one of those domains publishes more than one SPF record, evaluation returns a permanent error when it gets there, even though your own domain has a single record. That record belongs to whoever runs the included domain, so the fix is usually on their side, or the include may point at the wrong domain.

What this check covers and its limits

  • The check looks up TXT records at the exact domain you enter. A subdomain has its own SPF record and is checked separately.
  • Only TXT records starting with v=spf1 count. Other TXT records, such as site verification tokens, don't affect SPF.
  • Results reflect DNS at the time of the scan. A record you just removed can still be cached by resolvers until its TTL expires.
  • This result covers multiple records only; the full checker reports every other SPF and DMARC finding.