Explainer: DMARC¶
Use this page to understand what DMARC does before you set it up. When you are ready to create a record, use the DMARC Record Builder, or contact Fused to execute.
TL;DR
DMARC is the house rule for your domain's email. SPF and DKIM check whether a message is genuine, and DMARC tells receiving mail servers what to do when a message claiming to be from you fails those checks.
DMARC In Plain English¶
Imagine you run a club, and lots of people turn up at other venues saying they are with your club.
- SPF is your guest list. It names the mail servers allowed to send mail for your domain.
- DKIM is your club's hand stamp. Only your club owns the stamp, and you pin a sample by every venue's door so staff can compare. A clean, matching stamp proves the person really came from your club, and a smudged one doesn't count. In email terms, your mail server stamps each message with a digital signature, and the sample is published in DNS.
- DMARC is the note you leave with every venue. It says: "If someone claims to be from my club but is not on the guest list and has no valid stamp, here is what to do with them. And please send me a report on who turned up."
Without DMARC, each receiving mail server makes up its own mind about mail that fails SPF or DKIM. With DMARC, you make that decision for them.
The Three House Rules¶
A DMARC record sets one of three policies.
| Policy | House rule | What happens to failing mail |
|---|---|---|
p=none |
"Let them in, but tell me about it." | Mail is delivered as normal. You get reports. |
p=quarantine |
"Keep them in the waiting room." | Mail usually goes to the spam or junk folder. |
p=reject |
"Turn them away at the door." | Mail is refused and never reaches the inbox. |
Every domain should start with p=none. It changes nothing about delivery, but
the reports show you every service sending mail as your domain, including ones
you may have forgotten, such as a newsletter tool, a billing system, or a
website contact form.
Why The Name Has To Match¶
DMARC adds one important check that SPF and DKIM do not make on their own: the
domain that passed SPF or DKIM must match the domain in the From address the
recipient sees. This is called alignment.
Think of it like an ID badge. It is not enough that someone has a valid badge. The name on the badge has to match the name they gave at the door.
A message passes DMARC when at least one of these is true:
- SPF passes and the SPF domain matches the visible
Fromdomain. - DKIM passes and the DKIM signing domain matches the visible
Fromdomain.
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#262626", "primaryTextColor": "#f5f5f5", "primaryBorderColor": "#525252", "lineColor": "#a3a3a3", "textColor": "#f5f5f5", "edgeLabelBackground": "#404040"}}}%%
flowchart TD
A["Message claims to be from example.com"] --> B("SPF passes and matches example.com?")
B -- Yes --> P(["DMARC passes: deliver normally"])
B -- No --> C("DKIM passes and matches example.com?")
C -- Yes --> P
C -- No --> F(["DMARC fails: apply the policy"])
classDef pass fill:#243b34,stroke:#4f7a6a,color:#e3efe9
classDef fail fill:#3f2a2d,stroke:#8a5c62,color:#f3e6e8
class P pass
class F fail
The Reports¶
DMARC asks receiving mail servers such as Gmail and Outlook to send you daily
summary reports. These are called aggregate reports, and the address is set with
the rua tag in your record.
The reports tell you:
- which servers sent mail claiming to be from your domain
- how many messages each one sent
- whether those messages passed or failed SPF, DKIM, and DMARC
The reports arrive as XML attachments and are hard to read by hand. A dedicated mailbox or a DMARC reporting service makes them much easier to review.
A DMARC Record, Piece By Piece¶
DMARC is published as a TXT record at _dmarc.example.com, replacing
example.com with your domain.
v=DMARC1; p=none; rua=mailto:dmarc@example.com
| Part | Plain-English meaning |
|---|---|
v=DMARC1 |
"This is a DMARC record." |
p=none |
"Don't block anything yet, just watch." |
rua=mailto:dmarc@example.com |
"Send the daily reports to this address." |
The DMARC guide lists every tag if you need more control.
Going From Watching To Blocking¶
Move slowly. Tightening the policy too early can send your own legitimate mail to spam or get it rejected.
- Make sure SPF and DKIM are set up for every service that sends mail for the domain.
- Publish
p=noneand collect reports for a few weeks. - Fix any legitimate sender that fails, by adding it to SPF or enabling DKIM with that provider.
- Move to
p=quarantine, starting with a small percentage such aspct=25. - Move to
p=rejectonce reports show legitimate mail consistently passes.
Do not start with reject
If a legitimate service is missing from SPF and is not signing with DKIM,
p=reject will block that mail. Always start with monitoring.
Build Your Record¶
The DMARC Record Builder walks you through each setting and produces a record ready to publish in DNS.
Related Guides¶
-
SPF
-
DKIM
-
DNS checker