Free tool

DMARC generator

Choose your policy, your report addresses and the alignment: the generator builds the _dmarc TXT record, explains every tag and tells you where to paste it at your provider. Everything is calculated in your browser.

Only used to write the full record name, for example _dmarc.yourcompany.example.

What mailbox providers should do with a message that fails. Start with none.

Optional. Without a value, the p policy also applies to subdomains.

A whole number from 0 to 100. The default, every message, is not written in the record.

One email address per line or separated by commas. Recommended: without it, you will see nothing.

Optional. Very few mailbox providers send these reports, which may contain excerpts of messages.

Relaxed: a subdomain of yours is accepted. Strict: the exact domain.

Relaxed: a subdomain of yours is accepted. Strict: the exact domain.

Everything happens in your browser: nothing is sent or stored.

Your DMARC record

Tip: start with p=none. Read the reports for a few weeks before moving to quarantine, then reject.

TXT record to publish

Type
TXT
Name
_dmarc
v=DMARC1; p=none

  • Warning: Without a rua address you will receive no reports: you will not know who sends in your name.

Well-formed record, ready to publish.

What each tag means

  • v=DMARC1 Protocol version: always DMARC1, and always first.
  • p=none None policy: messages that fail are delivered normally; you only receive the reports.

Missing tags keep their default value: every message concerned, relaxed alignment, subdomain policy same as p.

Where to paste the record

Your interface

Google Workspace does not manage your DNS: the record is published at the company that hosts your DNS zone, most often your registrar. The Google Admin console is only used afterwards to check that your mail is authenticated.

Expected host name: _dmarc (the relative name; if the interface asks for the full name, write _dmarc followed by your domain).

  1. Sign in to the DNS interface of your registrar or DNS host.
  2. Open your domain's DNS zone and add a record of type TXT.
  3. In the name or host field, write _dmarc. In the value field, paste the generated record, without quotes.
  4. Save, wait a few minutes, then test with this site's DMARC checker.

What this generator does

DMARC is the record that tells mailbox providers what to do with an email sent in your name when SPF and DKIM do not confirm it: let it through, put it in spam or reject it. It also lets you receive reports about who sends messages using your domain. This generator assembles the record as you adjust the form: the version and the policy first, then, only if you changed them, the subdomain policy, the share of messages concerned, the report addresses and strict alignment. Tags that keep their default value are left out, so the record stays short and readable. Each tag in the record is explained under the form. Everything happens in your browser: nothing you type is sent to our server or stored.

How to choose your settings

Always start with the none policy: it blocks nothing, it only observes. Add an aggregate report address (rua) and read the reports for two to four weeks to spot every service that legitimately sends in your name: invoicing software, newsletter tool, support desk. Fix their SPF or DKIM, then move to quarantine, and finally to reject once the reports show only legitimate messages. To move gradually, the pct tag limits the policy to a share of messages. Relaxed alignment, the default, accepts a subdomain of yours; strict requires exactly the same domain and breaks legitimate sending more easily. Keep relaxed unless you have a good reason not to.

The most common mistakes

  • Publishing reject straight away without reading a single report: legitimate emails (invoices, newsletters) are then refused and nobody notices.
  • Publishing two TXT records under _dmarc: the standard allows only one, and mailbox providers then ignore both.
  • Writing a report address without mailto: or separating addresses with spaces instead of commas: the reports never arrive.
  • Typing the full name where the interface already adds the domain: the record ends up under _dmarc.yourcompany.example.yourcompany.example and is never read.

Where to publish the record, step by step

The record is published in your domain's DNS zone, at the company that answers DNS queries for it: your registrar, Cloudflare, or Microsoft if it hosts your DNS. Pick your interface under the form: the guide gives the exact place to click and the host name it expects. In every case, create a TXT record named _dmarc with the generated value. Save, wait a few minutes, then test with this site's DMARC checker. If you already send email from this domain, also check SPF and DKIM: DMARC only works if they are correct.

Frequently asked questions

Which DMARC policy should I start with?

None. It changes nothing about how your messages are delivered: it only turns on reports. Major providers recommend it as a starting point, and it is enough to meet their requirements for bulk sending. You then tighten it in stages.

What does the pct tag do?

It limits the policy to a share of the messages that fail, from zero to one hundred percent. It is used to move gradually to quarantine or reject. The latest revision of the standard replaces it with a testing mode, but mailbox providers still read it; it has no effect with the none policy.

What are rua and ruf for?

The rua tag receives aggregate reports every day: compressed files that count messages by sender and by result. The ruf tag asks for detailed reports, one per message, which very few mailbox providers send. Start with rua alone.

What is the difference between relaxed and strict alignment?

With relaxed alignment (r), a message signed or authorised by a subdomain, such as mail.yourcompany.example, still counts for yourcompany.example. With strict (s), the domain must be identical. Relaxed suits almost every case.

How do I know my record is right?

After publishing, test it with this site's DMARC checker: it reads the record as mailbox providers see it and flags errors. The generator itself only checks the form of what you type.