Step 1: SPF
v=spf1 include:_spf.google.com ~allGoogle recommends ~all in the SPF record. The domain can only have one SPF record. If other services send for the domain, you add them to the same record, before ~all.
Step 2: DKIM
- Open the Admin console and go to Apps, Google Workspace, Gmail, Authenticate email.
- Select the domain and click Generate New Record. Choose 2048 bits if your DNS provider supports it. The default selector is
google. - Add the key as a TXT record at
google._domainkeyat your DNS provider. - Go back to the Admin console and click Start authentication.
Google states that it can take up to 48 hours for DKIM to start working after the record is added. On a brand new account you must wait 24 to 72 hours after Gmail was turned on before the key can be created.
A 2048-bit key is too long for one text string in DNS. Most providers split it themselves. If yours does not, the DNS record splitter splits it for you.
Step 3: DMARC
Google asks you to wait 48 hours after SPF and DKIM are set up before you publish DMARC.
v=DMARC1; p=none; rua=mailto:dmarc@company.comThe rollout Google recommends is p=none for a week while you read the reports daily, then quarantine for a small share of the email, and then gradually more. The method is in the guide to DMARC policy.
Check the setup
Use the SPF checker, the DKIM checker with the selector google and the DMARC checker. In Gmail you can also open an email you have sent, choose "Show original" and see whether SPF, DKIM and DMARC say PASS.
Do you want to show your logo in Gmail?
When DMARC is at quarantine or reject, you can set up BIMI. Gmail then requires a VMC or CMC certificate. See the guide to BIMI.