DMARC record generator

This DMARC record generator builds a TXT record with a policy for messages that fail the DMARC check and the addresses that receive reports. It also shows the record name and the authorization records needed for addresses in another domain.

Generating the record runs in the browser and requires JavaScript. A fixed example is shown.

Generate a record
Optional. With a domain, the full record name is shown, and so is the authorization record needed when a report address belongs to another domain.
Domain policy (p)

The policy sets what the receiving server does with a message that fails the DMARC check. Tighten it gradually:

  • none: messages are accepted as usual and only reports are sent, to make sure every server sending for the domain passes the check.
  • quarantine: failing messages go to the spam folder. Suited to the stage where the reports show legitimate mail passes the check.
  • reject: failing messages are rejected. This is full protection against spoofing; move to it after a period without problems.
Subdomain policy (sp)
Optional. Without a separate policy, subdomains follow the domain policy and the sp tag is left out of the record.
One address per line, with or without mailto:, for example dmarc-reports@example.com. A report size limit may follow the address, for example !10m. Receiving servers send periodic XML reports to these addresses.
DKIM alignment (adkim)
SPF alignment (aspf)
With relaxed alignment (r) the checked domain only needs the same organizational domain as the sender address (From), for example mail.example.com and example.com. With strict alignment (s) the domains must be identical. Relaxed is the default, so when no value is chosen the tag is left out of the record.
Advanced settings
A number from 1 to 100. The default is 100, so the tag is included only for a lower value. A lower value applies the policy to part of the messages during the transition.
The default is 86400 seconds (one day), so the tag is included only for a different value. Most providers send one report a day regardless.
Optional, in the same form as the aggregate report addresses. Many mail providers do not send failure reports at all. Such reports may contain details from the messages, including personal data, so use an address with restricted access.
When to send a failure report (fo)
The tag is included only when a failure report address is set, and only if the choice differs from the default (0).
  1. The TXT record is named _dmarc under the domain. Some control panels need the full name, for example _dmarc.example.com.

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.
Did you know?

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.

Business email

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.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement