How to set up a DMARC record

Publish your first DMARC record safely, start receiving reports, and avoid the mistakes that make receivers ignore it.

A DMARC record is a TXT record at _dmarc on your domain. A good first record:

_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"

This changes nothing about how your mail is delivered. It asks mailbox providers to send you daily reports about every server that sends mail using your domain, so you can find out what needs fixing before you enforce anything.

The tags that matter

TagWhat it does
v=DMARC1Required, and must come first.
p=Policy for mail that fails: none, quarantine or reject. Required.
rua=Where aggregate reports go. Several addresses are separated by commas.
sp=Policy for subdomains. Defaults to the value of p.
adkim=, aspf=Alignment mode, r (relaxed, default) or s (strict). Leave them out unless you know you need strict.
pct=Apply the policy to only a percentage of failing mail. Replaced by t=y (testing) in the updated DMARC specification.

Mistakes that make receivers ignore it

  • Publishing it on the domain itself instead of on _dmarc.example.com.
  • Two DMARC records. Receivers then ignore DMARC entirely.
  • Sending reports to another domain without that domain authorizing it. See external destinations.
  • Typos like v=DMARC, p=reject; without v= first, or rua=dmarc@example.com without mailto:.

A subdomain without its own record falls under the organizational domain's record (using sp=), so you usually need just one record, on your main domain.

What next

Reports arrive as XML attachments, typically one per provider per day. Read them to find every service that sends as you, fix the ones that fail, and then move to quarantine and reject.