DMARC for beginners: from p=none to reject, safely

Short answer: publish a TXT record at _dmarc with v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com, read the reports for at least a month, and only then consider a stricter policy.

Reviewed

Symptom

You were told to “set up DMARC”, or a checker or the Health Report says your domain has no DMARC record, or that the policy is “none”. You do not want to publish something that blocks your own order emails.

Why it happens

DMARC is a DNS record that tells receiving mail servers two things: what to do with mail that claims to be from your domain but fails authentication, and where to send reports about it. It builds on SPF and DKIM. It adds one idea, alignment: the domain in the visible From address must match the domain that SPF or DKIM checked.

  • A message passes DMARC if the SPF check or the DKIM check passes and is aligned. It fails only if both fail (Microsoft’s documentation).
  • Relaxed alignment is the default: the domains need the same organizational domain, so bounces.example.com aligns with example.com. Strict needs an exact match. Relaxed is the default for both the SPF and the DKIM check.
  • The policy, p=, has three values: none (you ask for no particular action, used to monitor), quarantine (treat failing mail as suspicious) and reject (you consider failing mail not valid for your domain). What the receiver does with them is up to the receiver.

The records in this guide use only the tags v, p and rua, which both the current DMARC standard and the older one it replaced define.

Fix

Start by watching, not blocking.

  1. Make sure SPF and DKIM work first. DMARC only passes when at least one of them passes and aligns. Check your mail service’s setup for both. See SPF too many DNS lookups.
  2. Pick a mailbox for reports. Use a dedicated address, for example dmarc-reports@example.com, not a person’s inbox: reports arrive as machine-readable attachments, often daily from each receiver, and nobody needs them in their regular mail. If this address is on a different domain than the one you are protecting, that other domain must publish a TXT record that allows it. For reports about example.com going to dmarc-reports@example.net, the owner of example.net publishes a TXT record at example.com._report._dmarc.example.net with the value v=DMARC1; (Microsoft’s documentation describes this).
  3. Publish the starter record. At your DNS host, add a record with type TXT, host (name) _dmarc and value v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Some DNS hosts want the full name _dmarc.example.com in the host field instead, and some add your domain for you, so check what your host shows for other records. v=DMARC1 must come first. If you already have a DMARC record, edit it: only one _dmarc record may exist.
  4. Read the reports for at least a month. Receivers that support reporting send a summary (usually once a day, as a compressed XML attachment) to the rua address. Look for sending sources you recognize that fail alignment: for example, a newsletter tool that signs with its own domain. Fix each by setting up a custom DKIM signature or return-path domain with your domain in that service. Unknown sources that fail are probably spoofing, and that is what DMARC is for.
  5. Move to quarantine. The DMARC standard says a domain that wants to publish reject should first publish p=none for at least a month, then p=quarantine for an equally long period, and compare the results. Change the record to v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com.
  6. Move to reject only when it is clean. Once the reports show that all your real mail passes, change it to v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com. Be careful if people at your domain post to mailing lists or you use forwarding: the standard warns that reject can break such mail, and advises domains whose users post to mailing lists not to publish reject. For many stores, staying at quarantine is a sensible place to stop.

Good to know

  • About pct. Microsoft’s documentation shows using pct= (10, 25, 50, 75, 100) to apply a policy to only part of your failing mail while you test. The current DMARC standard removes pct and replaces part of it with a t=y testing tag, so how a given receiver treats pct can differ. Don’t rely on it as your only safety net; the monitoring steps above are.
  • Subdomains. A DMARC record on your main domain also covers subdomains that have no record of their own. Each subdomain that sends mail still needs its own working SPF and DKIM.

Check it worked

  • Look the record up: dig +short TXT _dmarc.example.com. You should see exactly one record starting with v=DMARC1.
  • Send a test email to a mailbox at a large provider and read the headers for dmarc=pass.
  • After a day or two, the first aggregate report should arrive at your reports address.
  • After each policy change, watch your order emails for a few days (test orders, and real ones) before the next step.

How the plugin helps

Email Health Check & Log for WooCommerce checks whether a DMARC record exists for the domain your site sends from, and says so when the policy is none (monitoring only). When the record is missing, its “How to fix this” panel shows the starter record v=DMARC1; p=none; with the host to use. It does not read your DMARC reports, does not test alignment, and does not change your DNS, so use your reports and a header check for those. Get the plugin on WordPress.org.

Sources

Check your own domain

Type your domain into the free checker to see whether your SPF, DKIM and DMARC records are in place. Or install the free plugin, which checks the basics from inside your dashboard.