DMARC setup for Google Workspace: step-by-step guide

You’ll publish three records for your domain (SPF, DKIM and DMARC) and then tighten the DMARC policy in stages. The records usually take about an hour, plus a wait of up to 48 hours for DNS. The watching-and-tightening part usually takes a few weeks, because you want the reports to show you every real sender before you block anything.

This guide is for Google Workspace and a custom domain like yourcompany.com. For what each record does, read SPF, DKIM and DMARC: what’s the difference? first. Here we stick to the steps.

The five steps at a glance

Why do this now

Gmail and Yahoo (since February 2024) and Outlook.com (since May 2025) set sender rules. They apply to anyone who sends more than 5,000 messages a day to their users. Gmail and Yahoo require SPF, DKIM and a DMARC record that’s at least p=none. Outlook.com requires SPF and DKIM to pass, and DMARC at least p=none and aligned with SPF or DKIM. Gmail also asks every sender, whatever the volume, to set up SPF or DKIM.

Most small businesses send far less than 5,000 a day. The records still matter. They’re what stops someone sending email as you.

Before you start

You need three things.

  • Super administrator access to Google Workspace. Google’s DKIM steps are written for a super administrator, and Gmail has to be turned on for your organisation.
  • Access to your DNS host, the company where your domain’s DNS is managed (often the same place you bought the domain). Google doesn’t host your SPF, DKIM or DMARC records for you. You publish all three at your DNS host.
  • A list of every service that sends email as you. Your mailboxes, plus your CRM, invoicing tool, newsletter service, helpdesk, website forms, and any scanner or printer that emails. If you skip a sender now, it fails once you enforce.

Set up SPF and DKIM first. Google says to allow 48 hours after that before you publish DMARC.

Step 1: Publish your SPF record

At your DNS host, add one TXT record on your main domain. The host is @ for the root domain (for a subdomain, enter the subdomain name). If you only send from Google Workspace, the value is:

v=spf1 include:_spf.google.com ~all

Some DNS hosts want the value in quotation marks.

If other services send as you, add an include: for each one, inside the same record. Google’s example with Amazon SES looks like this:

v=spf1 include:_spf.google.com include:amazonses.com ~all

(Use your own sender’s include value from its documentation.)

Rules to follow:

  • One SPF record per domain. If you already have one, edit it. Don’t add a second.
  • Keep the number of lookups to 10 or fewer. Each include: counts, and so do includes inside includes.
  • Each subdomain that sends mail needs its own SPF record. So does every other domain you manage.
  • Allow up to 48 hours for it to take effect.

About the ending: Google recommends ~all, which tells receivers to mark mail from unlisted senders as spam. -all is the stricter version, which asks receivers to reject it. Your DMARC policy does the enforcing, so ~all is fine to start.

Step 2: Generate and publish your DKIM key

This one starts in the Google Admin console, then goes to your DNS host, then comes back to the console.

  1. Sign in to the Google Admin console as a super administrator.
  2. Go to Menu, then Apps, then Google Workspace, then Gmail.
  3. Select Authenticate email.
  4. In the Selected domain menu, choose your domain.
  5. Select Generate new record.
  6. Choose your settings. For the key length, pick 2048 if your DNS host supports it, which Google recommends. Otherwise pick 1024. Leave the selector prefix as google unless you already have a DKIM key using that prefix. In that case, enter a different one.
  7. Select Generate. Google shows you a TXT record host name and value.
  8. At your DNS host, add a TXT record with that host name and value. The host name is the selector followed by ._domainkey, so with the default it’s google._domainkey. The value looks like this (yours is much longer, so copy it from the console):
Host:   google._domainkey
Type:   TXT
Value:  v=DKIM1; k=rsa; p=(your long public key)
  1. Wait. Google says it can take up to 48 hours for the record to start working.
  2. Go back to Authenticate email, choose your domain, and select Start authentication. Don’t do this before the DNS record is in place.
  3. When it works, the status changes to Authenticating email with DKIM.

Notes:

  • If you’ve only just turned on Gmail, Google says you must wait 24 to 72 hours before it can give you a DKIM key.
  • The console may keep saying “You must update the DNS records for this domain” for up to 48 hours. If you’ve added the key correctly, you can ignore it.
  • Some DNS hosts limit how long a TXT record can be. If yours won’t take a 2048-bit key, use 1024.
  • Every domain you send from needs its own key from the console.
  • You can’t test DKIM by sending mail to yourself. Send to an outside address, such as a Gmail account, and look at the message headers.

Step 3: Publish DMARC at p=none

Choose where reports go before you publish. Create a dedicated mailbox or a Google Group for them, such as dmarc-reports@yourcompany.com. Google advises against using your own address, because the reports can be a high volume, and large organisations may get hundreds or even thousands a day.

Before you publish, make sure every third-party sender passes SPF and DKIM. Google says that if they don’t, you’ll likely have delivery problems once you enforce. For mail you send through Google’s SMTP relay service, Google tells you to set that up in the Admin console so your mail goes out through Google.

At your DNS host, add a TXT record. There’s nothing to configure in the Admin console for this one.

Host:   _dmarc
Type:   TXT
Value:  v=DMARC1; p=none; rua=mailto:dmarc-reports@yourcompany.com

p=none means “watch, don’t block”. Mail is delivered as normal, and you start receiving reports.

A few other tags:

  • sp= sets a policy for your subdomains. Leave it out and subdomains inherit the main policy.
  • ruf= isn’t supported by Gmail, so leave it out.
  • Reports going to another domain: your report address should normally be on the same domain as the record. If it isn’t, you have to add a DNS record on that other domain.

Step 4: Read your reports

Receiving mail systems send a summary about once a day, called an aggregate report. They arrive as email attachments: an XML file, usually compressed. Not every receiver sends them. Google suggests checking them daily at the start.

Raw XML is hard to read, so most people use a DMARC report reader. When you open one, you’re looking for four things:

  • Source IP and count. Who sent mail as your domain, and how much.
  • Whether SPF and DKIM passed. And, separately, whether they aligned (matched your From address).
  • Known sender, passing but not aligned. A real service you forgot to set up properly. Fix it in that service’s settings. Usually that means turning on “sign with my own domain”, or changing its return-path (MAIL FROM) domain to yours.
  • Unknown sender, high volume, all fails. Likely someone spoofing you. No action needed. This is what your policy will block.

Forwarded mail and mailing lists often fail. That’s normal, and not a reason to hold back.

Step 5: Move to quarantine, then reject

Google’s rollout advice is: run p=none for about a week and review reports daily. If there are no sending problems after at least a week, move to quarantine on a small share of mail. Change the value of the same _dmarc record.

  1. Quarantine on a small share. Failing mail goes to the spam folder instead of being lost. Google suggests starting at 10% for a small organisation (1% for a large one):
v=DMARC1; p=quarantine; pct=10; rua=mailto:dmarc-reports@yourcompany.com
  1. Raise the share over time until pct=100 (or drop the pct tag).
  2. Reject. Once quarantine is clean, change to p=reject. Failing messages are then refused and never delivered.
v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourcompany.com

Google doesn’t give a wait between percentage steps. Keep reading the reports after each change.

Common mistakes with Google Workspace

  • Publishing the DKIM key but never selecting Start authentication. The key sits in DNS and nothing signs your mail.
  • Selecting Start authentication before the DNS record is live. Add the record first, then wait.
  • A second SPF record. A CRM or newsletter tool tells you to “add this SPF record”, and you do. Merge its include: into the one you have.
  • Too many lookups. Past the limit, SPF returns an error. Remove services you no longer use before you add new ones.
  • Publishing DMARC too early. Google says to wait 48 hours after SPF and DKIM. DMARC with neither in place will probably cause delivery problems.
  • A third-party sender that signs with its own domain. It passes DKIM but not DMARC. Set it up to sign with yours.
  • Forgetting a second domain. Every domain you send from needs its own SPF record, DKIM key and DMARC record.
  • Sending reports to your own inbox. The volume swamps it. Use a dedicated mailbox or group.
  • Going to reject too fast. Invoices disappear. Follow the order above.

Check your work

Our free domain check reads your SPF and DMARC records from outside and tells you what’s missing. It can’t see DKIM, because those keys sit under a selector name only your provider knows. To check DKIM, send a message to an outside address and look in its headers for dkim=pass, spf=pass and dmarc=pass.

Two next steps

Want it done for you? We set up SPF, DKIM and DMARC for your domain, find every sender, and move you to enforcement without losing real mail. Email us and tell us which senders you use.

Records can’t stop every fake. A lookalike domain, or a convincing message that reaches an inbox some other way, gets past them. Your staff are the other half. Shiftskill’s Phishing and Cyber Basics for Staff course takes about 25 minutes and uses Canadian examples.

Stay secure,

Luke Stephenson

Would you rather have this done once, and done right? Tell us which email system you use and who sends as you, and we'll set it up and take you to enforcement without losing real mail.