Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · SEO and webmaster

DMARC record generator

Choose what receivers should do with mail that fails the checks and where reports go. The generator writes the TXT line under RFC 9989, the standard of May 2026, for example v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com, with the name to publish it at.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

What should receivers do with mail that fails DMARC?
Test mode
One or more email addresses, separated by commas or lines. The example address is for illustration: use your own.
When does the failure report fire (fo)? Needs a ruf address
How closely must the domains match?
Only used to show the record's name and to spot report addresses on other domains.

Runs in your browser. Nothing you type is sent anywhere, and no DNS lookup is made.

Result

Your DMARC recordOne TXT record, ready to copy

  • p=none
  • 3 tags
  • 54 characters
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
Where to publish it
Record type
TXT
Name
_dmarc
Value
the line above, exactly as shown
What to know
  • Note p=none asks receivers to take no action on failing mail. RFC 9989 appendix B.2.1 uses it as the monitoring-only record: reports show what a stronger policy would affect before you ask for it.
  • Note DMARC passes when SPF or DKIM passes for a domain that lines up with the From domain, so set up at least one of them, and preferably both, before you publish. RFC 9989 section 5.1.7 says it can take many months of reports before enforcement is safe.

How to use the DMARC Record Generator

  1. Pick a policy under What should receivers do with mail that fails DMARC? Start with none if the domain has never had DMARC.
  2. Type the address that should receive daily reports in rua. Add subdomain, test mode, failure-report and strictness options only if you need them.
  3. Type your domain at the bottom to see the exact name to publish at, and read the notes under the record.
  4. Press Copy record and add it as a TXT record. Then look it up with the DMARC checker.

How do I create a DMARC record?

A DMARC record is one line of text made of tag=value pairs separated by semicolons, starting with v=DMARC1. The generator writes it from your choices. With the defaults on this page it produces v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com, which is 54 characters. RFC 9989, the DMARC standard of May 2026, defines the format and replaced RFC 7489.

The line is published as a TXT record at a special name: _dmarc placed in front of your domain, so _dmarc.example.com for example.com. Type your domain into the optional box and the generator shows that exact name.

The record only tells receivers what you want. A message passes DMARC when at least one of SPF and DKIM succeeds for a domain that lines up with the visible From address. Set up SPF and DKIM first. The SPF record generator covers the first of the two. RFC 9989 section 5.1.7 adds that it can take many months of reports before a domain owner can be sure that all legitimate mail passes.

Which DMARC policy should I start with?

Start with p=none when the domain has no DMARC record yet. RFC 9989 appendix B.2.1 shows exactly this as its monitoring-only example: receivers do not change how they treat failing mail, and the reports show which messages a stronger policy would affect. It protects nothing by itself, but it tells you what is sending as your domain.

quarantine is the middle step: failing mail is to be handled with suspicion, which often means the spam folder. reject is the firm step: such mail is to be turned away. Both can hurt legitimate mail from a service you forgot to set up, which is why the generator warns before you pick either.

Older guides use the pct tag to apply a policy to part of the failing mail first. RFC 9989 removed it, and the generator never writes it. Its replacement is test mode. Adding t=y tells a receiver to hold back one notch from the stated policy instead of applying it in full. Appendix B.2.5 of the RFC shows quarantine published with t=y while a setup is being tested, and reject only after enough reports show that legitimate mail passes.

The RFC also warns about reject. Section 7.4 says domains whose users might post to mailing lists should not publish it, because forwarded list mail can fail the checks. The table is one example path, built by the generator. It is not a rule: how long to stay at each stage depends on what your reports show.

An example path from watching to refusing
StageWhat receivers are asked to doRecord the generator writes
1. WatchReports onlyv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
2. Test the policyQuarantine is published but receivers act one level milderv=DMARC1; p=quarantine; t=y; rua=mailto:dmarc-reports@example.com
3. Full quarantineFailing mail is treated as suspiciousv=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com
4. StrongestFailing mail is refusedv=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com

What do rua, ruf, sp and the other tags do?

The rua tag lists where daily summary reports go, as email addresses. The generator adds the mailto: part for you and checks each address. Several addresses are joined with commas. Without a rua address you get no summaries, so the generator warns when it is empty.

The ruf tag asks for reports about single failed messages. Many receivers do not send these, and such a report can hold parts of a real message, so use the tag only if you can handle that. The fo tag picks which failures trigger such a report and has no effect without ruf, so the generator leaves it out then and says so.

The sp tag sets a separate policy for subdomains, and adkim and aspf choose strict or relaxed matching. Relaxed is the default: a subdomain of the From domain counts as a match. Strict needs the names to be identical.

Subdomains deserve a thought. When sp is missing, RFC 9989 says the p policy applies to subdomains too, so one tag covers the whole domain. Set sp only when subdomains need different treatment, for example none while a marketing subdomain is still being set up.

The np tag is new in RFC 9989. It covers subdomain names that were never created in DNS, a favorite of forgers because nobody owns them. When it is missing, sp applies to them, and when that is missing too, p does. The generator warns when np or sp is weaker than p.

The generator leaves out a tag when it would only repeat the default (relaxed alignment and fo=0, for example), which keeps the record short. The table shows the tag written for each option.

What each option adds to the record
OptionTagWritten as
Policy for the domainpp=quarantine
A different policy for subdomainsspsp=reject
A policy for made-up subdomainsnpnp=reject
Test modett=y
A second report addressruarua=mailto:dmarc-reports@example.com,mailto:more@example.com
Failure reportsrufruf=mailto:failures@example.com
Strict DKIM matchingadkimadkim=s
Strict SPF matchingaspfaspf=s

A fuller record built from many options reads v=DMARC1; p=quarantine; sp=none; np=reject; t=y; rua=mailto:dmarc-reports@example.com; ruf=mailto:failures@example.com; adkim=s; fo=1. Check any record, including this one, with the DMARC checker.

Where do I publish it, and can reports go to another domain?

Add one TXT record named _dmarc at your DNS provider, with the line as its value. A domain should have only one DMARC record, because RFC 9989 has receivers throw away every record that comes back for a name when there are two or more.

Report addresses on another domain need extra work. RFC 9990 section 4 says the receiver checks for a record at yourdomain._report._dmarc.otherdomain, and ignores the address if it is not there. The generator notes this when you give your domain and a report address on a different one.

After you save the record, look it up with the DMARC checker to confirm that the name and the text are what you meant. DNS answers are kept for as long as the record's time to live allows, so an earlier answer can be shown for a while. If the checker finds no record, the usual causes are a typo in the name, a record placed at the domain root and not beneath _dmarc, or a value that does not begin with v=DMARC1.

The record is composed on your own device. Your entries stay on the page and no DNS query is made, so the tool cannot see a record that is already published.

Use it with

Questions

How do I create a DMARC record?

Choose a policy and a report address, then copy the line the generator writes, such as v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Publish it as a TXT record at _dmarc.yourdomain.

What DMARC policy should I use first?

p=none. RFC 9989 appendix B.2.1 shows it as the monitoring-only record: receivers do not act on failing mail, and the reports show what a stronger policy would affect.

What is the difference between quarantine and reject?

Quarantine is the middle step, where failing mail is handled with suspicion, for example filed as spam. Reject is the firm step, where it is turned away.

Does the generator write the pct tag?

No. RFC 9989 removed pct, so the generator offers test mode (t=y) instead.

Where do I publish a DMARC record?

As a TXT record at the name _dmarc plus your domain, for example _dmarc.example.com.

Does this generator send my data anywhere?

No. The record is composed locally and no request leaves the page. For the same reason it cannot tell whether a record exists already.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.