DMARC record generator
What is a Dmarc Record Generator?
DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receiving mail servers what to do with email that claims to be from your domain but fails SPF and DKIM checks, and where to send reports about it. It is the main defence against attackers sending phishing emails that spoof your domain, and it is required by Gmail and Yahoo for bulk senders.
How to use it
- Choose the policy:
none,quarantineorreject. - Add an email address for aggregate reports (
rua). - Set optional values such as alignment mode and percentage.
- Publish the TXT record at
_dmarc.yourdomain.com.
Example
Name: _dmarc.example.com
Value: v=DMARC1; p=quarantine; rua=mailto:[email protected]; pct=100; adkim=s; aspf=s
Tags explained
- p: policy for failing mail.
noneonly monitors,quarantinesends to spam,rejectblocks. - rua: where daily aggregate XML reports are sent.
- pct: percentage of failing mail the policy applies to, useful for gradual rollout.
- adkim / aspf: alignment,
rrelaxed (subdomains match) orsstrict. - sp: policy for subdomains.
Safe rollout plan
- Start with
p=noneand collect reports for 2 to 4 weeks. - Identify every legitimate sender (newsletter tools, CRM, helpdesk) and fix their SPF and DKIM.
- Move to
p=quarantine, possibly with a lowpct. - Finish with
p=reject.
Jumping straight to reject can block your own invoices and marketing emails.
Frequently Asked Questions
Where do I publish the DMARC record?
As a TXT record on the _dmarc subdomain, for example _dmarc.example.com.
Which DMARC policy should I start with?
Start with p=none to monitor, then move to quarantine and finally reject once all legitimate senders pass.
What are DMARC aggregate reports?
Daily XML summaries from receiving servers showing which IPs sent mail as your domain and whether they passed SPF and DKIM.
Does DMARC require both SPF and DKIM?
A message passes DMARC if either SPF or DKIM passes and aligns with the From domain, but configuring both is strongly recommended.