DMARC record generator
Generating the record runs in the browser and requires JavaScript. A fixed example is shown.
Everything runs in your browser; nothing is sent or stored.
- Enter your domain in the "Domain" field to see the full record name and the authorization records for report addresses in another domain. Each domain must have only one DMARC record, named _dmarc. If one already exists, update it instead of adding another.
- Choose a domain policy (p) and a subdomain policy (sp): monitoring only, move to spam, or reject.
- Enter the aggregate report addresses (rua), one address per line, and choose relaxed or strict alignment for DKIM and SPF.
- When a report address belongs to another domain, receiving servers send reports to it only if that domain authorizes it with a TXT record whose value is v=DMARC1.
- The authorization record name is the domain that publishes the DMARC record, then _report._dmarc, then the domain of the address, for example example.com._report._dmarc.example.net.
- In the "Advanced settings" section, set the percentage of messages (pct), the interval between reports (ri), and the failure report addresses (ruf).
- The DMARC check relies on SPF and DKIM: a message passes only if at least one of them passed and the domain it checked matches the domain of the sender address (From). So set up an SPF record or DKIM signing, preferably both, before tightening the policy. You can create the SPF record with the SPF record generator.
What is a DMARC record
A DMARC record is a TXT record named _dmarc under the domain, and its value starts with v=DMARC1. The receiving server checks whether the message passed the SPF check or the DKIM check for a domain that aligns with the domain in the sender address (From), the address the recipient sees. When a message fails the check, the receiving server handles it according to the policy in the p tag. Receiving servers also send reports on the check results to the addresses in the rua tag. For a domain without a DMARC record, each receiving server decides on its own how to handle a message that failed the SPF or DKIM check.
Moving gradually to a reject policy
The p=none policy does not change how messages are handled, and it is used to collect reports in the first stage. The reports show which servers and services send mail for the domain, such as an email marketing platform, a CRM system, or a contact form on your website, and whether their messages pass the check. Once every legitimate service is included in the SPF record or sends messages with a DKIM signature of the domain, you can move to p=quarantine, and later to p=reject. During the transition, the pct tag lets you apply the policy to only part of the failing messages.
Aggregate reports
Aggregate reports are sent as compressed XML files by the mail providers that received messages for the domain. Each report lists the IP addresses that sent messages for the domain, the number of messages from each address, and their check results. A domain that sends a lot of mail can receive many reports, so it is best to receive them in a dedicated mailbox or with a DMARC report analysis service.
Example records
v=DMARC1; p=none; rua=mailto:dmarc@example.comThe monitoring stage: messages are accepted as usual, and aggregate reports are sent to the address in the record.v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@example.comA transition stage: a quarter of the failing messages go to the spam folder, and the rest of the failing messages are accepted as usual.v=DMARC1; p=reject; rua=mailto:dmarc@example.comFull protection: failing messages are rejected, and the reports keep coming.v=DMARC1; p=reject; sp=none; rua=mailto:dmarc@example.comRejection on the main domain, and monitoring only on subdomains that have no DMARC record of their own.v=DMARC1; p=rejectA record for a domain that sends no mail at all: messages sent in the name of the domain are rejected, and the record has no report address.example.com._report._dmarc.example.netThe name of the authorization record, with the value v=DMARC1, that lets the reports of example.com be sent to an address in the example.net domain.
With our business email service, a DMARC record for your domain is set up on request, and it tells the recipients' mail servers how to handle messages that failed the check.
DMARC record generator FAQ
Can I set up a DMARC record without SPF and DKIM?
Yes. You can publish a DMARC record without SPF and DKIM, but then no message from the domain passes the DMARC check. That is why, with a quarantine or reject policy, legitimate messages from the domain also go to the spam folder or are rejected. With a none policy, you can publish the record to receive reports even before you set up SPF and DKIM.
Do I need to enter the mailto: prefix in the address fields?
No. You do not need to enter the mailto: prefix in the address fields. The generator adds the prefix to each address in the record, and an address entered with the prefix does not get it twice. When you enter several addresses, they are separated by commas in the record.
Does the DMARC record of a domain also apply to its subdomains?
Yes. The DMARC record of a domain also applies to any subdomain that has no DMARC record of its own. Subdomains follow the policy in the sp tag, and when the record has no sp tag, they follow the policy in the p tag.
When do the first aggregate reports arrive?
The first reports usually arrive a day or two after you publish the record, once receiving servers have read the new record. Most mail providers send one report a day, and a provider sends a report only if it received messages for the domain during the report period.