DMARC Explained
Learn how DMARC ties SPF and DKIM to your From address, what each policy does and how to move to enforcement safely.
Key takeaways
- DMARC passes when at least one of SPF or DKIM passes with a domain aligned to the visible From address.
- The policy can be
nonefor monitoring,quarantinefor treating failures as suspect orrejectfor refusing them. - Aggregate reports show which servers send as your domain and whether they authenticate correctly.
- Move to enforcement in stages, after every legitimate sender is passing.
- DMARC stops exact-domain forgery, and does not stop look-alike domains or misleading display names.
DMARC is a DNS record that tells receiving mail systems what to do when a message claims to be from your domain but cannot prove it. A message passes DMARC if SPF or DKIM passes and the domain that passed matches the domain in the visible From address. The record also asks receivers to send you reports about what they see.
DMARC stands for Domain-based Message Authentication, Reporting and Conformance. It was first published as RFC 7489. RFC 9989 replaced that document in May 2026, so check current provider guidance for how they handle newer and retired tags. The core ideas below are unchanged.
Alignment, the missing link
SPF checks the envelope sender's domain. DKIM checks the domain in a signature. Neither has to match what the reader sees. A forger could pass both using their own domain while writing your address in the From line.
DMARC requires alignment:
- SPF alignment: the envelope sender domain matches the From domain.
- DKIM alignment: the signature's
d=domain matches the From domain.
By default matching is relaxed, meaning the two only need to share the same organizational domain, so bounce.example.com aligns with example.com. Strict mode requires an exact match. You can set each separately with aspf and adkim.
Only one of the two paths needs to succeed. That redundancy matters: forwarding tends to break SPF, and a footer added by a mailing list tends to break DKIM.
The record
DMARC lives in a TXT record at _dmarc under your domain:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:[email protected]" | Tag | Meaning |
|---|---|
v=DMARC1 | Version; must come first |
p= | Policy for the domain: none, quarantine or reject |
sp= | Policy for subdomains, if different |
rua= | Where to send aggregate reports |
ruf= | Where to send per-message failure reports; many receivers don't send them |
adkim= / aspf= | r relaxed or s strict alignment |
t= | Test mode, added by RFC 9989: y asks receivers not to apply the policy as published |
pct= | Older RFC 7489 tag for the share of failing mail the policy applies to; removed by RFC 9989 |
If a subdomain has no DMARC record of its own, receivers generally fall back to the organizational domain's record, using sp where present. That differs from SPF, which has no such inheritance.
If you want reports delivered to a different domain, that domain has to publish a record agreeing to accept them. Reporting services set this up for you.
The three policies
A policy is a request. Receivers may override it, for instance when they trust a forwarder, and they record such overrides in reports.
p=none offers no protection by itself. It is a measurement stage. A domain left there indefinitely gains reports and little else.
A safe rollout
1. Inventory your senders
Staff mail, website forms, invoicing, payroll, support desk, marketing platform, monitoring alerts, printers and scanners. Ask finance and marketing; they often use services IT never heard about.
2. Authenticate each one
For every sender, set up DKIM signing with your domain, and where possible a custom bounce domain so SPF aligns too. DKIM alignment is usually the more durable of the two.
3. Publish monitoring
Add p=none with a rua address. Use a mailbox that can handle volume, or a report processing service.
4. Read the reports
Aggregate reports are XML files, usually compressed, typically sent daily. They list sending IP addresses, message counts and SPF, DKIM and alignment results. They don't contain message bodies. Reading DMARC reports shows how to interpret them.
Sort sources into three groups: yours and passing, yours and failing, and not yours. Fix the second group. The third is why you're doing this.
5. Tighten gradually
Move to quarantine, watch for complaints and report changes, then move to reject. How long each stage takes depends on how many senders you have and how often they send. Include monthly and quarterly jobs, so wait long enough to see them.
6. Keep watching
New services appear, keys expire, vendors change infrastructure. Reports remain useful after enforcement.
Worked results
Say your From address is [email protected].
| Scenario | SPF | DKIM | DMARC |
|---|---|---|---|
| Staff mail, signed as example.com | pass, aligned | pass, aligned | pass |
| Newsletter tool using its own bounce domain, signing as example.com | pass, not aligned | pass, aligned | pass |
| Tool signing only with its own domain, own bounce domain | pass, not aligned | pass, not aligned | fail |
| Forwarded staff mail, unchanged | fail | pass, aligned | pass |
| Forger using your From address | fail or not aligned | none or not aligned | fail |
The third row is the classic surprise: every check says "pass" and DMARC still fails. Turning on custom domain signing at the tool fixes it.
Reading your first reports
Reports can look intimidating, but each record answers a few questions: which IP address sent mail with your domain in From, how many messages, what happened to them, and why. A shortened record looks like this:
source_ip: 192.0.2.25
count: 340
disposition: none
dkim (aligned): pass
spf (aligned): fail
header_from: example.com
auth_results: dkim domain=example.com pass
spf domain=bounce.example.net pass Here a service at 192.0.2.25 sent 340 messages. SPF passed, but for the service's own bounce domain, so it didn't align. DKIM passed for example.com, so DMARC passed overall. Nothing is urgently wrong, though adding a custom bounce domain would give the service a second way to pass.
If both aligned results had failed, you would look up who owns the address. A familiar vendor means a setup task. An unknown network sending a trickle could be a forwarder, and a large unknown volume with no valid signature suggests forgery.
Reports arrive from each participating receiver separately, so expect many small files. Software or a hosted service that combines them into one view saves a great deal of effort. Consider who can read them: they reveal your sending infrastructure and volumes, so don't publish them. If you use an outside processor, it will see that information too.
Deciding when you are ready to enforce
Reasonable signs of readiness: every known service passes with alignment, the remaining failures are sources you can explain, and a named person reads the reports. You won't reach zero failures, since some forwarded mail will always appear. The question is whether anything you care about is among them. Keep a rollback plan, which is simply returning the policy to its previous value, and shorten the record's TTL while you experiment.
Tell colleagues before each step. If a forgotten system stops delivering, they should know whom to call and that the change happened.
Forwarding and mailing lists
Some legitimate indirect mail will fail, especially from lists that modify messages. Many lists respond by rewriting the From address to their own domain for affected senders. ARC headers (RFC 8617) let intermediaries record earlier results, which receivers may take into account. If your users post heavily to lists, weigh this before choosing reject, and tell them what might change.
Protecting domains that send no mail
For parked domains, publish an empty SPF policy and a strict DMARC record:
example.org. IN TXT "v=spf1 -all"
_dmarc.example.org. IN TXT "v=DMARC1; p=reject; rua=mailto:[email protected]" Remember the external reporting authorization if the report address is on another domain.
What DMARC cannot do
- It does not stop a look-alike domain such as one with a swapped letter. Typosquatting covers those.
- It does not check the display name. A message can show a colleague's name over an unrelated address.
- It does not help when a real account has been taken over, since that mail authenticates properly.
- It protects recipients only where their mail system evaluates it.
Combine it with user awareness, strong account security and payment verification procedures. Business email compromise explains the risks that remain.
Common mistakes
- Two records at
_dmarc. Receivers can't tell which you meant and may ignore DMARC for the domain. - Publishing at the wrong name. The label is
_dmarc, with the underscore, directly under the domain. - Jumping straight to
reject. Legitimate invoices or password resets from an overlooked service can vanish. - Reports nobody reads. Monitoring only helps if someone acts on it.
- A loose subdomain policy. An
sp=noneleft over from testing keeps subdomains open to forgery after the main domain is enforced. - Assuming the vendor handled it. A sending service may show a green check for its own domain while your From address still lacks alignment. Confirm in real headers.
Revisit the record whenever your mail setup changes, such as a new provider, a company merger or a retired domain. The record itself is short, and most of the ongoing work is keeping the list of senders behind it accurate.
Checking your record
dig _dmarc.example.com TXT +short Resolve-DnsName _dmarc.example.com -Type TXT Confirm there is exactly one record, that it starts with v=DMARC1, that tags are separated by semicolons and that report addresses begin with mailto:. Then send a test message to an outside mailbox and look for dmarc=pass in the headers.
DMARC at enforcement is also a requirement for showing a brand logo through BIMI, and major providers expect at least a published record from bulk senders.