DMARC record generator
Choose a policy, where reports should go and how strict alignment should be, and the generator writes the TXT record to publish at _dmarc.<your domain>. Start with p=none and a reporting address, read the reports, then move to quarantine and reject once everything that sends as your domain passes.
A safe rollout
- Monitor.
v=DMARC1; p=none; rua=mailto:[email protected]. Nothing changes for delivery; you start getting daily aggregate reports. - Fix what fails. Use the reports to find senders that fail alignment: set up DKIM with your domain at each provider, or a custom Return-Path.
- Quarantine.
p=quarantine. - Reject.
p=rejectonce reports show only legitimate mail passing.
Adding the record
| Field | Value |
|---|---|
| Type | TXT |
| Name / host | _dmarc (most DNS hosts add your domain; some want _dmarc.example.com) |
| Value | The generated record |
| TTL | Your DNS host's default is fine |
Then confirm it with the DMARC checker. There must be only one DMARC record per name.
Choosing the options
- Subdomain policy (
sp). Leave it out to use the main policy for subdomains. Setsp=rejectif your subdomains never send mail. - Alignment. Relaxed (the default) lets
mail.example.comalign withexample.com, which most transactional setups need. Strict requires an exact match. - Failure reports (
ruf). Optional. Few mailbox providers send them, and they can contain message details.
Privacy
The generator runs entirely in your browser; nothing you type is sent anywhere.
Questions
Where do I put the DMARC record?
As a TXT record named _dmarc on your domain, so the full name is _dmarc.example.com.
What should rua be?
An address you can read, or a DMARC report service's address. Aggregate reports are XML files, so a service or a parser makes them much easier to use.
Will p=reject stop my own emails?
Only ones that fail DMARC. That's why you start with p=none and read the reports first: they show which of your senders still need DKIM or a custom Return-Path.
Related
- DMARC checker: look up and test a DMARC recordFree DMARC checker: look up the _dmarc record for any domain, see its policy, reporting addresses and alignment, and what to fix before quarantine or reject.
- How to read a DMARC report (with an example)A DMARC aggregate report is daily XML from each mailbox provider: one record per sending IP, with counts and SPF/DKIM results. An example, line by line.
- Why DMARC fails, even when SPF or DKIM passesDMARC fails when no SPF or DKIM pass is aligned with the From domain. A pass on your provider's domain doesn't count. The causes and fixes.
- Gmail and Yahoo bulk sender requirements: checklistBulk senders to Gmail and Yahoo need SPF, DKIM, DMARC, From alignment, PTR, a low spam rate and one-click unsubscribe. The checklist and the errors.
- SPF record checker: lookup, 10-lookup limit, errorsFree SPF record checker: look up a domain's SPF record, count its DNS lookups against the limit of 10, spot permerror causes and see which senders it allows.
- SPF, DKIM and DMARC explained, with a working setupSign with DKIM on your domain, align SPF via a custom Return-Path, start DMARC at p=none. The records for Postmark, Mailgun, SendGrid and Resend.