How to set up DMARC step by step (none → quarantine → reject)
DMARC lets you tell receivers to reject mail that pretends to be from your domain. Rolled out in stages, it does that without blocking your own legitimate mail.
What DMARC does
DMARC (Domain-based Message Authentication, Reporting and Conformance, RFC 7489) is a TXT record published at _dmarc.example.com. It does two things:
- It sets a policy for messages whose From domain isn't authenticated: deliver them anyway (
none), treat them as suspicious, usually by sending them to spam (quarantine), or refuse them (reject). - It asks for reports. Receivers that support reporting send you summaries of the mail they saw using your domain and whether it passed.
A message passes DMARC when SPF or DKIM passes and the domain that passed matches the domain in the visible From address. That match is called alignment. It's what stops an attacker from passing SPF with their own domain while showing yours in From.
By default alignment is relaxed: the domains only need the same organizational domain, so a DKIM signature from mail.example.com aligns with From: news@example.com. Setting adkim=s or aspf=s requires an exact match. Relaxed is right for most domains.
Before you start: list your senders
The main risk in a DMARC rollout is blocking real mail from a service nobody remembered. Make a first list of everything that sends email as your domain:
- Your main mailbox provider, such as Microsoft 365 or Google Workspace.
- Newsletter and marketing platforms.
- CRM, helpdesk, invoicing, payroll and HR systems.
- Your website's contact forms and shop notifications.
- On-premises servers, scanners and printers that email documents.
For each one, set up SPF (add the include it documents to your one SPF record) and, wherever the service supports it, DKIM signing with your own domain. DKIM is the more important of the two for DMARC, because it survives forwarding. The SPF guide covers merging includes and staying under the 10-lookup limit.
Step 1: publish p=none with reporting
Start in monitoring mode. Nothing changes for your mail yet; you just start receiving reports. Add this TXT record:
TXT record at _dmarc.example.com
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
rua is where aggregate reports go. They're XML files, usually sent once a day by each large receiver that saw your mail, listing the sending IP addresses, message counts and SPF, DKIM and DMARC results. They don't contain message content. Raw XML is hard to read by hand, so most people send reports to a mailbox that feeds a DMARC report analyzer.
If the report address is on a different domain, that domain has to agree to receive them. For reports from example.com sent to reports@example.net, example.net publishes:
TXT record at example.com._report._dmarc.example.net
v=DMARC1
Report services set this up for their customers. Without it, receivers that follow the standard won't send the reports.
There's also a ruf tag for failure (forensic) reports about individual messages. Many large receivers don't send them, and they can contain personal data, so they're optional.
Step 2: read the reports and fix every sender
Give it at least a few weeks, so monthly senders such as billing runs show up. For each source in the reports, decide:
- Yours and passing: nothing to do.
- Yours and failing: fix it. Usually that means turning on DKIM for your domain in that service, or adding its SPF include. A service that passes SPF only for its own bounce domain isn't aligned, so it needs DKIM with your domain or a custom bounce domain on your domain.
- Not yours: that's spoofing, or a forwarder. This is the mail DMARC will eventually stop.
Move on when the reports show your legitimate mail passing DMARC almost entirely. Some failures from forwarding and mailing lists are normal and don't need fixing.
Step 3: move to p=quarantine
Quarantine asks receivers to treat failing mail as suspicious, which usually means the spam folder. You can apply it to part of the failing mail first with pct:
v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc-reports@example.com
Under RFC 7489, pct=25 applies quarantine to about a quarter of failing messages; the rest get the next policy down, which for quarantine is none. Watch the reports and your helpdesk for complaints, then raise it to 50, then 100 (or remove pct, which defaults to 100). Support for pct varies between receivers, and the revised DMARC specification known as DMARCbis replaces it with a simpler testing flag, so treat it as a rough dial rather than an exact percentage.
v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com
Step 4: move to p=reject
Once quarantine at 100% has run cleanly for a few weeks, switch to reject. Receivers that follow your policy then refuse mail that fails DMARC, so spoofed messages never reach the inbox or the spam folder.
v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com
You can stage this with pct as well. With p=reject; pct=50, the messages not selected are quarantined instead. Keep reading the reports after you reach reject: new services get added, and someone has to set them up before they start sending.
Subdomains
A domain's DMARC policy also covers subdomains that have no DMARC record of their own. The sp tag sets a different policy for them; without it, they inherit p. A common pattern is to keep subdomains strict while the main domain is still being rolled out:
v=DMARC1; p=quarantine; sp=reject; rua=mailto:dmarc-reports@example.com
Only do this if no subdomain sends mail without its own DMARC record. A subdomain that sends, such as news.example.com, can publish its own record at _dmarc.news.example.com.
DMARC tags at a glance
| Tag | Meaning | Default |
|---|---|---|
| v | Version. Must be DMARC1 and come first. | Required |
| p | Policy: none, quarantine or reject. | Required |
| sp | Policy for subdomains. | Same as p |
| pct | Percentage of failing mail the policy applies to. | 100 |
| rua | Where to send aggregate reports. | None |
| ruf | Where to send failure reports. | None |
| adkim | DKIM alignment: r relaxed or s strict. | r |
| aspf | SPF alignment: r relaxed or s strict. | r |
Common mistakes
- Publishing at the wrong name. The record goes at
_dmarc.example.com, not atexample.com. Some DNS consoles add the domain for you, so you type only_dmarcas the host name. - Two DMARC records. With more than one, receivers ignore DMARC for the domain. Keep exactly one.
- Missing semicolons or a wrong first tag. Tags are separated by
;, and the record must start withv=DMARC1. - Staying at p=none forever. Monitoring mode protects nothing. It's the first step, not the goal.
- Jumping straight to reject. Without reports you can't know which legitimate senders would be blocked. The exception is a domain that never sends mail: give it
p=rejectandv=spf1 -allstraight away.
Mailbox providers increasingly expect DMARC. Google and Yahoo, for example, began requiring a DMARC record from bulk senders in 2024, with p=none accepted as the minimum.
Check your DMARC record now
The domain checker finds your DMARC record (including the parent domain's, for subdomains), shows every tag, and suggests the next record to publish.