Try free for 14 days

Practice

Creating a DMARC record: step by step

A DMARC record sets out what recipients should do with emails that forge your domain. The record itself is quick to create. What matters is the right path to get there, so no genuine email is lost.

3 min readHow well is your domain protected? Check my domain for free

Key points at a glance

  • The DMARC record is a TXT record on _dmarc.<your domain> and starts with v=DMARC1.
  • Start with p=none and a reporting address, then quarantine and reject follow.
  • SPF and DKIM must be correct for every genuine sender beforehand.

Prerequisites

DMARC builds on SPF and DKIM. So first check whether your SPF record names every sender, and whether your mail provider and other services sign with DKIM. An email passes DMARC if SPF or DKIM passes and the domain matches the visible sender.

The structure of the record

The record sits as a TXT record on the name _dmarc in front of your domain, for example _dmarc.example.com. A safe starting point looks like this: “v=DMARC1; p=none; rua=mailto:dmarc@example.com”.

  • v=DMARC1: identifier, always comes first.
  • p=: policy for forgeries – none (observe only), quarantine (spam folder) or reject (reject).
  • rua=: address recipients send daily aggregate reports to.
  • sp=: separate policy for subdomains (optional).
  • adkim= and aspf=: how exactly the domain must match (optional, default is relaxed).

Step by step to p=reject

Let p=none run for two to four weeks and read the reports: they show every server sending with your domain. Add any missing genuine senders to SPF and DKIM. Only once practically all genuine emails pass DMARC do you switch to quarantine and then to reject.

The safe path to full protection
  1. p=noneCollect reports, nothing is blocked.
  2. p=quarantineForgeries land in the spam folder.
  3. p=rejectForgeries are rejected.

observereject

Don’t start straight with reject

Anyone who switches to reject right away without evaluation risks their own invoices or newsletters no longer arriving.

Common mistakes

  • Record on the domain instead of on _dmarc: then no one finds it.
  • Two DMARC records: then neither applies.
  • Reporting address on a foreign domain without authorisation: recipients then send no reports.
  • Staying on p=none for years: the reports show forgeries but don’t prevent them.

Frequently asked questions

Is there a DMARC generator?

You can write the record yourself following the example above. More important than the record is evaluating the reports before you switch to reject.

Where do the DMARC reports go?

To the address in the rua field. The reports are technical files; without evaluation they are hard to read.

Do I need DMARC for domains without email too?

Yes. For such domains, “v=DMARC1; p=reject;” together with the SPF record “v=spf1 -all” is enough.

How DomainRadar helps

DomainRadar gives you the right reporting address, evaluates the DMARC reports for you, and shows clearly which senders are still missing. As soon as it’s safe, DomainRadar tells you when to switch to quarantine and reject.

The domain check stays free. Afterwards you test DomainRadar with all features for 14 days – no credit card, the trial ends on its own.

More guides

Now 14 days free

How does your domain measure up?

DomainRadar continuously checks the SPF, DKIM and DMARC of your domains and tells you in plain words what to do.

Or directly by email: info@domainradar.ch

  • No commitment
  • No credit card
  • Ends on its own after 14 days
Try free for 14 days