_noob.tools
My IP
All guides

DMARC step by step: from p=none to p=reject without losing mail

A safe rollout plan for DMARC: collect reports, find every legitimate sender, then tighten the policy in stages so real mail is never rejected.

By noob.tools · · 4 min read

Publishing p=none is easy and protects nothing: spoofed mail that claims your domain is still delivered. Moving to p=reject is what actually stops it, and it is also how you accidentally block your own invoices if you rush. The way through is staged, with data at every step.

What DMARC checks

DMARC does not authenticate mail by itself. It looks at the visible From domain and asks whether SPF or DKIM passed and aligned with it:

  • SPF alignment: the domain in the SMTP envelope sender (Return-Path) matches the From domain.
  • DKIM alignment: the d= domain in the DKIM signature matches the From domain.

Only one of the two has to pass and align. "Align" is relaxed by default, meaning a subdomain of the same organizational domain is accepted: a message sent with Return-Path bounce.example.com aligns with a From of example.com.

The policy tells receivers what to do when neither aligns: none (deliver, report only), quarantine (treat as suspicious, usually spam folder) or reject (refuse).

Step 1: publish p=none with a report address

_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"

The rua tag is the important part: it asks receivers to send you a daily aggregate report. Without it, p=none gives you nothing: no protection and no information. The DMARC & SPF Record Generator builds this record for you.

Step 2: read the reports and list every sender

Aggregate reports are XML files, one per receiver per day, listing the IP addresses that sent mail claiming your domain and whether SPF and DKIM passed for each. Leave p=none for two to four weeks, long enough to catch the senders that only mail monthly, such as billing systems and annual notices.

For each source you will find one of three things:

  1. A service you recognize and that passes: nothing to do.
  2. A service you recognize and that fails: it needs SPF or DKIM set up for your domain. Add the provider's DKIM record (the DKIM Record Generator is for keys you create yourself) or include it in SPF.
  3. A source you do not recognize: that is spoofing or a forgotten system. Investigate before you reject.

You can inspect one real message at any time with the Email Authentication Header Analyzer: paste the raw headers and read the SPF, DKIM and DMARC results the receiver recorded.

Step 3: make everything pass and align

Aim for DKIM on every sender, because SPF breaks whenever mail is forwarded while a DKIM signature survives. Check that each legitimate source shows a pass for at least one mechanism and that it aligns. A very common trap is a sender whose SPF passes for its own domain (so the raw result says pass), but which does not align with your From domain. Alignment is what DMARC cares about.

Step 4: tighten gradually

Move in small steps and watch the reports after each one:

p=quarantine; pct=10; rua=mailto:dmarc-reports@example.com
p=quarantine; pct=50; rua=mailto:dmarc-reports@example.com
p=quarantine; rua=mailto:dmarc-reports@example.com
p=reject; pct=25; rua=mailto:dmarc-reports@example.com
p=reject; rua=mailto:dmarc-reports@example.com

pct applies the policy to that percentage of failing mail and treats the rest with the next weaker policy, so a mistake affects only a slice of your mail. Stay at each step for at least a week, and go back one step if the reports show legitimate mail failing.

Subdomains

Subdomains inherit the policy unless you set sp=. A domain that sends no mail at all can safely go straight to p=reject, which is a free way to stop attackers from using it. Note that subdomains you have not checked will fall under your main policy, so include them in step 2.

Checking your setup

Look at what a domain publishes with the Email Security Audit, and test a real message with the header analyzer.

Try it yourselfDMARC & SPF Record GeneratorCreate secure email policies.

Checklist

  1. Publish p=none with rua.
  2. Collect reports for two to four weeks and list every sender.
  3. Give every sender DKIM (or SPF) that aligns with your From domain.
  4. Move to quarantine and then reject in stages with pct, watching reports each time.
  5. Add p=reject early on domains and subdomains that never send mail.

Tools used in this guide