DMARC Record Generator

Build the TXT record that tells mail servers how to treat messages that fail authentication, and where to send reports.

Policy (p)

One or more addresses, separated by commas. A dedicated mailbox is best; reports arrive daily.

Advanced options

Add this TXT record

Type
TXT
Host / Name
_dmarc.example.com
Value
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

Some DNS panels add the domain automatically; if yours does, enter only _dmarc as the host. A domain has one DMARC record: edit the existing one instead of adding another.

What DMARC adds to SPF and DKIM

SPF checks which server sent a message and DKIM checks a cryptographic signature, but neither looks at the From address your recipients actually see. DMARC closes that gap: a message passes only if SPF or DKIM passes for a domain that matches the visible From. On top of that it lets you publish a policy, so receivers know whether to deliver, quarantine or reject mail that fails, and it gives you reports showing every source sending as your domain.

A safe rollout plan

  1. Week 0: make sure SPF and DKIM are set up for every service you send from (staff mail, website, newsletters, invoices, helpdesk).
  2. Weeks 1–4: publish p=none with a rua address. Delivery does not change. Review the daily reports and fix any legitimate source that fails.
  3. Next: move to p=quarantine, optionally with pct=25 and then higher, so only part of the failing mail is affected while you watch for problems.
  4. Finally: p=reject. Spoofed mail using your domain is now refused by receivers that honour DMARC.

Raw aggregate reports are XML files. A free DMARC report viewer or a spreadsheet import makes them easier to read.

Worked example

For example.com, with reports going to a mailbox on the same domain, the starting record is published at _dmarc.example.com with the value v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Once the reports show only your own services, change p=none to p=quarantine, and later to p=reject. Nothing else in the record needs to change.

Adding the record in cPanel

Go to Domains → Zone Editor, choose Manage next to the domain, then Add Record. Pick TXT, enter _dmarc (cPanel completes the domain) and paste the value. Many hosts also have an Email Deliverability page that shows whether SPF and DKIM are valid. The DNS records guide explains TXT records in more detail.

Frequently Asked Questions

DMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS TXT record at _dmarc.yourdomain.com. It tells receiving mail servers what to do when a message claiming to be from your domain fails both SPF and DKIM alignment, and where to send reports about the mail they see using your domain.
Start with p=none and a rua reporting address. p=none changes nothing about delivery; it only turns on reports. Read the reports for a few weeks, fix SPF and DKIM for every legitimate service that sends as your domain, then move to p=quarantine and finally p=reject.
Since February 2024, Google and Yahoo require bulk senders (roughly 5,000 or more messages a day to their users) to publish a DMARC record, with p=none as the minimum, alongside SPF and DKIM. Smaller senders are also expected to authenticate their mail, and a DMARC record is a simple part of that.
rua is the address that receives aggregate reports: daily XML summaries of how many messages each IP sent as your domain and whether they passed. ruf asks for forensic (failure) reports about individual messages; few large providers send them today. Most domains only need rua.
Alignment compares the domain that passed SPF or DKIM with the domain in the visible From address. Relaxed (r, the default) accepts subdomains, so mail.example.com aligns with example.com. Strict (s) requires an exact match. Relaxed suits most organisations.
Check that the record is at _dmarc (not the root), that it starts exactly with v=DMARC1, and that the rua address is written as mailto:you@example.com. If the reporting address is on a different domain, that domain must publish an authorisation record, or receivers will not send reports to it. Reports are usually sent once a day.