Skip to content

DMARC record generator

Choose a policy and a report address and the generator writes a valid DMARC record to add as a TXT record on _dmarc, with every tag explained and common mistakes flagged.

Policy (p)

What should receivers do with a message that fails DMARC?

Advanced settings
TXT
v=DMARC1; p=none
Name (host)
_dmarc
Type
TXT
      Check the domain's current DMARC record

      This tool runs in your browser. We don't store what you type and we use no trackers.

      How to use it and read the results

      How to use the generator

      1. Enter the domain to see the full record name, such as _dmarc.example.com.
      2. Keep the policy at none and enter a mailbox for reports. A dedicated one like dmarc@ is best, since reports arrive daily.
      3. Copy the record into your DNS editor as a TXT record on the name _dmarc (not on @).
      4. Watch the reports for two to four weeks and fix every service that sends as you and fails SPF or DKIM.
      5. Move to quarantine, then to reject once the reports are clean.

      A safe rollout, as an example

      Three common stages for a domain called example.com; move to the next one each time the reports come back clean:

      v=DMARC1; p=none; rua=mailto:[email protected]
      v=DMARC1; p=quarantine; pct=25; rua=mailto:[email protected]
      v=DMARC1; p=reject; rua=mailto:[email protected]

      The first stage only gathers data, the second sends a quarter of failing mail to spam, and the third refuses every message that spoofs your domain.

      What the other tags mean

      • rua: where daily aggregate reports go. If it's on another domain, that domain must publish an authorization record; the generator shows its name.
      • sp: the policy for subdomains. Leave it out and subdomains follow the main policy.
      • pct: apply the policy to only part of your mail, handy when easing into quarantine.
      • adkim and aspf: relaxed alignment accepts a subdomain like mail.example.com for example.com; strict requires an exact match.

      Common mistakes

      • Starting at reject: real mail from your invoicing system or newsletter tool can bounce because you forgot it in SPF.
      • DMARC without working SPF and DKIM: the policy relies on them, so mail fails. See fixing DMARC fail and build SPF with the SPF generator.
      • More than one DMARC record: receivers ignore all of them. Keep one.
      • A flooded inbox: reports arrive daily from every mail provider, so give them their own mailbox instead of your main one.

      For the full picture, read what DMARC is and the SPF, DKIM and DMARC guide.

      FAQ

      Is a DMARC record required?

      Not for every domain, but since 2024 Gmail and Yahoo require at least p=none from anyone sending them more than 5,000 messages a day. It helps any domain because it stops others spoofing it.

      What's the difference between p=quarantine and p=reject?

      quarantine asks receivers to put failing mail in spam; reject asks them to refuse it outright. Move to reject once your reports show all your real mail passing.

      How do I read rua reports?

      They arrive as zipped XML files at the address you set, listing the IPs that sent as your domain and the SPF and DKIM result for each. Open them by hand or use a DMARC report analyser.

      More tools

      Free tools