ProductFree toolsLearnPricing AboutContact
Sign in Start free trial

How to set up DMARC for Google Workspace

SPF, DKIM and DMARC for domains that send through Gmail, from first record to full protection.

Updated:
Nov 26, 2026
Read:
9 min
Level:
Beginner
Applies to:
Google Workspace
In short
  • Publish SPF with include:_spf.google.com, plus any other services that send as your domain.
  • Turn on DKIM in the Google Admin console: generate a 2048-bit key, publish it, then start authentication.
  • Wait at least 48 hours, then publish DMARC with p=none and a reporting address.
  • Read the reports for a week or more, fix failing senders, then enforce.

Before you start

You'll need:

  • Super administrator access to the Google Admin console, to set up DKIM.
  • Access to your domain's DNS, at your registrar or DNS host.
  • A rough list of the other services that send email as your domain, such as a newsletter tool, CRM or help desk.

Just turned on Gmail? Google recommends waiting 24 to 72 hours after activating Gmail for a domain before generating its DKIM key. Otherwise you may see a "DKIM record was not created" error.

Step 1: Set up SPF

For a domain that only sends through Google Workspace, create one TXT record at the root of the domain (often entered as @):

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

If other services send as the domain, add their include: values before ~all. Keep to one SPF record, and stay under 10 DNS lookups; our SPF Record Checker counts them for you. Once you're sure every sender is listed, you can change ~all to -all. Both work with DMARC.

Step 2: Turn on DKIM

Until you turn on DKIM for your domain, Google signs your mail with a Google-owned domain instead of yours. That signature doesn't align with your From address, so DMARC has to rely on SPF alone, which breaks whenever a message is forwarded.

  1. In the Google Admin console, go to Menu → Apps → Google Workspace → Gmail → Authenticate email.
  2. Select your domain, then Generate new record.
  3. Choose a 2048-bit key, if your DNS host supports it. Keep the prefix selector as google, then Generate. Don't select Start authentication yet.
  4. At your DNS host, create a TXT record with the host name google._domainkey and the value Google shows, which starts with v=DKIM1; k=rsa; p=.
  5. Wait for the record to publish. It can take up to 48 hours.
  6. Back in Authenticate email, select Start authentication. The status changes to "Authenticating email with DKIM".

To check it works, send a message to a Gmail or Workspace address other than your own, open it and select Show original. You should see DKIM: 'PASS' with your domain.

Long key, short field? Some DNS hosts limit a TXT value to 255 characters. If yours won't accept the 2048-bit key in one piece, split it into several quoted strings in the same record, or use a 1024-bit key.

Step 3: Publish DMARC

Google recommends setting up SPF and DKIM at least 48 hours before DMARC. Then create a TXT record with the host name _dmarc:

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

With p=none, nothing is blocked. Receivers just start sending daily reports to the rua address. Use a mailbox you'll read, or your MailIntel reporting address. If the address is on a different domain, that domain has to publish a record agreeing to receive the reports; reporting services set this up for you.

Step 4: Read the reports

Reports arrive as compressed XML files, usually daily, from Google, Microsoft, Yahoo and others. Google suggests about a week at p=none for the reports to cover all your mail; busy domains with many services often need two to four weeks. Look for:

  • Google Workspace itself, which should pass both SPF and DKIM.
  • Other services that fail. They need DKIM for your domain, or a custom return-path, set up in each service.
  • Sources you don't recognize, which may be spoofing, or a tool someone set up without telling IT.

Our free DMARC Report Analyzer turns the files into a list of senders in your browser.

Step 5: Move to enforcement

Once every legitimate sender passes, tighten the policy in stages, watching the reports at each step:

  1. Quarantine: v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com. Failing mail goes to spam.
  2. Reject: v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourdomain.com. Failing mail is refused.

Google's guide suggests starting quarantine on a small share of mail with pct=, such as 10% for a small organization. The 2026 DMARC update (RFC 9989) replaced pct= with a testing flag, t=y, so not every receiver will honour a percentage. Our guide to moving from p=none to reject covers both, and how to stage the change safely.

Other services that send as you

Third-party services cause most DMARC failures for Google Workspace domains, just as they do for Microsoft 365. For each one:

  • Set up custom DKIM for your domain in the service. This is the most reliable fix.
  • If the service offers a custom return-path or bounce domain on your domain, set that up too, so SPF aligns.
  • Add the service's include: to your SPF record only if it uses your domain in the return-path.

See why third-party email fails DMARC for the details; the fixes are the same whichever mail platform you use.

Using Microsoft 365 and Google together

Some organizations send from both, for example during a migration. Everything above still applies, with a few differences:

  • One SPF record with both includes: v=spf1 include:spf.protection.outlook.com include:_spf.google.com ~all.
  • DKIM in both places. Each platform uses its own selector (selector1 and selector2 for Microsoft 365, google for Google), so they don't conflict.
  • One DMARC record. It covers mail from both platforms.

Common mistakes

  • Publishing DMARC before DKIM is on. Without DKIM, any forwarded message fails DMARC.
  • Testing DKIM by emailing yourself. Use another Gmail or Workspace address.
  • Two SPF records, usually after a new service says to "add an SPF record". Merge them into one.
  • Forgetting secondary and alias domains. Each domain in Google Workspace needs its own DKIM key and DNS records.
  • Going straight to p=reject. Without reports, you can't know which services will start bouncing.
Let MailIntel watch your reportsMailIntel reads your DMARC reports every day and alerts you when a sender fails or something changes.
Sources

Microsoft updates its admin portals regularly. If a menu name differs from this guide, the Microsoft documentation above has the current path.