Generator

DMARC record generator

Choose a policy and where reports should go, and this DMARC generator builds the TXT record for _dmarc.<domain>. The record is validated as you type, and everything runs in your browser.

Start here. Nothing is blocked; you get reports.

After reports show your senders pass.

The goal. Spoofed mail is bounced.

One or more addresses, separated by commas.
Optional. Most large providers never send these.

TXT _dmarc.example.com

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
  • Receivers take no action on mail that fails DMARC and only report it.
  • Subdomains without their own record inherit p=none.
  • DKIM alignment is relaxed, so the d= domain only needs the same organizational domain as From.
  • SPF alignment is relaxed, so the Return-Path domain only needs the same organizational domain as From.
  • Aggregate reports go to dmarc-reports@example.com.
  • Policy is p=none

    Monitoring only. Spoofed mail is still delivered. Move to quarantine and then reject once your reports show all legitimate sources passing.

  • Aggregate reports enabled

Check the published record

How to use the DMARC generator

  1. Enter your domain.
  2. Pick a policy. For a domain that has never had DMARC, use none.
  3. Add an address for aggregate reports. A dedicated mailbox or a DMARC report service works; your personal inbox will fill up with XML.
  4. Leave the advanced options at their defaults unless you know you need them.
  5. Copy the record and publish it as a TXT record on _dmarc.

A rollout that does not break mail

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

Wait for a couple of weeks of aggregate reports. Every source IP that sends as you should show SPF or DKIM passing and aligned. Fix the ones that do not, usually by setting up a custom DKIM domain and return-path with each email service.

v=DMARC1; p=quarantine; pct=0; t=y; rua=mailto:dmarc-reports@example.com
v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com
v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com

Test mode adds t=y and pct=0, so receivers apply the next weaker policy while you watch for problems: t=y for receivers on RFC 9989, pct=0 for those still on RFC 7489. Turn it off once you are confident.

Mistakes the generator avoids

  • Forgetting mailto:. Addresses are prefixed automatically.
  • Tag order. v=DMARC1 comes first and p= second.
  • Redundant tags. Defaults such as adkim=r and aspf=r are left out to keep the record short.
  • fo= without ruf=. The option only appears when you ask for failure reports.

After publishing

Run the DMARC checker to confirm the published record, including whether an outside report address has authorized your domain. Then send a message to a mailbox you can inspect and check the Authentication-Results header for dmarc=pass.

Frequently asked questions

DMARC Lookup
Read a DMARC policy in plain words and check that report addresses accept your reports.
SPF Record Generator
Build an SPF record from your mail providers and see the lookup cost as you go.
DKIM Key Generator
Generate an RSA or Ed25519 DKIM key pair in your browser and get the DNS record.