MailSpecto
SPF, DKIM and DMARC 3 min read

SPF, DKIM and DMARC in Google Workspace – the complete setup

Google Workspace does not sign mail with your domain out of the box. You need to add SPF, generate a DKIM key in the Admin console, publish it and only then turn authentication on. We show the order that works the first time.

MailSpecto Engineering Team

Mail infrastructure and deliverability

Google Workspace Authenticate email DNS: TXT / CNAME SPF _spf.google.com DKIM google._domainkey DMARC _dmarc p=none PASS SPF · DKIM · DMARC

Based on Google's documentation (as of November 2026).

1. SPF

You add SPF at your domain's DNS host; nothing changes in the Google Admin console. A TXT record for the root domain (@):

example.com.  IN  TXT  "v=spf1 include:_spf.google.com ~all"

If other systems also send from the domain, add them to the same record, for example v=spf1 include:_spf.google.com include:servers.mcsv.net ~all. Google recommends ~all. Keep in mind that include:_spf.google.com on its own uses several of the 10 allowed DNS lookups (see SPF PermError "too many DNS lookups").

2. DKIM: generate, publish, turn on

DKIM in Google Workspace has three steps, and the order matters.

Step 1: generate the key

In the Admin console: Menu → Apps → Google Workspace → Gmail → Authenticate email. Select the domain and click Generate New Record. Key length: 2048 if your DNS host accepts records that long (almost all do); 1024 only if it does not. Keep the default selector prefix: google.

Step 2: publish the record

At your DNS host, add a TXT record named google._domainkey with the value copied from the console:

google._domainkey.example.com.  IN  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."

If your DNS panel splits long values into several strings, that is normal: receivers join them back together.

Step 3: turn authentication on

Only once the record is visible in DNS, go back to Authenticate email and click Start authentication. Do not click it earlier. The status changes to "Authenticating email with DKIM".

Notes: you can generate the key only 24–72 hours after Gmail is turned on for the domain, and DKIM starts working up to 48 hours after the record is published.

3. DMARC

Google recommends starting with the none policy and waiting about 48 hours after setting up SPF and DKIM. A TXT record at _dmarc:

_dmarc.example.com.  IN  TXT  "v=DMARC1; p=none; rua=mailto:[email protected]"

Google does not support failure reports (ruf), so rua is enough. According to Google, the default relaxed alignment (adkim=r, aspf=r) is usually sufficient. After a few weeks of reports, move to quarantine and then reject (see DMARC reports: from p=none to p=reject).

Bulk senders

If you send more than 5,000 messages a day to Gmail users, SPF, DKIM and DMARC are mandatory (see Gmail and Yahoo bulk sender requirements).

4. Checking

dig +short TXT example.com | grep spf1
dig +short TXT google._domainkey.example.com
dig +short TXT _dmarc.example.com

The easiest test: send a message to another Gmail account, open Show original and check that SPF, DKIM and DMARC all show PASS. The domain audit in the MailSpecto panel checks the records for you, and DMARC reports in MailSpecto Monitor show whether mail from Google Workspace and your other systems passes authentication.

  1. One SPF record with include:_spf.google.com.
  2. A 2048-bit DKIM key, the google._domainkey record in DNS.
  3. Start authentication clicked after the record was published.
  4. A _dmarc record with p=none and an rua address.
  5. Test message: SPF, DKIM and DMARC = PASS.

Keep your contact list clean

Verify email addresses before you send, and explore our upcoming SPF/DKIM/DMARC diagnostics module.

Try MailSpecto

MailSpecto Engineering Team

We build tools for email address verification, deliverability monitoring and mail infrastructure security diagnostics for companies in Poland and Europe.

Related articles

SPF, DKIM and DMARC

DMARC reports – how to read them and move from p=none to p=reject

How to read DMARC aggregate reports (rua) and move step by step from p=none to p=quarantine and p=reject.

Read article →
SPF, DKIM and DMARC

Multiple SPF or DMARC records on one domain – why it breaks and how to merge them

Why two SPF records or two DMARC records break email authentication, how to merge them, and how to list several DMARC report addresses in one record.

Read article →
SPF, DKIM and DMARC

No DMARC record found – what a missing DMARC record means and how to add one

What "No DMARC record found" means, exactly where to add the _dmarc record, a safe starter record, and the most common DNS panel mistakes.

Read article →