spyc.ai

Free tool

DMARC Record Generator

Build a DMARC TXT record from a policy, reporting addresses and alignment, with a plain-English reading.

How it works

What is the DMARC Record Generator?

The DMARC Record Generator is a free tool that builds the DMARC TXT record for a domain. Choose a policy of none, quarantine or reject, add reporting addresses, and set the subdomain policy, percentage and alignment. It returns the _dmarc record name and value, with a plain-English reading of what the record tells receivers to do.

How to use the DMARC Record Generator

  1. Enter your domain and choose a policy: none, quarantine or reject.
  2. Add an address for aggregate reports so you can see who sends mail as your domain.
  3. Set the subdomain policy, percentage and alignment if the defaults do not suit you.
  4. Copy the name and value into a TXT record at your DNS host.

What is a DMARC record?

DMARC (Domain-based Message Authentication, Reporting and Conformance) is a TXT record at _dmarc.yourdomain.com. It tells receiving mail servers what to do with messages that claim to be from your domain but fail authentication, and where to send reports about them.

A message passes DMARC when it passes SPF or DKIM and the domain that passed lines up with the domain in the From address. That link to the visible From address is what SPF and DKIM lack on their own.

What do p=none, p=quarantine and p=reject mean?

p=none asks receivers to deliver failing mail as usual and just report on it. p=quarantine asks them to treat it as suspicious, which in practice means the spam folder. p=reject asks them to refuse it.

The policy is a request. Receivers generally honour it, but each makes its own final decision. The sp tag sets a separate policy for subdomains; without it they inherit the main one. The tool writes out what your chosen combination means under the record.

What DMARC policy should I start with?

Start with p=none and a reporting address. Read the reports for a few weeks, find every legitimate system sending as your domain, and make each one pass SPF or DKIM with alignment. Then move to quarantine, and to reject once the reports are clean.

The pct tag lets you apply a stricter policy to a share of failing mail while you gain confidence. Going straight to reject without reading reports is how invoices and newsletters disappear. How long each stage takes depends on how many systems send your mail; there is no fixed schedule.

What are DMARC rua and ruf reports?

rua is the address for aggregate reports: XML files, usually daily, listing the IP addresses that sent mail as your domain and how each fared on SPF, DKIM and alignment. They contain no message content. ruf asks for failure reports about individual messages, and many large mailbox providers do not send those, so do not depend on them.

The XML is hard to read by hand, and most people send it to a report-processing service. If the report address is on a different domain, that domain must publish a small authorisation record; the tool shows the exact name when it applies.

What is DMARC alignment?

Alignment is the requirement that the domain authenticated by SPF or DKIM matches the domain in the From address. Relaxed alignment, the default, accepts any subdomain of the same organizational domain: mail signed by mail.example.com aligns with example.com. Strict alignment needs an exact match.

Relaxed suits most domains. The tool leaves default values out of the record, since an omitted tag means the default. Before tightening the policy, make sure the two underlying records exist: the SPF Record Generator and the DKIM Record Generator build them, and the MX Record Checker shows what is published now.

Questions

Where does the DMARC record go?
In a TXT record named _dmarc on your domain, so the full name is _dmarc.yourdomain.com. Publish only one; receivers ignore DMARC when they find two.
Do I need SPF and DKIM before DMARC?
You need at least one of them passing and aligned for your mail to pass DMARC. You can publish p=none first to collect reports, since that policy changes nothing about delivery.
Do Gmail and Yahoo require DMARC?
Since February 2024 both require bulk senders to publish a DMARC record, with a policy of at least p=none, along with SPF and DKIM. Check their current sender guidelines for the details.
What does the ri tag do?
It asks for aggregate reports at an interval in seconds. The default is 86400, one day. Receivers are free to ignore shorter intervals, and most send daily whatever you set.
Is the DMARC Record Generator free?
Yes, with a free spyc.ai account. It runs in your browser, so nothing you type or paste is sent to a server.

Email and DNS Tools

More in Email and DNS Tools

DNS Lookup

See the A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records a domain publishes, with TTLs for its addresses.

Look up DNS

MX Record Checker

List a domain's mail servers by priority with their IPs and likely provider, and see if SPF and DMARC exist.

Check MX records

Email Blacklist Checker

Check a domain's mail server IPs, or one IPv4 address, against five public spam blocklists.

Check blacklists

Ready when you are

Before your next buyer asks AI about you, ask AI about yourself

One check, four engines, about twenty seconds. We show you the answers before we ask for anything.