DMARC Record Generator
Build a valid DMARC record for your domain: policy, reports, alignment and test mode, checked against RFC 9989. Free; runs in your browser, nothing is sent.
Updated 2026-10-20
Nothing you type here is sent anywhere: the record is built in this browser tab. The link copies your settings into the address fragment, which never leaves your browser. Copy link to this result
Result
What is a DMARC record generator?
DNSVerdict's DMARC record generator builds the TXT record you publish at _dmarc.yourdomain.com. You choose a policy (none, quarantine or reject), where reports go and how strict alignment is. It follows RFC 9989, which replaced RFC 7489, never writes the removed pct tag, and checks the result with the same parser as the DMARC checker. Nothing leaves your browser.
What this checks
A DMARC record tells receiving mail servers what to do with a message that claims to be from your domain but fails SPF and DKIM alignment, and where to send reports about it. It is one TXT record at the name _dmarc plus your domain, for example _dmarc.example.com. This generator shows that host name and the record value, each with a copy button, and re-checks the value with the parser behind the DMARC checker, so a record it shows has zero syntax errors.
What the options do. The policy p is none (monitor only, mail is still delivered), quarantine (failing mail goes to spam) or reject (failing mail is refused). The sp tag sets a different policy for subdomains that exist and np for subdomains that do not exist; leave them as same as p unless you need a difference. The rua tag lists mailbox addresses that receive daily aggregate XML reports, and ruf lists addresses for per-message failure reports, which can contain message content and are sent by few receivers. The adkim and aspf tags choose relaxed alignment (a subdomain of your domain matches) or strict (exact match). The fo tag chooses when failure reports are produced and is ignored without ruf. The t=y flag is test mode: receivers apply one level less strict, for example quarantine instead of reject, while you collect reports (RFC 9989 §4.7).
What is deliberately missing. The pct tag is not offered because RFC 9989 removed it (Appendix A.6): in practice only 0 and 100 behaved reliably, so the new t tag replaces the useful part. The rf and ri tags were removed too. The psd tag is not offered either: psd=y is only for operators of public suffixes such as country-code registries, and the default (psd=u) is right for almost every other domain. Older records that still contain pct are accepted by the checker, with a warning.
External report addresses. If a rua or ruf address belongs to another domain, for example a DMARC monitoring service, that domain must publish a TXT record named yourdomain.com._report._dmarc.theirdomain with the value v=DMARC1; otherwise receivers will not send the reports (RFC 9990 §4; RFC 9989 Appendix B.2.3). The generator warns when an address is outside your domain. Your report provider can tell you the exact record, and the DMARC checker verifies it after you publish.
How to roll out. Publish p=none with a rua address first, read the reports for two to four weeks, fix every legitimate sender that fails alignment, then move to quarantine and finally reject. Publish exactly one DMARC record: receivers discard everything when they find two. After publishing, use the live check link below the result to confirm the record is visible. The guides on setting up DMARC, moving from none to reject and reading DMARC reports go through each step. To see how DMARC fits with SPF and DKIM, run the email deliverability test.
If it fails
- A red problem line: fix the value it names (usually a mistyped address or an unknown option); the record shown leaves the bad part out until you do.
- A warning about p=none: that is expected for a first record. It means spoofed mail is still delivered, so plan the move to quarantine and reject.
- Reports never arrive: check the rua address for typos, and for an address on another domain make sure that domain published the authorisation record described above.
- The live check shows a different record or two records: edit the existing record in your DNS host instead of adding a new one; see multiple DMARC records.
- Legitimate mail fails DMARC after you tighten the policy: look at DMARC alignment failures and relax adkim and aspf or fix the sending service.
FAQ
Which DMARC policy should I start with?
Start with p=none and a rua address. This delivers all mail as before while you receive reports showing every system that sends as your domain. Fix the legitimate senders that fail, then move to quarantine and later reject. Jumping straight to reject risks blocking real mail from forgotten services such as invoicing or newsletter tools.
Why does the generator not offer the pct tag?
RFC 9989, which replaced RFC 7489, removed pct (Appendix A.6) because receivers handled values between 0 and 100 inconsistently. Receivers following the new standard ignore it and apply the full policy. To test a stricter policy safely, set t=y, which asks receivers to apply one level less strict while you watch reports.
Where do I publish the generated record?
Create a TXT record at the host name shown, which is _dmarc followed by your domain. Many DNS control panels want only the part before your domain, so enter _dmarc. Paste the value exactly as shown, without extra quotes unless your DNS host asks for them. Keep only one DMARC record per name.
Does the record need anything else for outside report addresses?
Yes. If rua or ruf points to a mailbox on another domain, that domain must publish a TXT record named yourdomain.com._report._dmarc.theirdomain containing v=DMARC1, as RFC 9990 describes. Without it receivers skip the address. Addresses on your own domain or its subdomains need nothing extra.