Set up SPF, DKIM and DMARC for Google Workspace

The three settings that keep Google Workspace messages out of spam, with Google Workspace's own values and where to find them. Allow about fifteen minutes.

Before you start

The records below are added where your domain's DNS is managed. That is often the company you bought the domain from, and not always Google Workspace. If you aren't sure where that is, enter your domain: we name your DNS host and link to its guide.

Step 1. SPF: say who may send for you

Add one TXT record on your domain with the value below. It tells mail services that Google Workspace is allowed to send your email.

TXT record on your domain
v=spf1 include:_spf.google.com ~all

If your domain already has a record starting v=spf1, don't add a second. Edit the one you have so it includes Google Workspace. Two SPF records cancel each other out.

Step 2. DKIM: sign your email

  1. Sign in to the Google Admin console (admin.google.com) as an administrator.
  2. Go to Apps, then Google Workspace, then Gmail, then Authenticate email.
  3. Choose your domain and press Generate new record. Google shows you a TXT record.
  4. Add that TXT record where your domain's DNS is managed, exactly as shown.
  5. Back in the Admin console, press Start authentication.

Step 3. DMARC: say what happens to fakes

Add a TXT record named _dmarc with the value below. This starts in monitoring mode, which changes nothing about how your email is delivered.

TXT record named _dmarc
v=DMARC1; p=none;

After a few weeks with SPF and DKIM both working, change p=none to p=quarantine. Fake emails then go to spam.

Step 4. Check it worked

Changes can take up to an hour to show. Then run the check here: it reads all three records and tells you if anything is still missing.