Intermediate 2 min read 6 views Updated May 17, 2026

DMARC Configuration Guide: Protect Your Domain from Phishing

Set up a DMARC policy to control what happens to emails that fail SPF and DKIM checks. Essential protection against spoofing and phishing.

DMARC (Domain-based Message Authentication, Reporting, and Conformance) is the final layer of your email authentication system. It builds on SPF and DKIM to tell receiving servers what to do with emails that fail authentication — and sends you reports about what's happening.

Prerequisite: You should have SPF and DKIM set up before adding DMARC. DMARC policies work by enforcing the results of SPF and DKIM checks.

How DMARC Works

When an email arrives, the receiving server checks:

  1. Does it pass SPF? (Is it from an authorized server?)
  2. Does it pass DKIM? (Is the signature valid?)
  3. Does the "From" domain in the email align with the SPF/DKIM domains?

If both SPF and DKIM fail (or don't align), the DMARC policy kicks in — the server can reject, quarantine, or just report the email depending on your policy.

DMARC Policy Options

PolicyWhat HappensWhen to Use
p=noneNo action — just collect reportsStart here. Monitor before enforcing.
p=quarantineFailed emails go to spam/junkAfter reviewing none-mode reports
p=rejectFailed emails are rejected outrightFull protection — use when confident

Creating Your DMARC Record

DMARC is a TXT record added to your DNS with the host name _dmarc.yourdomain.com.

Start with a monitoring-only policy:

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

What each part means:

  • v=DMARC1 — identifies this as a DMARC record
  • p=none — take no action (monitoring only)
  • rua=mailto:[email protected] — send aggregate reports to this address

Step-by-Step: Adding DMARC to Your DNS

  1. Log in to your DNS management panel.
  2. Add a new TXT record:
  3. Save and wait for DNS propagation (usually 1–2 hours).
  4. Check your email for DMARC reports after a few days.
  5. Once you're confident your legitimate emails all pass, upgrade to p=quarantine then p=reject.
Read your DMARC reports: They arrive as XML attachments. Use a free DMARC report analyzer (like dmarcian.com or mxtoolbox.com) to read them in a human-friendly format.
A
Administrator
Updated May 17, 2026