DMARC (Domain-based Message Authentication, Reporting, and Conformance) is an email authentication protocol that defines how receiving mail servers handle messages that fail SPF and DKIM checks using a domain-level policy. Built on top of existing authentication standards, it prevents unauthorized senders from forging your domain name in phishing and email spoofing campaigns. It also introduces a reporting mechanism that gives administrators visibility into who is sending email on behalf of their domain.
How it works
DMARC operates through a DNS TXT record published under the _dmarc subdomain of your domain. When an email arrives at a receiving server, the server checks the message against your domain's SPF and DKIM records and verifies identifier alignment—confirming that the domain in the visible From header matches the domain validated by SPF or DKIM.
If a message fails both checks or lacks proper alignment, the receiving server applies the policy specified in your DMARC record's p tag:
none: Collects monitoring data and sends reports without affecting email delivery;quarantine: Marks unauthenticated messages as suspicious and routes them to the spam or junk folder;reject: Instructs the receiving server to block and drop failing messages entirely at the SMTP level.
Receiving servers also send XML aggregate reports (rua) and forensic failure reports (ruf) back to the addresses listed in your record. Reviewing these reports lets administrators verify legitimate third-party senders—such as marketing platforms or ticketing systems—before tightening enforcement.
Example
A typical DMARC configuration is added as a DNS TXT record at _dmarc.example.com. The following record instructs receiving servers to quarantine failing messages, applies the policy to 100 percent of traffic, and sends daily aggregate reports to a dedicated mailbox:
_dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; pct=100; rua=mailto:[email protected]; adkim=r; aspf=r"
In this snippet, v=DMARC1 identifies the protocol version, while adkim=r and aspf=r specify relaxed alignment, allowing subdomains to pass validation under the organizational domain.
What matters when choosing a server or hosting
When configuring mail servers or selecting a DNS and email hosting provider, check how easily you can manage DNS zones and automated key rotation. Providers with API-driven DNS management simplify updating TXT records when onboarding new mail services. Additionally, ensure your outbound mail server or transactional email relay supports custom DKIM signing and envelope-from customization, as shared hosting mail relays often default to the host's domain and break DMARC alignment.
Because DMARC aggregate reports arrive as compressed XML attachments that are difficult to read manually, consider whether your mail infrastructure or third-party monitoring tool can parse and visualize these reports automatically.
Common mistakes
- Jumping straight to
p=reject: Enforcing strict rejection without first runningp=noneoften blocks legitimate automated emails from CRMs, billing tools, or web forms that have not yet been configured with DKIM or SPF. - Forgetting third-party senders: Authorizing a server in SPF alone is not enough if the service sends mail with an unaligned return-path address; those services must also sign messages with a domain-aligned DKIM key.
- Ignoring aggregate reports: Leaving a domain on
p=nonepermanently without reviewingruareports provides zero protection against spoofing and business email compromise. - Publishing multiple DMARC records: Having more than one
v=DMARC1TXTrecord on the same_dmarchost causes receiving servers to ignore the policy altogether.
FAQ
Does DMARC replace SPF and DKIM?
No. DMARC depends on SPF and DKIM to validate the origin and integrity of an email. It ties both protocols to the visible From address and tells receiving servers what action to take when authentication fails.
How long should I stay on p=none before enforcing a policy?
Keep p=none active until your aggregate reports account for all legitimate sending sources across a full business cycle, including monthly invoicing or periodic newsletters. Once all valid sources pass alignment, step up to p=quarantine and eventually p=reject.
Does DMARC protect subdomains automatically?
Yes, unless overridden. By default, a root domain's p tag applies to all subdomains, though you can define a separate subdomain policy using the sp tag (for example, sp=reject) to block spoofing on subdomains that do not send email.