How to set up DMARC in Google Workspace and Microsoft 365, and roll it out safely
Updated
Short answer: Turn on DKIM in Google Workspace or Microsoft 365, and make sure every tool that sends as you is authenticated. Then add a TXT record at _dmarc.example.com with p=none and a report address. Read the reports for two to four weeks, fix what fails, then move to quarantine and later reject.
This guide is the hands-on part. If you want the background first (what SPF, DKIM and DMARC are, and what Gmail, Yahoo and Outlook check), start with why business emails go to spam.
Every record below uses example.com. Swap in your own domain.
Before you start: DMARC needs a sender that passes and matches
A message passes DMARC when SPF or DKIM passes and the domain that passed matches the domain in the From address your customer sees. That match is called alignment.
- DKIM alignment: the
d=domain in the DKIM signature isexample.com(or, by default, a subdomain likemail.example.com). - SPF alignment: the hidden envelope sender (the bounce address) is on
example.comor a subdomain.
In practice, DKIM is the one to count on. SPF often fails when a message is forwarded, because the forwarding server isn't on your SPF list. A DKIM signature usually survives forwarding as long as nobody changes the message.
Before you add DMARC, have these in place:
- A list of everything that sends as you. Mailboxes, website forms, invoicing, newsletters, CRM, booking, helpdesk, the office scanner.
- One SPF record that covers your mail provider and the tools that need it.
- DKIM turned on in Google Workspace or Microsoft 365 (steps below).
- DKIM set up in each tool that sends with your address in the From line. Look for a help page called "authenticate your domain" or similar.
Google asks you to let SPF and DKIM run for at least 48 hours before turning on DMARC.
Turn on DKIM in Google Workspace
You need a super administrator account. If Gmail was only just turned on for your organization, Google says to wait 24 to 72 hours before you can generate a key.
- In the Google Admin console, go to Menu > Apps > Google Workspace > Gmail, then click Authenticate email.
- In Selected domain, pick your domain and click Generate New Record.
- Choose a 2048-bit key if your DNS host supports it, and 1024 only if it doesn't. Keep the default prefix selector,
google, unless another service already uses it. - Click Generate. Copy the two values Google shows: the host name (
google._domainkey) and the TXT value, which startsv=DKIM1; k=rsa; p=. - Don't click Start authentication yet. At your DNS host, add a TXT record with that host name and value.
- Wait. Google says it can take up to 48 hours for DKIM to start working. The Admin console may keep saying you need to update DNS during that time.
- Back in Authenticate email, click Start authentication. The status should change to "Authenticating email with DKIM".
- Test it: send a message to a Gmail address that isn't yours, open it there, and choose More > Show original. Look for DKIM
passwithexample.com. Google notes you can't verify this by emailing yourself.
If you have more than one domain in Workspace, repeat the steps for each one. Each domain gets its own key.
Turn on DKIM in Microsoft 365
Microsoft is blunt about this: for custom domains, no DKIM signing happens until you set it up. Until then, your mail is signed with your onmicrosoft.com domain, and that signature doesn't align with example.com, so it doesn't help DMARC.
- In the Microsoft Defender portal (security.microsoft.com), go to Email & collaboration > Policies & rules > Threat policies > Email authentication settings, and open the DKIM tab.
- Find your domain. The status will say no DKIM keys yet. Try to switch the toggle to Enabled. An error box appears; click OK. The status changes to CnameMissing.
- Click the domain's row to open its details. Under Publish CNAMEs, copy the two records. They look like this:
selector1._domainkey CNAME selector1-example-com._domainkey.yourcompany.r-v1.dkim.mail.microsoft
selector2._domainkey CNAME selector2-example-com._domainkey.yourcompany.r-v1.dkim.mail.microsoft- At your DNS host, create both CNAME records exactly as shown. Copy them from the portal. The middle part depends on your Microsoft 365 name (the part before
.onmicrosoft.com), and the letter before-v1is assigned by Microsoft. - Microsoft says it takes a few minutes or longer to detect the records. Then go back to the domain's details and turn on Sign messages for this domain with DKIM signatures.
- The status should read Signing DKIM signatures for this domain. Send a test to an outside address and check the headers for DKIM
passwithexample.com.
Repeat for every custom domain or subdomain you send from. Our Google Workspace or Microsoft 365 setup includes DKIM on both platforms.
Add the DMARC record at your DNS host
For your own domain, neither admin console creates the DMARC record. Google says you don't need to do anything in the Admin console. Microsoft says there's no portal for it on custom domains. The record goes at your DNS host: the registrar where you bought the domain, or a service like Cloudflare if your DNS lives there.
Add a TXT record with these fields:
| Field | What to enter |
|---|---|
| Type | TXT |
| Host / Name | _dmarc (some hosts want _dmarc.example.com; others add the domain for you, so check you don't end up with _dmarc.example.com.example.com) |
| Value | v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com |
| TTL | 1 hour is a sensible choice while you're rolling out, so changes take effect quickly |
Send the reports to a mailbox or group set up for them, not to someone's personal inbox. Google and Microsoft both recommend this. Some providers send a report every day, and the files pile up.
If the report address is on a different domain (for example, a reporting service), that other domain has to publish a small record allowing it. Reporting services give you the exact record to add.
DMARC record examples
Copy the shape, not the address. Each domain gets exactly one DMARC record. If a receiver finds two, it discards both, and you have no DMARC at all.
Stage 1, monitoring:
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.comStage 2, quarantine:
v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.comStage 3, reject:
v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.comA domain you own but never send email from:
v=DMARC1; p=reject;The tags that matter in 2026
DMARC was updated in May 2026. The current standard is RFC 9989, with reporting in RFC 9990, and it replaces RFC 7489 from 2015. For a small business, these are the tags worth knowing:
| Tag | What it does | Do you need it? |
|---|---|---|
v=DMARC1 | Marks the record as DMARC. Must come first. | Always |
p= | Your policy: none, quarantine or reject. | Always |
rua= | Where daily summary reports go. | Yes. Without it, no reports. |
sp= | A different policy for subdomains. | Rarely. Subdomains follow p= by default. |
np= | A policy for subdomains that don't exist, like invoices-2026.example.com. | Optional. New in RFC 9989. |
adkim= / aspf= | Strict (s) or relaxed (r) alignment. Relaxed is the default. | Leave at the default unless you have a reason. |
ruf= / fo= | Per-message failure reports, and when to send them. fo is ignored without ruf. | Usually no. Gmail doesn't send failure reports. |
t=y | Test mode: asks receivers to apply one level less than your policy. | Optional. New in RFC 9989. |
What happened to pct?
The old standard had a pct tag for applying your policy to a percentage of failing mail, for example p=quarantine; pct=10. RFC 9989 removed it, because receivers applied anything other than 0 or 100 inconsistently. The rf and ri tags went too.
Google's and Microsoft's own help pages still show pct at the time of writing. A receiver that doesn't know a tag ignores it, so an old pct won't break anything. Just leave it out of new records. The new t=y tag takes over the useful part of pct=0. The standard is only months old, so we wouldn't build a rollout around it yet.
The staged rollout: p=none, then quarantine, then reject
p=none is the safe starting point. It asks receivers to change nothing and send you reports. quarantine asks them to treat failing mail as suspicious, which usually means the spam folder. reject asks them to refuse it, so it never arrives.
The point of the stages is to find every real sender while nothing is blocked yet.
| Stage | Record | How long | Move on when |
|---|---|---|---|
| 0. Prepare | SPF and DKIM only | At least 48 hours | DKIM passes in your test messages |
| 1. Monitor | p=none | 2 to 4 weeks (Google's minimum is one week) | At least two weeks of reports with no legitimate mail failing |
| 2. Quarantine | p=quarantine | About 2 weeks | No complaints of missing mail, and reports still clean |
| 3. Reject | p=reject | Ongoing | Keep reading reports, and recheck whenever you add a tool |
Why longer than Google's week? Some tools only send once a month. If your invoicing run or monthly statements go out on the 1st, a one-week window in the middle of the month will never see them.
Reading the reports
Reports arrive as zipped XML files, usually one a day from each provider that sends them. Each one lists the servers that sent mail as your domain, how many messages, and whether SPF and DKIM passed and aligned.
You're looking for two things:
- A real service that fails. Your invoicing tool, a form, a newsletter. Fix it before you move on.
- Sources you don't recognize. Often that's spoofing, which is exactly what
rejectwill stop. Sometimes it's a tool someone signed up for and never mentioned. Ask around before you assume.
Reading raw XML by hand is slow. Google recommends a third-party service for this, and Microsoft lists DMARC reporting vendors in its partner catalog. Reading them for you is also part of our email deliverability setup.
If something goes wrong
Undoing a stage is one edit: change the TXT value back to the previous policy. Receivers pick it up as their cached copy expires, which is why a short TTL helps during the rollout. Keep a note of each record's old value before you change it.
What breaks, and how to fix it
Your everyday mailboxes almost never cause the trouble, because Workspace or 365 signs them once DKIM is on. The trouble comes from tools that send with your address in the From line.
Website forms
A contact form often sends its notification "from" your address, through the web server. The web server isn't in your SPF and doesn't sign with your DKIM, so the notification fails DMARC. At p=none you won't notice. At reject, the leads stop arriving.
The fix is to send form mail through an authenticated route: your Workspace or 365 account over SMTP, or an email service whose DKIM you've set up for your domain. A website care plan that tests the forms catches this before you tighten the policy.
Invoicing and accounting tools
Some tools send invoices from their own domain and put your address in Reply-To. Those pass DMARC on the tool's domain and aren't affected by your policy. Others let you send from your own address. Then the tool needs to be authenticated for your domain, usually with DKIM records from its settings. If it can't do that, switch it back to sending from its own address.
Newsletters and marketing tools
Most newsletter platforms have a "domain authentication" step that adds DKIM records for your domain. Do it before quarantine. Microsoft also suggests sending bulk mail from a subdomain, such as news.example.com, so a campaign problem doesn't hurt your everyday mail. Each subdomain you send from needs its own SPF and DKIM.
CRM, helpdesk and booking tools
Same pattern as above. If the tool sends as you@example.com, it needs domain authentication. If it sends from its own domain, it's fine. The reports will tell you which is which.
Printers, scanners and old servers
Scan-to-email and old line-of-business software sometimes send straight to the internet as your domain. In Google Workspace, Google's suggestion for senders like these is to route their mail through its SMTP relay service, so it goes out authenticated. Microsoft 365 has its own options for devices and apps that send email. Either way, sort them out before you reach quarantine.
Forwarding and mailing lists
When someone forwards your message, SPF usually fails, but DKIM still passes if the message wasn't changed. Mailing lists that add a footer or change the subject break DKIM too. You can't fix other people's servers, and this is the main reason to lean on DKIM. On the receiving side, Microsoft 365 lets admins mark services that change messages in transit as trusted ARC sealers, so those messages don't fail automatically.
Subdomains and domains you don't use
Your DMARC record covers every subdomain that doesn't have its own record, including subdomains that don't exist. If you send from news.example.com and its tools are authenticated, you don't need a separate record there.
For domains you own but don't use for email, such as old brand names or common typos of your domain, Microsoft recommends a reject record (v=DMARC1; p=reject;) with no DKIM records. In Microsoft 365, that includes your onmicrosoft.com domain if nobody sends from it. You add that one in the Microsoft 365 admin center under Settings > Domains, not at your DNS host.
When to get help
With one mail provider, a website form and a newsletter tool, you can do this yourself in an afternoon, then spend a few weeks watching reports. It gets harder with five tools, nobody sure who set up the old ones, and a policy that has to reach reject without losing an invoice.
That's the work behind our email deliverability setup: reports first, then a stricter policy once every legitimate sender passes. We list what sends as you, set up SPF, DKIM and DMARC, read the reports for a few weeks, fix the tools that fail, and hand over notes on what to do when you add a new tool. Changes go into your domain's DNS with access you provide. Authentication improves delivery, but it can't guarantee inbox placement. We work in English and Spanish, on site in Tampa Bay, Miami and the rest of Florida, and remotely across the US.
Common questions
What's the difference between p=none and p=quarantine?
With p=none, receiving servers deliver mail that fails DMARC as usual and only send you reports. With p=quarantine, they treat failing mail as suspicious, which usually means the spam folder. Start with none, then move to quarantine once every real sender passes.
How long should we stay on p=none?
Google's minimum is a week of reports. We suggest two to four weeks, so tools that send once a month, like invoicing and statements, show up in the reports before you tighten anything.
Do we still need pct= in our DMARC record?
No. The current DMARC standard, RFC 9989 (May 2026), retired the pct tag. Older guides, including some vendor help pages, still show it. Leave it out of new records.
Where do I add the DMARC record, in Google Admin or in Microsoft 365?
Neither. For your own domain, the DMARC record is a TXT record at your DNS host, usually where you bought the domain or a service like Cloudflare. The admin consoles are only where you turn on DKIM.
Will a reject policy stop emails from our website form?
Only if the form sends as your domain without being authenticated. That's what the p=none stage is for: the reports show the form failing, and you fix it before anything is blocked.
Do we need a paid DMARC tool?
No. A mailbox and patience will do for a small domain. But the reports are zipped XML files, and Google and Microsoft both suggest a third-party service to read them if the volume gets large.
