DMARC (Domain-based Message Authentication, Reporting and Conformance) lets you, as the domain owner, tell receiving servers: "If a message claiming to be from me fails the SPF and DKIM checks, do this with it, and send me a report."
SPF and DKIM on their own only produce a check result; they don't decide what happens to a forged message. DMARC lets you make that decision and, most importantly, protects the From address the recipient sees.
How does DMARC work?
When a message arrives, the receiving server reads the DMARC record of the From domain at _dmarc.example.com. It then checks whether at least one of these two conditions holds:
- SPF passed and is aligned: the envelope domain checked by SPF matches the From domain.
- DKIM passed and is aligned: the
d=domain in the DKIM signature matches the From domain.
If neither holds, the message fails DMARC and the policy in the record is applied. This alignment requirement closes the gap SPF and DKIM leave open on their own: an attacker can set up valid SPF and DKIM for their own domain, but as soon as they put your domain in the From field, alignment fails.
How do you create a DMARC record?
A DMARC record is a TXT record added to the name _dmarc:
| Field | Value |
|---|---|
| Name / Host | _dmarc |
| Type | TXT |
| Value | v=DMARC1; p=none; rua=mailto:dmarc@example.com |
This is the simplest and safest start: it blocks nothing and only sends reports to dmarc@example.com.
DMARC tags
| Tag | Meaning | Values |
|---|---|---|
v | Version. Required, and must come first. | DMARC1 |
p | Policy. What to do with mail that fails DMARC. | none (monitor only), quarantine (send to spam), reject (refuse) |
sp | Separate policy for subdomains. If omitted, p applies. | none, quarantine, reject |
rua | Address for daily aggregate reports. | mailto:dmarc@example.com |
ruf | Address for failure reports on individual messages. Many large providers don't send these for privacy reasons. | mailto:... |
pct | Percentage of mail the policy applies to. | 1–100 (default 100) |
adkim | DKIM alignment strictness. | r (relaxed, subdomains match too), s (exact) |
aspf | SPF alignment strictness. | r, s |
fo | When failure reports are generated. | 0, 1, d, s |
From p=none to p=reject, step by step
Turning DMARC on straight away with p=reject can get mail rejected from a sending service you didn't know about (an invoicing system, a CRM, a website form). For a safe rollout:
- Monitor. Start with
p=noneand aruaaddress. Collect reports for at least two weeks. - Fix the senders. In the reports, find every source sending mail as your domain that fails SPF or DKIM. Add the legitimate ones to SPF or set up their DKIM.
- Quarantine. Once the reports look clean, start with
p=quarantine; pct=25and raise the percentage step by step to 100. - Reject. If nothing goes wrong for a few weeks, move to
p=reject. Your domain can no longer be used to send spoofed mail.
v=DMARC1; p=reject; rua=mailto:dmarc@example.com; adkim=r; aspf=r
DMARC reports
Google, Microsoft, Yahoo and other large providers send reports to the rua address, usually once a day, as compressed XML files. Each report lists the IP addresses that sent mail as your domain that day, how many messages, and the SPF/DKIM results. Raw XML is hard to read, so a DMARC reporting service that summarises the reports makes life much easier.
If you send reports to an address on another domain (a reporting service's address, for example), that domain must publish a record saying it accepts them. Reporting services usually set this up themselves.
Gmail, Yahoo and Microsoft requirements
Since February 2024, Gmail and Yahoo require domains that send more than 5,000 messages a day to personal accounts to have SPF, DKIM and a DMARC record with at least p=none; Microsoft introduced similar rules for Outlook.com in 2025. Smaller senders also need SPF or DKIM, and having DMARC noticeably improves delivery. In short, DMARC is no longer an optional security extra but a precondition for reaching the inbox.
Common mistakes
- Adding the record to
@. DMARC is only looked up at_dmarc. - More than one DMARC record. If there are two
v=DMARC1records under_dmarc, receivers ignore both. - Staying on
p=noneforever. Monitoring mode gives you reports but doesn't stop spoofed mail. - Starting directly with
p=reject. Mail from a forgotten sending service gets rejected silently. - Not setting up DKIM for your newsletter service. If the service signs with its own domain, DMARC alignment fails, and once
p=rejectis on your newsletters won't be delivered.
