DMARC record generator
Build a DMARC record for _dmarc.yourdomain.com, with the rollout order that does not lose your mail.
Start at none and read the reports. Going straight to reject is how a company loses its invoices.
Daily XML summaries. Without this, DMARC tells you nothing and the whole exercise is pointless.
Per-message failure copies. These contain real message data, so most providers no longer send them.
A way to roll a strict policy out slowly. Only meaningful with quarantine or reject.
DMARC record
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.comBefore you ship this
- Note: p=none changes nothing about delivery — it only asks for reports. That is the right first step, and also the step most domains never move past. Set a date to revisit it.
- Warning: This is a TXT record at _dmarc.yourdomain.com, not at the root. Publishing it at the root does nothing and is the most common setup mistake.
- Note: DMARC passes when SPF or DKIM passes and the domain aligns. If neither is set up, every message fails — so publish those first and only then tighten this policy.
How to use it
- Start with p=none. It changes nothing about delivery and only asks for reports, which is exactly what you want for the first few weeks.
- Put in a report address. Without rua you receive nothing, and the whole exercise tells you nothing.
- Read the reports until every legitimate sender is passing, then move to quarantine, then to reject.
- Publish it as a TXT record at _dmarc.yourdomain.com — not at the root, which is the most common setup mistake.
DMARC is the one that does something
SPF and DKIM each check one technical detail. Neither says what a receiver should do about a failure, and neither is tied to the From address the recipient actually sees.
DMARC adds both: it requires that SPF or DKIM passes and that the passing domain aligns with the visible From address, and it tells receivers what to do when that fails. That alignment requirement is what stops someone sending mail that appears to be from your domain.
Reports first, policy second
The temptation is to publish p=reject immediately, because that is the protective setting. It is also how a company stops receiving its own invoices.
Nobody knows every system that sends mail as their domain. There is always one — a payroll provider, a support desk, a form on a microsite from 2019. The aggregate reports are how you find them, and p=none is how you get the reports without consequences.
Reading the reports
They arrive as daily XML, one per receiving provider, and they are not meant for human reading. Paste one into any free DMARC report parser and you get a table: sending IP, volume, SPF result, DKIM result. Anything failing with real volume is either a sender you forgot or someone spoofing you — and the reports distinguish the two clearly enough.
pct, and the subdomain trap
pct applies the policy to a percentage of failing mail, which is a sensible way to roll out quarantine or reject gradually. It does nothing at all with p=none.
Subdomains inherit the main policy unless you set sp. That is usually what you want: an unused subdomain with no policy of its own is a favourite target, because nobody is watching it.
DMARC record generator FAQ
What does p=none actually do?
Nothing to your mail. It asks receivers to send you reports about what passed and what failed, and to deliver everything as they would have anyway. That makes it completely safe to publish today, and it is the only way to find out which of your senders are misconfigured before a stricter policy starts blocking them.
How long before I move to p=reject?
Until the reports are clean, which in practice is four to eight weeks for most organisations. You are waiting to discover the senders nobody remembered — the recruitment platform, the invoicing tool, the conference badge system. Each one shows up in the reports as a failure you then authorise.
Where does the DMARC record go?
In a TXT record at the subdomain _dmarc.yourdomain.com. Publishing it at the root does nothing at all, and because there is no error anywhere, it can sit there for months looking configured.
What is the difference between relaxed and strict alignment?
Relaxed lets a subdomain count as a match, so mail signed by news.yourdomain.com passes for yourdomain.com. Strict requires an exact match. Almost every third-party sending platform uses a subdomain, so strict alignment breaks them — use relaxed unless you have a specific reason not to.
What is the difference between SPF, DKIM and DMARC?
SPF lists the servers allowed to send for your domain. DKIM signs the message so a receiver can verify it was not altered. DMARC is the policy on top: it tells receivers what to do when neither passes in a way that aligns with the visible From address, and it is the only one of the three that asks for anything to be enforced.
Do I need both SPF and DKIM to pass DMARC?
No, either is enough as long as it aligns with the From domain. In practice you want both, because SPF breaks whenever mail is forwarded and DKIM usually survives it. A sender with DKIM alone is more robust than one with SPF alone.
Is DMARC now required to reach the inbox?
For bulk senders, effectively yes. Since early 2024 Gmail and Yahoo have required a DMARC record on the sending domain for anyone sending more than about 5,000 messages a day, alongside authentication and a one-click unsubscribe. A record at p=none satisfies the requirement, which is another reason to publish one today.
Will DMARC stop someone registering a lookalike domain?
No, and this is the most over-sold part of it. DMARC protects the exact domain it is published on. A phisher using yourcompany-support.com is unaffected, because it is their domain and they can authenticate it perfectly. Lookalikes need monitoring and takedowns, not a DNS record.
What happens to mailing lists and forwarded mail at p=reject?
Some of it breaks. A list that rewrites the subject invalidates the DKIM signature, and forwarding invalidates SPF, so a strict policy can bounce legitimate mail. Most large receivers now use ARC to preserve the original authentication result, but assume a small amount of breakage and check the reports before and after the move.
Do domains that never send email need DMARC?
Yes, and they are the easiest win in the whole exercise. A parked or brand-protection domain should publish an SPF record that authorises nothing and a DMARC record at p=reject. There is no legitimate mail to break, and it closes a domain that would otherwise be free to spoof.