MailSpecto
SPF, DKIM and DMARC 3 min read

Multiple SPF or DMARC records on one domain – why it breaks and how to merge them

A new provider asks you to add an SPF record, so someone adds a second one next to the existing record. From that moment SPF for the domain stops working. DMARC behaves the same way. We show how to merge records into one, how to add several report addresses, and when many records are fine.

MailSpecto Engineering Team

Mail infrastructure and deliverability

Two SPF records = permerror v=spf1 include:A ~all v=spf1 include:B ~all One SPF record = SPF works v=spf1 include:A include:B ~all _dmarc: 2 × v=DMARC1 → DMARC ignored

1. Two SPF records = permerror

The SPF specification (RFC 7208) is clear: a domain may have only one TXT record starting with v=spf1. When the receiving server finds two, it does not pick the better one; it returns permerror, and SPF then works for none of your senders.

A typical picture after rolling out a new tool:

example.com.  TXT  "v=spf1 include:_spf.google.com ~all"
example.com.  TXT  "v=spf1 include:servers.mcsv.net ~all"

Check it with:

dig +short TXT example.com | grep -c spf1

A result greater than 1 means trouble.

2. How to merge SPF records

Take one v=spf1 at the start, all mechanisms from both records, and one all at the end:

example.com.  TXT  "v=spf1 include:_spf.google.com include:servers.mcsv.net ~all"

Rules for merging:

  • keep one all at the end; if the records had different ones (~all and -all), choose the one you are sure of, and ~all when in doubt;
  • remove repeated entries;
  • count the DNS lookups: a merged record easily goes over the limit of 10 (see SPF PermError "too many DNS lookups");
  • delete the old record only after adding the merged one, so the domain is never left without SPF.

The SPF record type

Some old DNS panels have a separate "SPF" record type (type 99). It was retired in 2014 and receivers do not read it. Always publish SPF as a TXT record and delete any old SPF-type record.

3. Two DMARC records = no DMARC

DMARC is similar, but the effect is even harder to spot. If _dmarc.example.com holds two v=DMARC1 records, the receiver skips DMARC entirely (RFC 7489). Your reject policy stops protecting the domain and reports stop arriving, even though everything "is there" in DNS.

The most common cause: a report analysis service asks you to add a record with its rua address, and someone adds it next to the existing one instead of editing it.

4. Several report addresses in one record

You do not need two records to send reports to two places. The rua tag accepts several addresses separated by commas:

_dmarc.example.com.  TXT  "v=DMARC1; p=quarantine; rua=mailto:[email protected],mailto:[email protected]"

An address in a domain other than yours needs that domain's consent (the record example.com._report._dmarc.reportservice.example). Report services publish it themselves.

5. When many records are fine

RecordHow many?
SPF (v=spf1 in the domain's TXT)exactly one
DMARC (_dmarc)exactly one
DKIM (selector._domainkey)any number, one per selector; every provider has its own
Other domain TXT records (e.g. Google or Microsoft verification)any number, they do not affect SPF
MXany number, with priorities (see MX record)

The domain audit in the MailSpecto panel detects both multiple SPF records and multiple DMARC records, and daily domain monitoring alerts you when such a record appears after DNS changes, before receivers start rejecting your mail.

  1. The domain has one TXT record with v=spf1.
  2. _dmarc holds one record with v=DMARC1.
  3. Several report addresses go comma-separated into one rua.
  4. A new provider means a new include in the existing SPF and a new DKIM selector, not a new SPF record.
  5. Check the domain again after every DNS change.

Keep your contact list clean

Verify email addresses before you send, and explore our upcoming SPF/DKIM/DMARC diagnostics module.

Try MailSpecto

MailSpecto Engineering Team

We build tools for email address verification, deliverability monitoring and mail infrastructure security diagnostics for companies in Poland and Europe.

Related articles

SPF, DKIM and DMARC

DMARC reports – how to read them and move from p=none to p=reject

How to read DMARC aggregate reports (rua) and move step by step from p=none to p=quarantine and p=reject.

Read article →
SPF, DKIM and DMARC

No DMARC record found – what a missing DMARC record means and how to add one

What "No DMARC record found" means, exactly where to add the _dmarc record, a safe starter record, and the most common DNS panel mistakes.

Read article →
SPF, DKIM and DMARC

SPF, DKIM and DMARC in Google Workspace – the complete setup

SPF with include:_spf.google.com, a 2048-bit DKIM key with the google selector, the Start authentication button and a starter DMARC record, in the right order.

Read article →