Google Workspace SPF, DKIM and DMARC: The Three Records and How to Set Them Up

A Google Workspace domain needs three DNS records to authenticate its mail: an SPF record that includes _spf.google.com, a DKIM key published at google._domainkey, and a DMARC record at _dmarc. SPF and DMARC are added at your DNS host only. DKIM also needs two clicks in the Google Admin console, one to generate the key and one to start signing with it. Publish them in that order, SPF and DKIM first and DMARC at least 48 hours later, because Google's own guidance is to let the first two authenticate mail for two days before a DMARC policy starts judging it.

The three records a Google Workspace domain needs

Google Workspace authentication is three TXT records, and only the DKIM value is unique to your domain. Replace example.com with your own domain.

RecordHost (name)TypeValue
SPF@TXTv=spf1 include:_spf.google.com ~all
DKIMgoogle._domainkeyTXTv=DKIM1; k=rsa; p= followed by the key the Admin console generates
DMARC_dmarcTXTv=DMARC1; p=none; rua=mailto:dmarc@example.com

Google's requirement depends on volume. Every domain sending to personal Gmail accounts must pass SPF or DKIM, and a domain sending more than 5,000 messages a day to them must have all three, according to Google's authentication overview for Workspace admins. Yahoo and Outlook.com ask bulk senders for the same three, so set up all of them whatever your volume.

Step 1: Set up SPF for Google Workspace

The SPF record for a domain that sends only through Google Workspace is v=spf1 include:_spf.google.com ~all, published as a TXT record on the root of the domain (host @). Google's SPF setup page gives exactly this value and says nothing needs to change in the Admin console.

Three rules decide whether the record works:

  1. One SPF record per domain. If the domain already has a v=spf1 record, add include:_spf.google.com to it instead of creating a second one. Two SPF records on the same name are a permanent error, and receivers treat the domain as having no valid SPF at all.
  2. Every other sender goes in the same record. A newsletter platform, a helpdesk or a CRM that sends as your domain needs its own include: in that one record, for example v=spf1 include:_spf.google.com include:servers.mcsv.net ~all.
  3. Ten DNS lookups is the ceiling. Each include: costs at least one lookup, and nested includes cost more. include:_spf.google.com currently resolves to a single record of IP ranges, so it costs one lookup, which leaves nine for everything else.

Google recommends ~all (softfail) at the end, which asks receivers to treat mail from unlisted servers as suspicious rather than reject it outright. Keep ~all while you set up DMARC: DMARC is the layer that tells receivers what to do with failing mail, and -all adds little once DMARC is enforced. SPF can take up to 48 hours to start working after you publish it. Check what your record actually evaluates to, lookups included, with the Unspam SPF checker.

Step 2: Set up DKIM in the Google Admin console

DKIM for Google Workspace is a key pair: Google keeps the private key and signs outgoing mail with it, and you publish the public key in DNS at google._domainkey. It takes three steps, all from Google's DKIM setup page:

  1. Generate the key. In the Google Admin console, go to Menu > Apps > Google Workspace > Gmail, click Authenticate email, select the domain and click Generate New Record. Choose a 2048-bit key unless your DNS host cannot store one, and keep the default prefix selector google.
  2. Publish the key. Create a TXT record at your DNS host with the host name google._domainkey and the value the Admin console shows, which starts with v=DKIM1; k=rsa; p=.
  3. Start signing. Back on the Authenticate email page, click Start authentication. Until you do, Google does not sign with your key even though it is published.

Two timings matter. A new Google Workspace account has to wait 24 to 72 hours after Gmail is turned on before the Admin console will generate a key, and a published key can take up to 48 hours to start authenticating mail.

Why Google's default DKIM signature is not enough

Google Workspace signs mail even if you never set up DKIM, but with a shared Google domain instead of yours. The signature's d= value is a domain ending in gappssmtp.com, which Google's DKIM help describes as the default key. That signature passes DKIM and still fails DMARC, because DMARC requires the signing domain to match the domain in the visible From address. A Google Workspace domain on the default key passes DMARC only through SPF, which breaks as soon as a message is forwarded. Turning on your own key is what makes DKIM count.

When the DNS host rejects the 2048-bit key

A 2048-bit DKIM key is about 400 characters long, and some DNS hosts accept at most 255 characters in one TXT string. Most hosts split a long value into quoted 255-character strings automatically. If yours refuses the record, paste the key as two quoted strings in one record, or generate a 1024-bit key, which Google offers for exactly this case. Confirm the published key matches with the Unspam DKIM checker, selector google.

Step 3: Set up DMARC for Google Workspace

The DMARC record for a Google Workspace domain is a TXT record at _dmarc that starts as v=DMARC1; p=none; rua=mailto:dmarc@example.com. Publish it at least 48 hours after SPF and DKIM are authenticating mail, as Google's DMARC setup page advises, and nothing needs to change in the Admin console.

Each part of that starting record has one job:

  • p=none tells receivers to deliver failing mail as usual and only report it. It is the monitoring stage.
  • rua= is the address that receives aggregate reports, daily XML files from Gmail, Yahoo, Microsoft and others listing every source that sent mail as your domain. Google calls rua optional but recommends always including it, because without reports you cannot tell legitimate senders from spoofers.

Google's recommended rollout moves the policy in three stages:

  1. Monitor with p=none for at least a week and read the reports. Every legitimate source must pass SPF or DKIM aligned with your domain before you move on.
  2. Quarantine with p=quarantine, which sends failing mail to spam.
  3. Reject with p=reject, which tells receivers to refuse failing mail outright.

Build the record without typing tags by hand in the Unspam DMARC record generator, and turn the reports into a list of senders with the DMARC report analyzer.

Google's pct advice and RFC 9989

Google's rollout page still recommends a pct tag to apply quarantine to a small share of failing mail first, with examples such as p=quarantine; pct=5. RFC 9989, the DMARC standard published in May 2026, removed pct, so a receiver that follows the current standard ignores the percentage and applies the policy to all failing mail. Both behaviors are live at once, which makes pct an unreliable safety net. Treat p=quarantine as applying to every failing message, and only move to it once the reports show every legitimate sender aligned. Our RFC 9989 guide covers the other tags the standard removed.

Third-party senders: the step most Workspace domains miss

A third-party sender passes DMARC for your domain only if it signs with DKIM for your domain or sends from an envelope domain that matches yours. Google's DMARC page puts it as a prerequisite: every service that sends as your domain has to be authenticated before you enforce a policy.

For each platform that sends mail with your domain in the From address, such as a newsletter tool, a CRM, a helpdesk or an invoicing app:

  1. Turn on its custom DKIM (often called domain authentication) and publish the CNAME or TXT records it gives you. This is the step that makes its mail align.
  2. Add its SPF include to your single SPF record if it sends from its own servers, and check that the lookup count stays at ten or below.
  3. Or relay through Google. Google Workspace's SMTP relay service lets an application send through Google's servers, so Google's SPF and your DKIM key cover it.

A sender that is missing from this list is the usual reason a domain jumps from p=none to p=quarantine and watches its own invoices land in spam.

How to check that Google Workspace authentication works

A message from a correctly set up Google Workspace domain shows spf=pass, dkim=pass with your own domain, and dmarc=pass in its Authentication-Results header. You cannot check this by emailing yourself, because Google's DKIM page notes that a message to your own domain does not show the result. Send a test to an address at another provider instead.

  1. Read the headers. In Gmail, open the message, choose Show original, and look for SPF: PASS, DKIM: PASS with d= set to your domain, not one ending in gappssmtp.com, and DMARC: PASS.
  2. Check each record. Run the SPF checker, the DKIM checker with selector google, and the DMARC checker against your domain.
  3. Test real placement. An inbox placement test sends one message from your Google Workspace account to seed mailboxes at Gmail, Outlook, Yahoo and other providers and shows the authentication result and the folder at each.

Common mistakes with Google Workspace authentication

Most Google Workspace authentication failures come from five mistakes, and each one is visible in a DNS lookup or a message header:

  • Two SPF records. Adding a second v=spf1 record for a new tool instead of editing the first one invalidates both.
  • DKIM key published but authentication never started. The record is in DNS, but Google keeps signing with the default gappssmtp.com key until someone clicks Start authentication.
  • Only the primary domain set up. Every domain and secondary domain that sends from the same Google Workspace account needs its own DKIM key, generated by selecting it on the Authenticate email page, and its own SPF and DMARC records.
  • DMARC enforced before the reports were read. Moving to p=quarantine or p=reject while a CRM or newsletter tool still fails alignment sends that tool's mail to spam or bounces it.
  • Reports sent to a mailbox nobody reads. A rua mailbox that fills with unread XML files gives no warning when a new sender appears. Route the reports to a tool that summarizes them.

FAQ

What is the SPF record for Google Workspace?

The SPF record for a domain that sends only through Google Workspace is v=spf1 include:_spf.google.com ~all, published as a TXT record at the root of the domain. If the domain already has an SPF record, add include:_spf.google.com to the existing record instead of creating a second one.

Does Google Workspace set up DKIM automatically?

No. Google Workspace signs outgoing mail with a shared default key on a domain ending in gappssmtp.com, which passes DKIM but does not align with your domain for DMARC. You have to generate your own key in the Admin console under Apps > Google Workspace > Gmail > Authenticate email, publish it at google._domainkey, and click Start authentication.

Should I use a 1024-bit or 2048-bit DKIM key?

Use a 2048-bit key, which Google offers first and which is the stronger option. Choose 1024-bit only if your DNS host cannot store the longer value, even when it is split into two quoted strings.

What DMARC policy should a Google Workspace domain start with?

Start with v=DMARC1; p=none; rua=mailto:dmarc@example.com, using an address you control, and publish it at least 48 hours after SPF and DKIM are working. Read the aggregate reports for at least a week, fix every legitimate sender that fails, then move to p=quarantine and later p=reject.

How long does Google Workspace authentication take to work?

SPF and DKIM can each take up to 48 hours to start authenticating mail after you publish the records, and a new Google Workspace account waits 24 to 72 hours after Gmail is turned on before it can generate a DKIM key. Plan on two to four days from a new account to a working DMARC record.

Do I need DMARC if I send fewer than 5,000 emails a day?

Google requires DMARC only from senders of more than 5,000 messages a day to personal Gmail accounts, but every domain benefits from it. Without a DMARC record, anyone can send mail that claims to be from your domain, and receivers have no published policy telling them to stop it.

Related articles

Best Free Email Spam Checkers, Compared by What the Free Test Checks Inbox Placement Fell 10 Points in 2026: What Changed at Yahoo, AOL and Gmail Most Accurate Email Verifier: 6 Tools Tested on 4,532 Real Addresses

See where your campaign actually lands.

Start a free spam test Inbox placement test