How DMARC Works and Why It Matters for Email Security

DMARC (Domain-based Message Authentication, Reporting and Conformance, RFC 7489) lets a domain owner tell receiving mail servers what to do with email that claims to come from their domain but fails authentication. It builds on SPF, which lists servers allowed to send for the domain, and DKIM, which signs messages cryptographically.

Jul 18, 2025 - 12:42
Updated: 
101.4k

Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · Explainer

Cybersecurity Foundations

How DMARC Works and Why It Matters for Email Security

Quick answer: DMARC (Domain-based Message Authentication, Reporting and Conformance, RFC 7489) lets a domain owner tell receiving mail servers what to do with email that claims to come from their domain but fails authentication. It builds on SPF, which lists servers allowed to send for the domain, and DKIM, which signs messages cryptographically. A message passes DMARC if SPF or DKIM passes and the authenticated domain aligns with the visible From address. The domain publishes a policy of none (monitor), quarantine (spam folder) or reject, and receives reports showing who is sending as it. A reject policy stops attackers spoofing your exact domain.

Key takeaways

  • DMARC requires SPF or DKIM to pass and align with the From domain.
  • Start with p=none to collect reports, then move to quarantine and reject.
  • Google and Yahoo require DMARC for bulk senders since 2024.
  • DMARC stops exact-domain spoofing, not lookalike domains.
  • Reports reveal forgotten services sending as your domain.

Table of Contents

How Do SPF, DKIM and DMARC Fit Together?

StandardWhat it checksRFC
SPFIs the sending server authorised for the envelope domain?7208
DKIMIs the message signed by the domain and unchanged?6376
DMARCDoes SPF or DKIM pass and align with the From domain? What to do if not?7489

What Is Alignment?

SPF checks the envelope sender (Return-Path) and DKIM checks the signing domain (d=). Users see the From header. DMARC requires one of those authenticated domains to match the From domain, either exactly (strict) or within the same organisational domain (relaxed). Without alignment, attackers could pass SPF with their own domain while showing yours in From.

What Does a DMARC Record Look Like?

_dmarc.example.com.  TXT  "v=DMARC1; p=reject; rua=mailto:[email protected]; adkim=s; aspf=r; pct=100"
TagMeaning
pPolicy: none, quarantine or reject
ruaWhere to send aggregate reports
adkim, aspfStrict (s) or relaxed (r) alignment
spPolicy for subdomains
pctPercentage of messages the policy applies to

How Do You Roll Out DMARC Safely?

  1. Inventory every service that sends as your domain: mail servers, marketing, CRM, ticketing, payroll.
  2. Publish SPF and set up DKIM signing for each service.
  3. Publish p=none with a reporting address and analyse reports for a few weeks.
  4. Fix legitimate senders that fail.
  5. Move to p=quarantine, then p=reject.
  6. Protect domains that never send email with v=spf1 -all and p=reject.

Since February 2024, Google and Yahoo require bulk senders to have SPF, DKIM and DMARC. US federal agencies were required to adopt DMARC reject under CISA BOD 18-01.

How Do You Check a Domain's Records?

dig +short TXT example.com | grep spf
dig +short TXT _dmarc.example.com
dig +short TXT selector1._domainkey.example.com    # DKIM key (selector varies)

In a received email, look at the Authentication-Results header for spf=pass, dkim=pass and dmarc=pass.

What Doesn't DMARC Stop?

  • Lookalike domains such as examp1e.com.
  • Display-name spoofing from a different domain.
  • Messages from compromised legitimate accounts.

Combine DMARC with user training, lookalike domain monitoring and phishing-resistant MFA. The UK NCSC's email security guidance covers these layers. Related: QR code phishing. WebAsha offers email security training.

References

Frequently Asked Questions

An email authentication standard that tells receivers how to handle mail failing SPF or DKIM alignment for your domain.

DMARC requires SPF or DKIM to pass and align with the visible From domain.

none (monitor only), quarantine (send to spam) and reject (block).

No. Start with p=none, analyse reports, fix legitimate senders, then move to quarantine and reject.

Since February 2024, both require bulk senders to have SPF, DKIM and DMARC.

No. It stops exact-domain spoofing, not lookalike domains or compromised accounts.

Run dig +short TXT _dmarc.example.com and read the p= policy and rua= reporting address.

XML reports from receivers showing which servers send mail as your domain and whether it passes.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.