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.comThe 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.
- One SPF record with
include:_spf.google.com. - A 2048-bit DKIM key, the
google._domainkeyrecord in DNS. - Start authentication clicked after the record was published.
- A
_dmarcrecord withp=noneand anruaaddress. - 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.
MailSpecto Engineering Team
We build tools for email address verification, deliverability monitoring and mail infrastructure security diagnostics for companies in Poland and Europe.