DMARC Generator
A DMARC record is one line of text — but one wrong tag can block your real mail or leave spoofing wide open. Fill in the form below and the record builds itself live, with each choice explained as you make it. When it looks right, copy it and add it as a TXT record at host _dmarc. Everything happens in your browser: nothing you type is sent anywhere.
How to add it: in your DNS provider, create a TXT record with host _dmarc and paste the record above as the value. It takes effect as soon as the old cached answers expire — usually minutes.
Which policy should you choose?
If this is your first DMARC record, choose p=none. It changes nothing about delivery — receivers deliver everything as before — but they start sending you aggregate reports. Those reports are the map: they list every server sending mail as your domain, and whether each one passes or fails. Without that map, raising enforcement is guesswork, and guesswork blocks real mail.
After one or two weeks of reports, fix what fails: add missing senders to your SPF record or set up DKIM signing for them. Then move to p=quarantine so failures go to spam, watch for another week, and finally move to p=reject. At each step the reports tell you whether anything legitimate is being caught. A domain that sits at p=none forever is no better protected than a domain with no DMARC at all.
What the other settings mean
Subdomain policy (sp): the policy for subdomains such as mail.example.com. If you leave it blank, subdomains inherit the main policy — which is right for most domains. Set it separately only if subdomains send different mail (for example, a subdomain handled by another provider).
Percentage (pct): applies the policy to only that share of failing mail. It is a throttle for cautious rollouts — quarantine at 50% first, then 100%. rua: the address for aggregate reports (daily summaries). This is the most valuable setting; without it you are flying blind. ruf: forensic reports about individual failures — most receivers send few or none, so it is optional. Alignment (adkim/aspf): relaxed (the default) lets a subdomain align with the organisational domain; strict requires an exact match. Strict is stronger; relaxed breaks less.
Adding the record to your DNS
Open your DNS provider (your registrar, Cloudflare, or your hosting panel) and create a TXT record. The host (sometimes called “name”) is _dmarc — just that, not _dmarc.example.com; the provider adds your domain automatically. Paste the generated record as the value. Leave the TTL at the default (usually 3600 or automatic).
Then verify it: use the DMARC checker to read the record back from DNS. If it shows your policy, the record is live. If it shows nothing, wait a few minutes and check again — or check whether your provider added the domain twice (a host of _dmarc.example.com becomes _dmarc.example.com.example.com). After verification, send a test message to a Gmail or Outlook address and inspect its Authentication-Results header for dmarc=pass.
Common generator mistakes
Starting at reject: the single most damaging mistake. Any legitimate sender you forgot — an old CRM, a ticketing system, a device that emails reports — gets blocked silently. Start at none. No rua address: you get no reports, so you never learn what is failing. Always set one, even if it is a free mailbox you check weekly.
Copying a record with the wrong domain in rua: the report address must be able to receive mail, and many receivers require the rua domain to authorise reports for your domain. Use an address on your own domain. Forgetting subdomains: if a subdomain sends mail, it needs its own SPF/DKIM setup, and the DMARC policy applies to it unless sp says otherwise. Check the reports for subdomain traffic you did not expect.
Frequently asked questions
What is a DMARC record?
A DMARC record is a TXT record at _dmarc.yourdomain that tells receiving mail servers what to do when a message fails SPF or DKIM checks: nothing (p=none), send it to spam (p=quarantine), or refuse it (p=reject).
How do I create a DMARC record?
Use the form above: pick a policy, add a rua reporting address, and copy the generated record. Then add it as a TXT record at host _dmarc in your DNS provider. Verify it with the DMARC checker afterwards.
Should I start with p=none, quarantine or reject?
Start with p=none. It only monitors and sends you reports. Fix the legitimate senders that fail, then move to quarantine, then reject. Jumping straight to reject can block real mail.
What is the rua address for?
rua is where receivers send aggregate reports — daily summaries showing who sent mail as your domain and whether each message passed or failed. Without it you cannot see what is happening.
How long does a DMARC record take to work?
The record is live as soon as DNS resolvers pick it up — usually minutes. Reports start arriving within a day. Enforcement (quarantine/reject) applies as soon as receivers see the record.
Do I need DMARC if I already have SPF and DKIM?
Yes. SPF and DKIM check the server and the signature, but only DMARC ties them to the From address and tells receivers to act on failures. Without DMARC, spoofed mail is delivered normally.
Is this DMARC generator free?
Yes. It runs entirely in your browser — nothing is uploaded, there is no account, and there is no limit. The record it builds is yours to use anywhere.