// GUIDE

SPF, DKIM and DMARC in Google Workspace

With Google Workspace, SPF is an include: and the DKIM key is generated in the Admin console: you publish it in your DNS and then press “Start authentication”. Without that last step, Gmail does not sign with your domain.

What to publish

SPF TXT @ (the domain)

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

The one Google recommends. If you send from more services, add their include: in the same record (one SPF record and at most 10 DNS lookups).

DKIM TXT google._domainkey

The key the console generates (v=DKIM1; k=rsa; p=…).

google is the default selector. A 2048-bit key; 1024 only if your DNS provider does not allow long TXT records.

DMARC TXT _dmarc

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

Start at p=none with reports and move to quarantine and reject once all your legitimate mail passes (below).

Step by step

  1. Publish the SPF record at your DNS provider (or add include:_spf.google.com to the one you have).
  2. In the Admin console (admin.google.com): Menu > Apps > Google Workspace > Gmail > Authenticate email.
  3. Pick your domain, generate a new record (2048 bits, prefix google) and publish the TXT record at google._domainkey.
  4. Go back to the same page and press “Start authentication”. DKIM can take up to 48 hours to start working.
  5. Publish DMARC at p=none with an rua mailbox and read the reports for a few weeks before raising the policy.

Usual mistakes

Towards p=reject

DMARC at p=none only watches. The reports (rua) show who sends on your behalf; once all your legitimate mail passes aligned SPF or DKIM, move to quarantine and then to reject. That way, nobody can use your domain to send forged mail.

Check your domain

Sources

Checked on 24 September 2026. Panels change: if something does not match, the provider’s documentation wins.