On this page
  1. Before you set up DMARC: what you need
  2. Step 1: Check SPF and DKIM at your sending service
  3. Step 2: Check alignment in the Authentication-Results header
  4. Step 3: Publish a DMARC record with p=none and rua
  5. DNS host notes: Cloudflare, Route 53 and GoDaddy
  6. Step 4: Check that the DMARC record is live
  7. Step 5: Monitor DMARC reports at p=none
  8. Step 6: Move DMARC to quarantine and reject
  9. Does your sending service help with DMARC setup?
  10. FAQ

How to Set Up DMARC

To set up DMARC, make sure SPF and DKIM are set up at every service that sends as your domain and that at least one of them passes and aligns, publish a TXT record at _dmarc.yourdomain.com with p=none and a reporting address, read the reports until every legitimate sender passes, and only then move to quarantine and reject.

Written by Relay, the Email Stack Review teamPublished Updated No ads or affiliate links
Choosing a sending service? See the best transactional email services.

Many DMARC guides start at the DNS record. That is step 3. If you send app mail through a service such as SendGrid or Postmark, the work starts earlier, at the service, because DMARC only passes when SPF or DKIM already passes in your own domain's name. This guide follows that order: service first, alignment second, record third, then reports and enforcement.

Key takeaways

  • Do the steps in order: SPF and DKIM at your sending service, alignment check, p=none record with rua, reports, then enforcement.
  • DMARC passes when SPF or DKIM passes with a domain aligned to the From domain (RFC 9989, sections 4.1 and 4.4). Set up both anyway: Gmail and Yahoo ask bulk senders for both.
  • A service can sign and send for you, but only you can publish the DMARC record at your own domain.
  • A starter record is v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. It needs no pct, which RFC 9989 removed.
  • Do not enforce until the reports show every legitimate source passing. The plan is on DMARC policy.

Before you set up DMARC: what you need

Before you set up DMARC you need DNS access for the domain, a list of everything that sends mail as that domain, and one mailbox for reports. Allow time for the list: the surprises in your first reports are almost always a sender nobody wrote down.

  • DNS access to the domain you send from, so you can add TXT and CNAME records.
  • A list of senders: your sending service for app mail, your mailbox provider (Google Workspace or Microsoft 365), marketing tools, a CRM, a support desk.
  • A report mailbox, not your personal inbox. Google says you receive a daily report from each participating email provider (Gmail Help, checked November 2026), and they pile up. A shared mailbox or an analyzer address keeps them out of the way.

Google Workspace and Microsoft 365 admins follow the same steps. Their own setup guides are Google's DMARC help and Microsoft's DMARC guide for Microsoft 365; this page does not repeat them. For what DMARC is and why Gmail, Yahoo and Outlook.com ask bulk senders for at least p=none, see what DMARC is.

Step 1: Check SPF and DKIM at your sending service

Open your sending service's dashboard, add your sending domain, publish the DNS records it shows, and wait until both the DKIM and the SPF or return-path records show as verified. This is the step most DMARC guides skip, and it decides whether anything aligns later.

For each service, confirm three things:

  1. DKIM is published at your domain (a CNAME or TXT record, depending on the service) and shows verified. The signature then carries your domain in d=. How signing works: what is DKIM.
  2. SPF is covered. Some services ask for an include: in your SPF record, others cover SPF through a return-path CNAME. Syntax and the one-record rule: SPF record.
  3. The return path (the envelope sender) is at your domain if the service offers it. Without it, SPF passes for the service's domain, not yours, and does not align.

The records differ per service. The master table on SPF, DKIM and DMARC explained lists SPF, DKIM, return path and DNS record counts for each, from each vendor's own docs. Each review has the setup in more detail: SendGrid, Amazon SES, Mailgun, Postmark, Resend and Mailtrap. If a record does not verify, fix SPF, DKIM and DMARC failures covers the usual causes.

Step 2: Check alignment in the Authentication-Results header

Send a message from each source to a mailbox you control, open its full headers, and read the Authentication-Results header: it shows whether SPF, DKIM and DMARC passed and which domains they checked. In Gmail, open the message, choose More, then Show original (Gmail Help); Google's Messageheader tool can parse a pasted header. The header format is defined in RFC 8601.

Example for example.com (synthetic header, not from a real message):

Authentication-Results: mx.example.net;
  dkim=pass header.d=example.com header.s=s1;
  spf=pass smtp.mailfrom=bounce.example.com;
  dmarc=pass header.from=example.com

Here DKIM signed as example.com and SPF checked bounce.example.com. Both share the organizational domain with the From domain example.com, so both align, and DMARC passes.

Now the failing case, with the same labelling:

Authentication-Results: mx.example.net;
  dkim=pass header.d=sendingservice.example header.s=s1;
  spf=pass smtp.mailfrom=bounce.sendingservice.example;
  dmarc=fail header.from=example.com

Both checks pass, but for the service's domain, so neither aligns and DMARC fails. The fix is a custom DKIM domain or return path at your domain, which is step 1 again.

The rule behind both examples: DMARC passes when SPF or DKIM passes and the domain it authenticated aligns with the From domain. Relaxed alignment, the default, needs the same organizational domain; strict alignment needs an exact match (RFC 9989, section 4.4). One aligned check is enough for DMARC itself, so a message with DKIM aligned and SPF unaligned still passes. Set up both anyway: Google asks bulk senders for SPF, DKIM and DMARC, and Yahoo asks for SPF and DKIM (Google and Yahoo sender guidelines, checked November 2026). The concept in depth: SPF, DKIM and DMARC explained.

Step 3: Publish a DMARC record with p=none and rua

Add one TXT record at the host _dmarc on your domain, starting with v=DMARC1, a policy of p=none and a reporting address in rua. RFC 9989 publishes the policy as a TXT record at the name made by putting _dmarc in front of the domain (section 4.1).

Example for example.com: host _dmarc.example.com, type TXT, value:

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
  • v=DMARC1 identifies the record. It must be the first tag; a record where it is missing or not first is ignored (RFC 9989, section 4.7).
  • p=none asks receivers to take no action on mail that fails DMARC. You see the failures in reports without losing any mail.
  • rua=mailto:… is where receivers send aggregate reports. The address is yours or your analyzer's.

The "settings" people search for are these tags. The full tag list, with examples by goal, is on DMARC record. If the rua address is at a different domain than the one you publish for, that domain must publish an authorisation TXT record at example.com._report._dmarc.<host in your rua address> containing v=DMARC1 (RFC 9990, section 4); ask your analyzer whether it does.

DNS host notes: Cloudflare, Route 53 and GoDaddy

Each DNS host words the form differently; the table lists where the record goes and the main gotcha, from each host's own docs, checked November 2026.

Host Where the record goes Gotcha
Cloudflare Dashboard, DNS Records, Add record, type TXT (Cloudflare docs) TXT content is strings in double quotes; Cloudflare adds quotes if you save without them. Cloudflare recommends DNS only for records that do not serve web traffic (proxy status docs); Resend's docs say CNAME records must not be proxied, and Brevo's say CNAME flattening breaks its DKIM CNAMEs
Amazon Route 53 Hosted zones, choose the zone, Create record (Route 53 docs) Enclose the TXT value in double quotes; a single string holds up to 255 characters, so longer values must be split into strings of 255 or fewer (record types)
GoDaddy Add a TXT record in the domain's DNS settings (GoDaddy help) The field is called Name, not Host, and takes the prefix without the domain name, so the Name is _dmarc. The value is limited to 1,024 characters

A DMARC starter record is far below these limits. They matter later for 2048-bit DKIM keys, which fix SPF, DKIM and DMARC failures covers.

Step 4: Check that the DMARC record is live

Query the TXT record at _dmarc and confirm it returns your record exactly once. From a terminal:

dig TXT _dmarc.example.com +short

A correct answer is the record you published, in quotes:

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

Third-party checkers do the same lookup and parse the tags: MxToolbox's DMARC check and dmarcian's DMARC Inspector are two free ones (named as references, not ranked). Allow for DNS propagation if the record does not appear at once.

Keep one record only. When a receiver finds more than one DMARC record for the same name, it discards all of them (RFC 9989, section 4.10), which leaves you with no policy. If a checker says "no DMARC record found", see fix SPF, DKIM and DMARC failures.

Step 5: Monitor DMARC reports at p=none

While the policy is none, read the aggregate reports and fix every legitimate source that fails, going back to step 1 for each. Gmail sends a daily report, and you get one from each participating provider; Outlook.com sends aggregate reports to the rua address in your record (Gmail Help; Microsoft's sender FAQ, checked November 2026).

What to look for in the reports:

  • Sources that pass and align: your own services, working as intended.
  • Legitimate sources that fail: a tool nobody set up DKIM for, or a service signing as its own domain. Fix them.
  • Unknown sources: mail from IP addresses you do not recognise. Investigate; these are the mail DMARC enforcement exists to stop.

Google's rollout guide suggests starting at none for one week, because one week is usually enough for the daily reports to cover all your mail streams (Google, recommended DMARC rollout, checked November 2026). Mail that goes out less often than that, such as a monthly newsletter, will not show up in a week, so keep watching until it has.

You are ready to enforce when every legitimate source passes and aligns. How to read the XML is on DMARC reports.

Step 6: Move DMARC to quarantine and reject

Change p=none to p=quarantine, check the reports again, and move to p=reject once nothing legitimate is failing; keep reading reports afterwards. This page gives the mechanics only. The reasoning, timeline and what each receiver does with each policy are on DMARC policy.

Example for example.com, at the same host _dmarc.example.com (type TXT). First the quarantine value:

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

Then, when the reports are clean, the reject value:

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

Publish one at a time, never both. Google's and Microsoft's docs (checked November 2026) still describe stepping up with pct, such as p=quarantine; pct=5. RFC 9989 removed pct and added t=y (test mode): a quarantine policy is applied as none and a reject policy as quarantine (section 4.7). A receiver that hasn't implemented t ignores it (unknown tags are ignored, RFC 9989 section 4.7) and applies the full policy, so neither tag replaces reading your reports. Move p one step at a time. The examples here use neither.

Does your sending service help with DMARC setup?

Sending services give you the SPF and DKIM records to publish; the DMARC record itself you publish at your own domain, and what a service offers beyond that varies. The table lists what each service's docs say about DMARC help, in our usual order and without ranking.

Service DMARC help
SendGrid Suggests a p=none record; Valimail partnership
Amazon SES Guide only
Mailgun Guide; aggregate reports via Red Sift on paid plans
Postmark Free weekly DMARC Digests; paid $14/month per domain
Resend Guide + free open-source DMARC Analyzer
Mailtrap Suggests a p=none record with reports to a Mailtrap address
Brevo Adds a p=none record with reports to Brevo
Mailjet Guide only
MailerSend DMARC monitoring tool (30 days free on Starter, then add-on)

From each service's own docs and product pages, checked November 2026. "Not documented" means we didn't find it in the vendor's docs. Postmark's price is from Postmark's DMARC FAQ. A service can sign and send for you, but only you can publish a DMARC record at your own domain. SPF and DKIM setup per service is in the master table, and the services compare in the best transactional email services ranking.

Picking a service for app mail? Compare them in the best transactional email services.

How to set up DMARC: FAQ

How long does it take to set up DMARC?

Publishing the record is one DNS edit, so minutes. Reaching enforcement takes as long as your reports need to show every legitimate sender passing. Google's rollout guide suggests a week at p=none to see representative data, and longer if some of your mail goes out rarely. See steps 5 and 6.

Do I need SPF and DKIM before DMARC?

Yes, set both up first. DMARC passes when either SPF or DKIM passes and aligns with the From domain, so one aligned check is enough for DMARC itself, but Google asks bulk senders for SPF, DKIM and DMARC, and Yahoo asks for SPF and DKIM. See step 2.

What is the best DMARC setting to start with?

Start with p=none and a rua address. Google's DMARC setup help recommends none first, and it lets you see failures without affecting delivery. Move to quarantine and reject only after the reports are clean. The plan is on DMARC policy.

Where do I add the DMARC record?

Add a TXT record at the host _dmarc on your domain, for example _dmarc.example.com. RFC 9989 defines the policy as a TXT record at that name. Your DNS host's form may call the field Name or Host. Tags and examples are on DMARC record.

How do I set up DKIM and DMARC for my sending service?

Do DKIM first, in the service's dashboard: add your sending domain and publish the DNS records it gives you. Then publish DMARC yourself at _dmarc. The service cannot publish it for you. See step 1 and step 3.

Can you explain DMARC in a way a beginner can understand?

DMARC is a DNS record that tells mailbox providers what to do with mail that claims to be from your domain but fails DMARC, and where to send reports about it. It adds no signing of its own. More in what DMARC is.

Do I need a DMARC monitoring tool?

No. Reports are XML files you can read yourself, and a small domain can manage that. A tool saves effort as report volume grows, because it groups sources and shows pass and fail trends. Neutral notes on free and paid analyzers are on DMARC reports.

How do I set up DMARC in Google Workspace or Microsoft 365?

The steps on this page are the same. For the admin-console details, use Google's DMARC help or Microsoft's DMARC guide for Microsoft 365. We don't cover either console here.