Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

DMARC p=none is not protection: a safe path to quarantine and reject

Many domains publish v=DMARC1; p=none and stop there. That record asks receivers to do nothing with mail that fails authentication. Anyone can still send mail as your domain. p=none is a monitoring mode, meant to last we

Many domains publish v=DMARC1; p=none and stop there. That record asks receivers to do nothing with mail that fails authentication. Anyone can still send mail as your domain. p=none is a monitoring mode, meant to last weeks, not years.

Here is a path to enforcement that does not break your legitimate mail.

1. Collect reports first

Add a reporting address to your record:

v=DMARC1; p=none; rua=mailto:[email protected]

Receivers such as Gmail and Microsoft then send daily aggregate reports (XML). They list every source that sent mail as your domain, and whether SPF and DKIM passed and aligned.

2. Find every legitimate sender

Read 2 to 4 weeks of reports. You will usually find senders nobody remembered: the invoicing tool, the helpdesk, the CRM, a website contact form, a printer that emails scans.

For each one, set up DKIM signing with your domain (preferred) or add it to SPF. Remember that DMARC needs alignment: the domain that passes SPF or DKIM must match your From domain.

3. Move to quarantine, gradually

v=DMARC1; p=quarantine; pct=25; rua=mailto:[email protected]

pct=25 applies the policy to a quarter of failing mail. Watch the reports and any bounce complaints, then raise it to 50 and 100.

4. Then reject

v=DMARC1; p=reject; rua=mailto:[email protected]

Spoofed mail is now refused outright.

Common mistakes

  • Forgetting subdomains. Without an sp= tag, subdomains inherit p=. That is usually what you want, but check it.
  • Two DMARC records. Receivers then ignore DMARC entirely.
  • Jumping to reject on day one. You will block your own invoices.
  • Never reading the reports. Without reports, p=none teaches you nothing.

Check where you stand

A free check, with no signup, shows your current policy and its tags, and tells you whether SPF and DKIM are in place:
https://attackscout.com/en/tools/dmarc-check

Stuck on a report you cannot read? Ask in the comments.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.