Anyone can send a message with your domain in the From field: SMTP does not forbid it. That is exactly how phishing “from the bank” or “from the CEO” is sent. DMARC is a DNS record that tells mail providers what to do with such forgeries — and sends you reports on who is sending mail in your name.
Three records that work together
- SPF lists the servers allowed to send the domain’s mail. It checks the domain of the message’s “envelope” (Return-Path), not the one people see.
- DKIM is a digital signature on the message. The receiving server checks it with a public key from DNS and confirms the message was not altered on the way.
- DMARC ties both checks to the address in the From field: a message passes DMARC only if SPF or DKIM passed for the same domain as in From. This is called alignment.
Without DMARC, a forgery sent from someone else’s server, with SPF and DKIM set up for the scammer’s own domain, formally passes the checks. With DMARC, it does not.
What the record looks like
The TXT record is published at _dmarc.example.com:
v=DMARC1; p=none; rua=mailto:dmarc@example.com; adkim=r; aspf=r
- p — the policy:
none(monitor only),quarantine(to spam),reject(refuse). - rua — where to send the daily aggregate reports.
- adkim / aspf — alignment strictness:
rallows subdomains,srequires an exact match. - pct — the share of mail the policy applies to; sp — the policy for subdomains.
The mail records generator helps build SPF, DKIM and DMARC, and the DNS lookup with its “Check the domain’s mail setup” button shows what is actually published.
Rolling it out step by step
- Monitor. Publish
p=nonewith an rua address. Mail is unaffected, and reports start arriving within a day. - Read the reports. For 2–4 weeks, see which servers send mail in your name. Not just your mail service, but newsletters, CRM, the website and the invoicing service.
- Fix. Add legitimate services to SPF and turn on DKIM signing with your domain in each of them.
- Quarantine. Once almost all your mail passes DMARC, move to
p=quarantine, perhaps withpct=25at first. - Reject. After a couple more weeks without complaints, switch to
p=reject. Now forgeries no longer reach anyone.
How to read the reports
Reports arrive as ZIP or GZ archives with XML inside, which is hard to read by eye. Open them in the DMARC report viewer: it adds the files up, shows the share of mail that passed DMARC and the senders with their SPF and DKIM results, and tells you what to fix.
| What the report shows | What it means |
|---|---|
| DKIM pass but DMARC fail, signature d=sendgrid.net | The newsletter service signs with its own domain. Turn on signing with your domain (custom DKIM) there. |
| SPF pass for the service’s domain, DMARC fail | The envelope belongs to the service. A DKIM signature with your domain is usually enough. |
| Unknown IPs, everything fails | Spoofing or a forgotten service. Check the server name and whois before switching to reject. |
| Your servers, SPF fail on forwarded mail | Forwarding breaks SPF but not DKIM. That is why DKIM is a must. |
Why it matters now
Since 2024 Gmail and Yahoo, and since 2025 Outlook.com, require bulk senders to have SPF, DKIM and a DMARC record — without them, mail goes to spam or is rejected. But even a small company needs DMARC: it protects customers from messages “from you” and protects you from a spammer’s reputation. And to read mail headers and see why a particular message failed, use the e-mail header analyzer.