DMARC Record Generator
Choose a policy and where reports go, and get a ready-to-paste DMARC record, with a safe path from monitoring to full protection.
- Live DNS lookup
- Results in seconds
- No sign-up
- Free
Started from github.com’s current record. Change it below; publishing replaces the old one.
Advanced options (most domains don’t need these)
Your DMARC record
v=DMARC1; p=quarantine; sp=reject; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1
- Type
- TXT
- Host / name
- _dmarc (_dmarc.github.com)
- TTL
- Auto, or 1 hour
-
Note:Few providers send failure reports
Gmail and Microsoft don’t send ruf reports, and those that do may include parts of real messages. Aggregate reports (rua) are what most people need.
-
OK:Ready to publish
Valid syntax, with reports going to a valid address.
Advertisement
How to publish your DMARC record
- Make sure SPF and DKIM are set up first: DMARC passes only when one of them passes for your From domain. Check with the SPF checker and the DKIM checker.
- In your DNS provider’s panel, add a TXT record with host _dmarc (some panels want
_dmarc.yourdomain.com) and the generated text as the value. If a DMARC record already exists, edit it instead: two make receivers ignore both. - Wait a few minutes, then check it with the DMARC checker.
The safe path to p=reject
- Monitor with
p=noneand reports for two to four weeks. - Fix every legitimate service that fails: add it to SPF, or set up DKIM for it with your domain.
- Move to
p=quarantineat 25%, then 100%, watching the reports at each step. - Finish at
p=reject.
The full walk-through, with what to look for in reports at each stage: moving DMARC from p=none to p=reject.
Why it matters now
Gmail, Yahoo and Microsoft require a DMARC record from anyone sending in bulk, and a domain without one is easy to impersonate. See what the big mailbox providers require.
Frequently asked questions
How do I create a DMARC record?
Choose a policy (start with none), add an address for aggregate reports, and copy the generated record. Add it as a TXT record with the host _dmarc in your DNS provider’s panel. SPF and DKIM should already be set up, because DMARC passes only when one of them passes and matches your From domain.
Which policy should I start with?
p=none with a report address. It blocks nothing, but the reports show every service sending as your domain. Fix the ones that fail, then move to quarantine (25% at first, then 100%) and finally reject. Use the “next step” button to step up safely.
Where do DMARC reports go, and how do I read them?
To the rua address, as XML files sent daily by Gmail, Microsoft, Yahoo and other receivers. They’re hard to read by hand, so most people send them to a free or paid DMARC report service, which shows them as charts. You can also use a mailbox of your own.
Do I need ruf failure reports?
Usually not. Gmail and Microsoft don’t send them, and those that do may include parts of real messages. Aggregate (rua) reports are what you need to move to enforcement.
What are adkim and aspf?
How closely the domain checked by DKIM or SPF must match the From address. Relaxed (the default) accepts subdomains, so mail from news.example.com counts for example.com. Strict needs an exact match and breaks many setups, so leave them relaxed unless you know you need strict.
Is pct still supported?
pct= is part of DMARC as published in RFC 7489 and receivers honour it. The coming revision of DMARC replaces it with a simpler testing flag, so treat pct as a short-term ramp: step up to 100% within a few weeks.
Did this tool do what you needed?
Related tools
All toolsDMARC Record Checker
Read a domain’s DMARC policy in plain words and see what to change before tightening it.
SPF Record Generator
Pick the services that send your email and get a ready-to-paste SPF record, lookups counted.
Email Domain Health Check
SPF, DKIM, DMARC and MX checked together, with a score and a list of fixes.