1. SPF
Google's value is below. If your domain already has an SPF record (a TXT record on @ starting v=spf1), add include:_spf.google.com to it instead of adding a second record.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new TXT record.
-
In Name (sometimes called Host), type @ for your bare domain (a few hosts want it left empty):
Name
@ -
Set its value to:
Value
v=spf1 include:_spf.google.com ~all - Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
2. DKIM
Google creates your key in the Admin console. You need to be a super admin.
- Sign in to the Google Admin console as a super admin and go to Menu > Apps > Google Workspace > Gmail > Authenticate email. open admin.google.com
- In Selected domain, choose yourbusiness.com.
- If Gmail was only just switched on for your domain, Google may need 24 to 72 hours before it lets you generate the key.
- Click Generate New Record, choose 2048 bits, keep the prefix selector google, and click Generate. Don't click Start authentication yet.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new TXT record.
-
In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves:
Name
google._domainkey - Set its value to the TXT record value Google shows (it starts with v=DKIM1).
- Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
- Back on Authenticate email, click Start authentication. Google can take up to 48 hours to start signing.
3. DMARC
Wait until SPF and DKIM have been working for a couple of days, then start DMARC in monitoring mode.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new TXT record.
-
In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves:
Name
_dmarc -
Set its value to:
Value
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourbusiness.com - Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
Read the reports for two to four weeks, then move to p=quarantine and later p=reject. Gmail's own sender rules ask for at least p=none.
About MX records
New Google Workspace setups use one MX record, smtp.google.com with priority 1. If your email already works with the older set (aspmx.l.google.com and the alt servers), Google says to leave it alone: it keeps working.
Common mistakes
- Clicking Start authentication before the DKIM record is in your DNS. Add the record first, then start.
- Choosing a 1024-bit key when your DNS host accepts 2048. Use 2048 unless the host refuses the long value.
- Adding a second SPF record for another service (a newsletter tool, say) instead of adding its include to the one record.
- Switching a working older MX setup to smtp.google.com. There's no need: both work, and a slip while changing MX records stops your email.
- Expecting DKIM to work straight after switching Gmail on. Google can take 24 to 72 hours before it lets you generate the key.
The examples use yourbusiness.com: put your own domain where you see it. Our checkup fills in your real values for you.