How to set up DMARC

Last updated: October 27, 2026

DMARC ties SPF and DKIM together and tells receivers what to do when a message claiming to be from your domain fails authentication. It also adds the crucial concept of alignment: the authenticated domain must match the domain humans see in the From header. Without DMARC, a spammer can pass SPF with their own domain while forging yours in the visible address.

A DMARC record is a single TXT record at _dmarc.yourdomain.com. Its policy tag p= has three levels: none (just tell me, deliver everything), quarantine (send failures to spam), and reject (bounce failures). Google and Yahoo require at least p=none for bulk senders since February 2024; the protective value only starts at quarantine and reject.

The safe rollout is staged: start at p=none with aggregate reporting (rua=) enabled, read the reports, fix every legitimate source until they all pass with alignment, then tighten. Skipping the monitoring phase is how companies quarantine their own invoices.

Not sure if this affects you? Run a free domain audit and see the exact check result.

Run the free domain check

Step by step

Stage 1 — monitoring (weeks 1–2)

  1. Publish: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; fo=1 — a pure monitoring record that changes nothing about delivery.
  2. Point rua= at a mailbox you control or a report processor; aggregate reports arrive daily as gzipped XML from every major receiver.
  3. Read the reports: every source sending as your domain should show SPF or DKIM passing AND aligned. Unknown sources are either forgotten tools or spoofing.

Stage 2 — fix legitimate sources

  1. For each failing legitimate sender: enable DKIM signing with your domain at that ESP (the durable fix), or confirm their bounce domain aligns for SPF.
  2. Wait until reports show several clean days with zero failing legitimate traffic.

Stage 3 — enforce gradually

  1. Move to p=quarantine with pct=25, then 50, then 100 over one to two weeks, watching reports after each step.
  2. Finish at p=reject. Add sp=reject if you want subdomains covered without their own records.
  3. Keep rua= forever — DMARC reporting is your spoofing early-warning system, not a rollout tool.

Google Workspace / Microsoft 365 / ESPs

  1. DMARC is not configured inside your mail provider — it is purely a DNS record at your domain. Providers only need to pass SPF/DKIM aligned with your domain, which their standard setup does.
  2. If an ESP cannot sign DKIM with your domain, their traffic will rely on SPF alignment of the bounce domain; many ESPs offer a 'custom return path' setting for exactly this.

Copy-paste examples

Monitoring record — safe day one
_dmarc  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com; fo=1"
Gradual enforcement
_dmarc  TXT  "v=DMARC1; p=quarantine; pct=50; rua=mailto:dmarc@example.com"
Final strict policy
_dmarc  TXT  "v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@example.com"

Common mistakes

  • Jumping straight to p=reject before inventorying senders — legitimate mail from forgotten tools gets bounced.
  • No rua= address — you are flying blind and cannot see who fails.
  • Record at the domain root instead of _dmarc.<domain> — receivers look only at the _dmarc label.
  • pct under 100 left in place permanently — partial enforcement is a rollout tool, not an end state.
  • Assuming p=none satisfies anti-spoofing — it satisfies Google's bulk-sender minimum but protects nothing.
  • Ignoring subdomain spoofing — without sp=, subdomains inherit p= but many senders forget to check subdomain traffic in reports.
  • Editing the record in place during rollout without lowering TTL first — receivers cache DNS, so policy changes may take effect hours later than you think.

FAQ

Is p=none enough for Gmail's bulk sender rules?

Technically yes — Google requires a published DMARC record with at least p=none. But p=none provides zero spoofing protection, and mailbox providers reward enforced domains with measurably better trust. Treat p=none as the first step, not the destination.

What is the difference between rua and ruf?

rua requests aggregate reports (daily XML summaries per source) — every major receiver sends these. ruf requests forensic (per-message) reports; almost nobody sends them anymore due to privacy concerns, so rua is the one that matters.

DMARC fails even though SPF passes. What's wrong?

Alignment. SPF authenticated the bounce (Return-Path) domain, not your From domain. Either DKIM-sign with your From domain or configure a custom return path at the ESP. Our alignment guide walks through this in detail.

How do I read DMARC aggregate reports?

They are XML files listing each source IP, volume, and SPF/DKIM/alignment results. Paste one into a DMARC report analyzer (our DMARC Reports tool visualizes them) rather than reading raw XML.

Does DMARC apply to subdomains?

The sp= tag sets the subdomain policy; absent sp=, subdomains inherit p=. A subdomain can also publish its own _dmarc record, which takes precedence for that subdomain.

Where should the rua= reports mailbox live?

Any mailbox you actually read — dmarc@yourdomain.com is the convention. Reports are XML attachments, several per day from large receivers, so use a dedicated address or a report processor. You can list multiple addresses (comma-separated), and a report address on another domain needs that domain to opt in with a special TXT record — simplest is keeping it on your own domain.

Fixed it? Prove it.

Send a test email and watch every check go green.

Send a test email to verify the fix

Related guides