DMARC record generator
Create a DMARC record from your choices: policy, subdomain policy, report addresses, percentage and alignment. Includes the staged rollout from none to reject.
Optional. Used to show the full name of the record.
Daily summaries of who sent mail as your domain. Several addresses: separate with commas.
Per-message reports. Few receivers send them, and they can hold personal data.
No address for aggregate reports. Without reports you cannot see who sends mail as your domain, or whether your own mail would be blocked. Add one before you tighten the policy.
p=none only collects reports. It does not stop spoofed mail. It is the right first stage, not the last.
Your DMARC record
TXT
_dmarc
v=DMARC1; p=none
Roll it out in three stages
- You are here1. p=none
Publish with a rua address and change nothing else. Read the reports for a few weeks, and fix SPF and DKIM for every service that really sends your mail.
- Stage2. p=quarantine
When your own mail passes, send failing mail to spam. Start with a low pct if you want, and raise it to 100.
- Stage3. p=reject
When nothing legitimate lands in spam, tell receivers to refuse failing mail. Keep reading the reports.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the DMARC record generator
- Choose the policy. Use none for a first record.
- Enter the address that should receive aggregate reports.
- Leave subdomains, percentage and alignment at their defaults unless you have a reason.
- Copy the name and the value and publish them as a TXT record.
- Confirm with the DMARC record checker, and tighten the policy as the reports allow.
About this tool
A DMARC record is one TXT record at _dmarc.yourdomain. It starts with v=DMARC1, states a policy with p, and normally names a mailbox for aggregate reports with rua. This generator builds the value from your choices and leaves out tags that are at their default, so the record stays short and readable.
The policy is rolled out in stages, because switching straight to reject can block your own mail. Start with p=none and a rua address, and read the reports for a few weeks to find every service that sends as your domain. Fix SPF and DKIM for each. Then move to p=quarantine, optionally with a low pct, and finally to p=reject once nothing legitimate fails.
Two settings deserve care. The subdomain policy sp defaults to the main policy; setting it weaker gives attackers any subdomain name to use, including ones that do not exist. Strict alignment breaks mail from services that sign with a subdomain, so relaxed is the right default. If reports go to an address on another domain, that domain has to publish a record accepting them.
Sources
Questions
Create a TXT record with the name _dmarc on your domain and a value such as v=DMARC1; p=none; rua=mailto: followed by your report address. Most DNS editors add the domain to the name for you, so enter only _dmarc.
Until the aggregate reports show that all your legitimate mail passes DMARC, which usually takes a few weeks of normal sending, including monthly jobs such as invoices. Staying on none for good leaves the domain open to spoofing.
pct is the share of failing messages the policy applies to; the rest get the next weaker policy. With p=quarantine and pct=25, a quarter of failing mail goes to spam and the rest is delivered. It is a rollout aid and should end at 100.
You need at least one of them passing and aligned for your mail to pass DMARC, and both for resilience, since forwarding breaks SPF and some gateways break DKIM. You can publish p=none before they are perfect: the reports show what to fix.