Performing DMARC Policy Enforcement Rollout
Overview
Domain-based Message Authentication, Reporting and Conformance (DMARC) is the cornerstone of email anti-spoofing protection. A DMARC rollout progresses through three phases: monitoring (p=none), quarantine (p=quarantine), and full enforcement (p=reject). When configured at p=reject, any email that fails both SPF and DKIM checks is outright rejected. Google and Yahoo now require DMARC for bulk senders (5,000+ emails), driving a 65% reduction in unauthenticated messages. The rollout typically takes 3-6 months for safe deployment.
When to Use
- When conducting security assessments that involve performing dmarc policy enforcement rollout
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Administrative access to DNS management for the domain
- Understanding of SPF, DKIM, and DMARC protocols (RFC 7208, 6376, 7489)
- Complete inventory of all legitimate email sending sources
- DMARC reporting analysis tool (EasyDMARC, DMARCLY, Valimail, or dmarcian)
- Email gateway with DMARC enforcement capability
Key Concepts
DMARC Policy Levels
| Policy |
Behavior |
Use Case |
| p=none |
Monitor only, no action on failures |
Discovery phase |
| p=quarantine |
Send failing messages to spam/junk |
Transition phase |
| p=reject |
Block failing messages entirely |
Full enforcement |
DMARC Record Anatomy
v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc-agg@company.com; ruf=mailto:dmarc-forensic@company.com; adkim=r; aspf=r; fo=1
- p: Policy for organizational domain
- sp: Policy for subdomains
- pct: Percentage of messages subject to policy (for gradual rollout)
- rua: Aggregate report destination (daily XML reports)
- ruf: Forensic report destination (per-failure reports)
- adkim: DKIM alignment mode (r=relaxed, s=strict)
- aspf: SPF alignment mode (r=relaxed, s=strict)
- fo: Failure reporting options (0=both fail, 1=either fails)
SPF and DKIM Alignment
- SPF Alignment: The domain in the Return-Path (envelope sender) must match the From header domain
- DKIM Alignment: The d= domain in the DKIM signature must match the From header domain
- Relaxed: Organizational domain match (sub.example.com matches example.com)
- Strict: Exact domain match required
Workflow
Step 1: Inventory All Sending Sources (Week 1-2)
- Audit all systems sending email as your domain (marketing, CRM, ticketing, transactional)
- Document third-party services: Salesforce, Mailchimp, SendGrid, Zendesk, etc.
- Identify internal mail servers, applications, and relay hosts
- Check for shadow IT email sending (departments using unauthorized services)
Step 2: Configure SPF and DKIM (Week 2-4)
- Consolidate SPF record with all legitimate sending IPs and includes
- Ensure SPF record stays under 10 DNS lookup limit
- Generate and publish DKIM keys for each sending source
- Verify DKIM signing works for all outbound mail paths
- Test with MX Toolbox or dmarcian SPF/DKIM validators
Step 3: Deploy DMARC in Monitoring Mode (Week 4-6)
- Publish initial DMARC record:
v=DMARC1; p=none; rua=mailto:dmarc@company.com; fo=1
- Wait 1-2 weeks to collect representative aggregate reports
- Analyze reports to identify unauthorized senders and alignment failures
- Fix SPF/DKIM for all legitimate sources showing failures
- Iterate until all legitimate mail passes DMARC
Step 4: Move to Quarantine with pct Tag (Week 6-12)
- Update to quarantine at 10%:
v=DMARC1; p=quarantine; pct=10; rua=...
- Monitor for false positives (legitimate mail being quarantined)
- Increase pct gradually: 10% -> 25% -> 50% -> 75% -> 100%
- Each increase: wait 1-2 weeks and review reports before advancing
- Fix any remaining alignment issues discovered at each stage
Step 5: Advance to Reject Policy (Week 12-20)
- After stable quarantine at 100%, move to reject at 10%:
v=DMARC1; p=reject; pct=10; rua=...
- Gradually increase pct: 10% -> 25% -> 50% -> 100%
- Monitor closely for legitimate mail being rejected
- Establish emergency rollback procedure (revert to quarantine)
- Apply subdomain policy:
sp=reject for subdomains
Step 6: Ongoing Monitoring and Maintenance
- Continuously monitor DMARC aggregate reports
- Add new sending sources before they start sending
- Review forensic reports for spoofing attempts
- Maintain SPF record as sending infrastructure changes
- Rotate DKIM keys annually
Tools & Resources
- EasyDMARC: DMARC monitoring dashboard with aggregate/forensic report analysis
- DMARCLY: SPF, DKIM, DMARC monitoring with auto-DNS updates
- dmarcian: DMARC deployment and management platform
- Valimail: Automated DMARC enforcement with hosted authentication
- MX Toolbox: DNS record lookup and DMARC validator
- Google Admin Toolbox: DMARC check and diagnostic tools
Validation
- DMARC record published and resolving correctly at _dmarc.domain.com
- All legitimate sending sources pass SPF and/or DKIM alignment
- Aggregate reports show >99% legitimate mail passing DMARC
- Spoofed messages from unauthorized senders are rejected
- No legitimate mail blocked after full p=reject enforcement
- Subdomain policy (sp=) also set to reject
1---
2name: performing-dmarc-policy-enforcement-rollout
3description: Execute a phased DMARC rollout from p=none monitoring through p=quarantine
4 to p=reject enforcement, ensuring all legitimate email sources are authenticated
5 before blocking unauthorized senders.
6domain: cybersecurity
7subdomain: phishing-defense
8tags:
9- dmarc
10- spf
11- dkim
12- email-authentication
13- anti-spoofing
14- phishing
15- dns
16- email-security
17version: '1.0'
18author: mahipal
19license: Apache-2.0
20nist_csf:
21- PR.AT-01
22- DE.CM-09
23- RS.CO-02
24- DE.AE-02
25mitre_attack:
26- T1566
27- T1598
28- T1534
29- T1036
30source: https://github.com/mukul975/Anthropic-Cybersecurity-Skills
31source_commit: 04450304b12645cb2b974ab96d28c0664758a88d
32metadata:
33 source: https://skillmd.com/skills/yanacuti1121/performing-dmarc-policy-enforcement-rollout
34---
35
36# Performing DMARC Policy Enforcement Rollout
37
38## Overview
39Domain-based Message Authentication, Reporting and Conformance (DMARC) is the cornerstone of email anti-spoofing protection. A DMARC rollout progresses through three phases: monitoring (p=none), quarantine (p=quarantine), and full enforcement (p=reject). When configured at p=reject, any email that fails both SPF and DKIM checks is outright rejected. Google and Yahoo now require DMARC for bulk senders (5,000+ emails), driving a 65% reduction in unauthenticated messages. The rollout typically takes 3-6 months for safe deployment.
40
41
42## When to Use
43
44- When conducting security assessments that involve performing dmarc policy enforcement rollout
45- When following incident response procedures for related security events
46- When performing scheduled security testing or auditing activities
47- When validating security controls through hands-on testing
48
49## Prerequisites
50- Administrative access to DNS management for the domain
51- Understanding of SPF, DKIM, and DMARC protocols (RFC 7208, 6376, 7489)
52- Complete inventory of all legitimate email sending sources
53- DMARC reporting analysis tool (EasyDMARC, DMARCLY, Valimail, or dmarcian)
54- Email gateway with DMARC enforcement capability
55
56## Key Concepts
57
58### DMARC Policy Levels
59| Policy | Behavior | Use Case |
60|---|---|---|
61| p=none | Monitor only, no action on failures | Discovery phase |
62| p=quarantine | Send failing messages to spam/junk | Transition phase |
63| p=reject | Block failing messages entirely | Full enforcement |
64
65### DMARC Record Anatomy
66```
67v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc-agg@company.com; ruf=mailto:dmarc-forensic@company.com; adkim=r; aspf=r; fo=1
68```
69- **p**: Policy for organizational domain
70- **sp**: Policy for subdomains
71- **pct**: Percentage of messages subject to policy (for gradual rollout)
72- **rua**: Aggregate report destination (daily XML reports)
73- **ruf**: Forensic report destination (per-failure reports)
74- **adkim**: DKIM alignment mode (r=relaxed, s=strict)
75- **aspf**: SPF alignment mode (r=relaxed, s=strict)
76- **fo**: Failure reporting options (0=both fail, 1=either fails)
77
78### SPF and DKIM Alignment
79- **SPF Alignment**: The domain in the Return-Path (envelope sender) must match the From header domain
80- **DKIM Alignment**: The d= domain in the DKIM signature must match the From header domain
81- **Relaxed**: Organizational domain match (sub.example.com matches example.com)
82- **Strict**: Exact domain match required
83
84## Workflow
85
86### Step 1: Inventory All Sending Sources (Week 1-2)
87- Audit all systems sending email as your domain (marketing, CRM, ticketing, transactional)
88- Document third-party services: Salesforce, Mailchimp, SendGrid, Zendesk, etc.
89- Identify internal mail servers, applications, and relay hosts
90- Check for shadow IT email sending (departments using unauthorized services)
91
92### Step 2: Configure SPF and DKIM (Week 2-4)
93- Consolidate SPF record with all legitimate sending IPs and includes
94- Ensure SPF record stays under 10 DNS lookup limit
95- Generate and publish DKIM keys for each sending source
96- Verify DKIM signing works for all outbound mail paths
97- Test with MX Toolbox or dmarcian SPF/DKIM validators
98
99### Step 3: Deploy DMARC in Monitoring Mode (Week 4-6)
100- Publish initial DMARC record: `v=DMARC1; p=none; rua=mailto:dmarc@company.com; fo=1`
101- Wait 1-2 weeks to collect representative aggregate reports
102- Analyze reports to identify unauthorized senders and alignment failures
103- Fix SPF/DKIM for all legitimate sources showing failures
104- Iterate until all legitimate mail passes DMARC
105
106### Step 4: Move to Quarantine with pct Tag (Week 6-12)
107- Update to quarantine at 10%: `v=DMARC1; p=quarantine; pct=10; rua=...`
108- Monitor for false positives (legitimate mail being quarantined)
109- Increase pct gradually: 10% -> 25% -> 50% -> 75% -> 100%
110- Each increase: wait 1-2 weeks and review reports before advancing
111- Fix any remaining alignment issues discovered at each stage
112
113### Step 5: Advance to Reject Policy (Week 12-20)
114- After stable quarantine at 100%, move to reject at 10%: `v=DMARC1; p=reject; pct=10; rua=...`
115- Gradually increase pct: 10% -> 25% -> 50% -> 100%
116- Monitor closely for legitimate mail being rejected
117- Establish emergency rollback procedure (revert to quarantine)
118- Apply subdomain policy: `sp=reject` for subdomains
119
120### Step 6: Ongoing Monitoring and Maintenance
121- Continuously monitor DMARC aggregate reports
122- Add new sending sources before they start sending
123- Review forensic reports for spoofing attempts
124- Maintain SPF record as sending infrastructure changes
125- Rotate DKIM keys annually
126
127## Tools & Resources
128- **EasyDMARC**: DMARC monitoring dashboard with aggregate/forensic report analysis
129- **DMARCLY**: SPF, DKIM, DMARC monitoring with auto-DNS updates
130- **dmarcian**: DMARC deployment and management platform
131- **Valimail**: Automated DMARC enforcement with hosted authentication
132- **MX Toolbox**: DNS record lookup and DMARC validator
133- **Google Admin Toolbox**: DMARC check and diagnostic tools
134
135## Validation
136- DMARC record published and resolving correctly at _dmarc.domain.com
137- All legitimate sending sources pass SPF and/or DKIM alignment
138- Aggregate reports show >99% legitimate mail passing DMARC
139- Spoofed messages from unauthorized senders are rejected
140- No legitimate mail blocked after full p=reject enforcement
141- Subdomain policy (sp=) also set to reject