schedule 16-min read

How to Set Up a DMARC Record, Step by Step

DMARC AI editorial team · Last updated

How to set up and create a DMARC record: check SPF and DKIM, pick a report address, build the tags, publish the TXT at _dmarc, verify it, then enforce.

01

How do I set up a DMARC record?

To set up a DMARC record, make sure every service that sends as your domain passes SPF or DKIM, choose an address for aggregate reports, then publish one TXT record at _dmarc.example.com such as v=DMARC1; p=none; rua=mailto:dmarc@example.com. Verify it with dig, read the reports for a few weeks, and move the policy to p=quarantine and then p=reject.

This guide is provider-neutral: it works for any DNS host, and it links to the host-specific guides where the clicks differ. For how DMARC (Domain-based Message Authentication, Reporting and Conformance) works as a whole, start with the DMARC guide.

02

Key takeaways

  • A DMARC record is a single TXT record at _dmarc plus your domain. Publish exactly one: if a receiver finds more than one, it discards them all.
  • Prepare first. DMARC passes only when SPF or DKIM passes for a domain that aligns with the visible From address, so inventory every sender before you publish.
  • Start at p=none with a rua= address, move to p=quarantine, then p=reject. You can add t=y to test a step. There is no percentage ramp under RFC 9989.
  • If reports go to a domain other than your own, that domain must publish an authorisation record under _report._dmarc, or receivers will not send them.
  • Verify with dig, nslookup or Resolve-DnsName, and confirm aggregate reports arrive within a few days.
03

What do you need before you create a DMARC record?

You need three things: SPF and DKIM working for every service that sends as your domain, a list of those services, and access to the authoritative DNS for the domain. DMARC builds on SPF and DKIM; it does not replace them. Publishing a record before they work produces failing reports and, at enforcement, lost mail.

Work through this checklist first:

  1. Inventory your senders. List every system that sends mail with your domain in the From address: the mailbox platform (Microsoft 365, Google Workspace), marketing and newsletter tools, CRM, helpdesk, invoicing and finance software, website forms, printers and scanners, and any on-premises relay. Finding every sending source covers methods for this.
  2. Check SPF. One SPF record at the domain apex that authorises the sending services, within the 10 DNS lookup limit. If you have none, follow how to create an SPF record.
  3. Check DKIM. Each sender should sign with a key published under your domain (a custom or branded DKIM domain), not only the provider's default domain. See how to set up DKIM.
  4. Check alignment. DMARC requires the SPF or DKIM domain to match the From domain, relaxed (same organisational domain) by default. DMARC alignment explained has the rules.
  5. Confirm DNS access. Find where the domain's nameservers point. The record goes at the authoritative DNS host, which is not always the registrar.

You do not need every sender perfect before publishing p=none. A monitoring record changes nothing about delivery, and its reports are the best way to find the senders your inventory missed. You do need them right before you enforce.

04

Where should DMARC reports go?

Aggregate reports go to the address in the rua= tag, and that address should be a mailbox or platform that parses XML, not a person's inbox. Receivers send compressed XML files, usually covering one UTC day each, and a busy domain receives many per day. Choose a dedicated address on your own domain or the ingestion address of a reporting platform.

The common patterns:

Pattern Example rua= Authorisation needed?
Mailbox on the same domain mailto:dmarc@example.com No
Mailbox on another domain you own mailto:dmarc@example.org Yes, example.org must authorise example.com
Reporting platform or MSP mailto:reports@reports.provider.example Yes, the provider publishes it
Several destinations mailto:dmarc@example.com,mailto:reports@reports.provider.example Only for the external one

When do you need a _report._dmarc record?

You need one when the rua= or ruf= address sits outside your own organisational domain. RFC 9990 requires the receiver to look up a TXT record at your domain plus _report._dmarc plus the destination domain. If it finds no record starting with v=DMARC1, it must ignore that address and send nothing there.

For reports about example.com sent to example.net, the owner of example.net publishes:

example.com._report._dmarc.example.net.  TXT  "v=DMARC1"

A reporting provider normally publishes this for you, or uses a wildcard (*._report._dmarc.example.net) that accepts reports for any domain. If you use your own second domain, you publish it yourself. The full procedure, with checks and failure symptoms, is in authorising external report destinations.

Should you add failure reports (ruf)?

Usually not on a first record. Failure reports, defined in RFC 9991, are message-level reports that can contain headers and personal data, and not every receiver sends them. Aggregate reports give the sender inventory you need. If you want them later, read DMARC failure reports first.

05

Which tags go in a DMARC record?

A DMARC record needs only v=DMARC1 and a policy, and in practice an rua= address as well. Everything else is optional and has a sensible default. RFC 9989, which replaced RFC 7489 in 2026, defines the current tag set below; v must come first, and tags are separated by semicolons.

Tag What it does Values Default if absent First record?
v Version. Must be the first tag DMARC1 Required Yes
p Policy for the domain none, quarantine, reject Treated as none when rua is valid Yes, none
sp Policy for existing subdomains none, quarantine, reject Uses p Optional
np Policy for non-existent subdomains none, quarantine, reject Uses sp, then p Optional
psd Marks a public suffix domain y, n, u u No, registry operators only
t Test mode: apply one level lower y, n n Optional during rollout
rua Aggregate report destinations comma-separated mailto: URIs No reports Yes
ruf Failure report destinations comma-separated mailto: URIs No reports Usually no
adkim DKIM alignment mode r relaxed, s strict r Leave default
aspf SPF alignment mode r relaxed, s strict r Leave default
fo Failure reporting options 0, 1, d, s 0 Only with ruf

Three tags from RFC 7489 are gone. The percentage tag (pct), the report interval (ri) and the report format (rf) are historic in RFC 9989, and receivers ignore unknown tags. Do not add them to a new record, and remove them from old ones. The new np, psd and t tags explain what replaced the percentage approach.

What does a good first record look like?

For a domain that sends mail, a good first record is a monitoring policy with one report address:

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

For a domain that never sends mail, skip monitoring and publish p=reject straight away, with an SPF record of v=spf1 -all:

v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@example.com

These two cover most first records. For Microsoft 365 with a marketing platform, a bulk mail subdomain, multiple brands or a parked portfolio, take the matching record from DMARC record examples for common setups. If you prefer a form that builds and validates the string, use the DMARC generator or read how to generate a compliant DMARC record.

06

How do you publish the DMARC record in DNS?

Create one TXT record whose host name is _dmarc and whose value is the record string. Most DNS panels append your domain automatically, so the full name becomes _dmarc.example.com. Do not use a CNAME unless you deliberately delegate the record to a provider, and never create a second TXT record at the same name.

The fields in almost every DNS panel:

Field Value
Type TXT
Name / Host _dmarc (some panels want _dmarc.example.com in full)
Value / Content v=DMARC1; p=none; rua=mailto:dmarc@example.com
TTL 3600 seconds is a reasonable default; lower it while you are changing the record

Points that trip people up:

  • The underscore matters. dmarc.example.com without it is just another host name, and receivers will never query it.
  • Watch for doubled domains. Typing _dmarc.example.com into a panel that appends the zone produces _dmarc.example.com.example.com.
  • Quotes. Most panels add the surrounding quotes for you. Pasting your own can leave literal quote characters inside the value.
  • One record only. RFC 9989 says that if a query returns more than one DMARC record, they are all discarded. Edit the existing record instead of adding a new one.
  • Subdomains. A record at _dmarc.mail.example.com overrides the parent policy for that subdomain only.

Where are the provider-specific steps?

The record is the same everywhere; only the panel differs. Use the guide for your DNS host or mail platform:

07

How do you verify that the DMARC record is live?

Query the exact name from a terminal and check that one record comes back with your string. Use whichever tool your system has; all three ask DNS for the TXT record at _dmarc:

dig +short TXT _dmarc.example.com
nslookup -type=TXT _dmarc.example.com
Resolve-DnsName -Name _dmarc.example.com -Type TXT

A correct answer looks like this:

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

Resolve-DnsName is the PowerShell cmdlet documented on Microsoft Learn; dig and nslookup work on Linux and macOS, and nslookup on Windows too. Read the result like this:

What you see What it means What to do
One string starting v=DMARC1 Published correctly Move on to reports
Nothing Not saved, wrong name, or not yet visible Check the host name and the authoritative nameservers; query them directly with dig @ns1.yourdnshost.example
Two strings starting v=DMARC1 Duplicate records, so receivers discard both Delete one, merge the tags into the other
A string not starting v=DMARC1 Invalid; receivers ignore it Move v=DMARC1 to the front

For external report destinations, query the authorisation record too:

dig +short TXT example.com._report._dmarc.example.net

The DMARC checker runs the same lookups and flags syntax errors. To check which record actually covers a subdomain and what receivers applied, see how to check your DMARC policy. For a tag-by-tag reading of an existing record, use what a DMARC record is and how to read it.

08

What should you look for in the first DMARC reports?

Look for every source sending as your domain and whether each passes aligned SPF or DKIM. Large receivers send aggregate reports daily, so the first files usually arrive within one to three days of publishing. Each report lists source IP addresses, message counts, the SPF and DKIM results and the disposition the receiver applied.

Sort what you find into three groups:

  1. Legitimate and passing. Your mailbox platform and properly configured services. Nothing to do.
  2. Legitimate and failing. A service you use that is not yet authorised or not signing with your domain. Fix its SPF or DKIM, then watch it turn to pass in later reports.
  3. Unknown or abusive. Sources you cannot identify. Investigate, and if they are not yours, they are exactly what enforcement will block.

Forwarded mail and mailing lists also appear as failures; that is normal. If no reports arrive within a week, check the rua= spelling, that the mailbox accepts attachments, and any _report._dmarc authorisation. Reading raw XML by hand stops scaling quickly; DMARC aggregate reports explained and how to read DMARC XML reports cover the fields.

09

How do you move from p=none to p=reject?

Raise the policy in two steps, p=none to p=quarantine to p=reject, each only when reports show every legitimate source passing aligned SPF or DKIM. p=none alone blocks nothing: RFC 9989 says it must not change how receivers handle mail. Enforcement is what stops spoofing, and the NCSC calls p=reject on all domains "the best way to prevent spoofing".

A typical sequence for a sending domain:

Stage Record Move on when
Monitor v=DMARC1; p=none; rua=mailto:dmarc@example.com All legitimate sources pass aligned SPF or DKIM over several weeks of reports
Test quarantine (optional) v=DMARC1; p=quarantine; t=y; rua=mailto:dmarc@example.com Reports stay clean; t=y asks receivers to apply none instead
Quarantine v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com No legitimate mail lands in junk
Test reject (optional) v=DMARC1; p=reject; t=y; rua=mailto:dmarc@example.com Receivers apply quarantine while you watch
Reject v=DMARC1; p=reject; rua=mailto:dmarc@example.com Keep monitoring; new senders still appear

The t=y tag is RFC 9989's replacement for partial rollout: it asks receivers to apply the policy one level below the one published, and it does not change reporting. There is no fixed timetable; the evidence in the reports decides. The NCSC guidance on rejecting spoof emails recommends watching reports closely for at least two weeks after moving to reject. How to move from monitoring to enforcement safely covers the gates in detail.

Does p=none meet Google, Yahoo and Microsoft requirements?

Yes, for their bulk sender DMARC rule. Google's email sender guidelines require senders of more than 5,000 messages a day to Gmail to set up DMARC and accept a policy of none, provided mail aligns with SPF or DKIM. Yahoo and Outlook.com set the same floor. It meets the rule without protecting the domain. Is a DMARC record required? sets out who requires what.

10

What are the most common DMARC setup mistakes?

The most common mistakes are publishing two records, putting the record at the wrong name, enforcing before every sender is authenticated, and sending reports to an external domain that has not authorised them. Each one either disables DMARC silently or blocks legitimate mail. The table lists the mistakes we see most and their fixes.

Mistake Symptom Fix
Two DMARC records at _dmarc Receivers discard both; checkers report multiple records Merge into one record
Record at the apex or at dmarc without underscore No record found Move it to _dmarc
v=DMARC1 not first, or DMARC1 misspelled Record ignored Put v=DMARC1; at the start
No rua= Policy published, but no visibility Add a report address
External rua= with no _report._dmarc record No reports arrive Ask the destination to publish the authorisation
Starting at p=reject on a sending domain Invoices, tickets or newsletters bounce Drop to p=none, fix senders, then step up
Staying at p=none indefinitely Spoofing still delivered Plan the move to quarantine and reject
Carrying pct, ri or rf from an old template Ignored under RFC 9989, misleading to readers Remove them; use t=y to test
Strict adkim=s or aspf=s too early Subdomain senders fail alignment Keep relaxed alignment unless you need strict
Personal inbox as rua= Inbox flooded with XML attachments Use a dedicated mailbox or platform

More fixes are in why your DMARC record is not working and common DMARC errors and how to fix them.

11

How should an MSP set up DMARC records across client domains?

Use one standard record template, one reporting destination for every client, and a per-domain stage tracked from p=none to p=reject. Publishing is identical for each client; the difference is scale. A consistent rua= address authorised once by your reporting platform means every new domain reports from day one.

A repeatable onboarding pass:

  1. List every client domain, including parked and defensive registrations.
  2. Query each _dmarc record and flag missing records, duplicates, missing rua= and leftover removed tags.
  3. Publish p=none with your reporting address on sending domains, and p=reject on non-sending ones.
  4. Review reports per domain, fix senders, and record the evidence for each policy change.

DMARC AI is a multi-tenant DMARC platform for MSPs that processes aggregate reports for every client domain in one place. The DMARC onboarding checklist for MSP clients and DMARC for MSPs cover the service side.

12

FAQ

What do I enter as the host name for a DMARC record?

Enter _dmarc in most DNS panels, which append your domain to make _dmarc.example.com. If the panel shows the full name or warns that it will not append the zone, enter _dmarc.example.com instead. Check the result with dig +short TXT _dmarc.example.com; a doubled domain means the panel appended it twice.

Can I have two DMARC records?

No. RFC 9989 says that if a receiver finds more than one DMARC record for a domain, it discards them all and applies no policy. To change settings or add a report address, edit the existing record. To use several report addresses, list them in one rua= tag, separated by commas.

How long does a new DMARC record take to work?

The record is usually visible within minutes of saving, though cached answers can take up to the previous TTL to expire. Receivers apply it to the next message they check after that. The first aggregate reports normally arrive within one to three days, because large receivers send one report per day.

Should I start with p=reject?

Only on a domain that never sends mail. For a sending domain, start at p=none so reports reveal every service using it, fix those services, then move to quarantine and reject. Publishing p=reject first risks rejecting your own invoices, tickets and newsletters from senders you did not know about.

Do subdomains need their own DMARC record?

No. A subdomain without its own record is covered by the organisational domain's record, using sp= if set and p= otherwise, with np= for names that do not exist. Publish a separate record only when a subdomain needs a different policy or report address.

13

Next steps

Setting up a DMARC record is one TXT record and a few weeks of reading reports. Prepare SPF and DKIM, publish p=none with a report address you can process, verify it, and let the reports guide you to p=reject. Check your current record with the DMARC checker, and when the reports start arriving, use the guides above to work through each sender until the domain is fully protected under your email protection programme.

Related articles

Related tools

Ready to Implement?

Get authenticated mail moving in minutes: start free, book a guided demo, or talk to the team about your stack.