Skip to content
Google Workspace24 March 20268 min read

How I Set Up SPF DKIM and DMARC in Google Workspace

Gmail trusts mail from your domain when three DNS records tell receiving servers the message is real. Those records are Google Workspace SPF DKIM DMARC. Set them up before you touch filters, warm-up tools, or sending volume. The order is si...

Gmail trusts mail from your domain when three DNS records tell receiving servers the message is real. Those records are Google Workspace SPF DKIM DMARC. Set them up before you touch filters, warm-up tools, or sending volume.

The order is simple. Publish one SPF record at your DNS host. Generate a DKIM key in the Admin console and publish the key in DNS. Wait, then add a DMARC policy. This guide covers each record, the order, testing, common errors, and Gmail sender rules. Facts come from the official Google help pages checked in October 2026. Confirm values in your own Admin console before you save anything.

What Each Record Does

RecordJobWhere you create it
SPFLists the servers allowed to send mail for your domainTXT record at your DNS host
DKIMAdds a signature to outgoing mail so receivers can verify the messageKey made in Google Admin, TXT record at your DNS host
DMARCTells receivers what to do when SPF and DKIM checks fail and where to send reportsTXT record at your DNS host

Google Admin helps you create the DKIM key. The records themselves live at your DNS host. The host may be Cloudflare, GoDaddy, Squarespace, or another registrar.

Gmail Sender Rules in 2026

Google publishes email sender guidelines with requirements since February 1, 2024. Read the summary below and then check the page for updates.

Rules for all senders

  • Set up SPF or DKIM for the sending domain.
  • Keep valid forward and reverse DNS records for sending domains or IPs.
  • Use TLS for email transmission.
  • Keep the spam rate in Postmaster Tools below 0.3 percent. Aim for below 0.10 percent.
  • Format messages according to RFC 5322.

Extra rules for 5,000 or more messages per day

  • Set up SPF, DKIM, and DMARC. A DMARC policy of none is acceptable.
  • Align the From domain with the SPF domain or the DKIM domain.
  • Support one-click unsubscribe on marketing and subscribed messages and show a clear unsubscribe link in the body.

Small senders gain from the same records. Even a small domain can be spoofed.

Before You Touch DNS

DNS works like the fuse box in an old house. Flip the wrong switch and one room goes dark. Check two things first.

  1. Find your DNS host. Confirm who controls the domain records and sign in to the panel.
  2. List every sender. Include Gmail, newsletter tools, CRMs, billing tools, and help desks. Each service sending as your domain needs SPF coverage or its own authenticated custom domain.

Google recommends making sure third party services pass SPF and DKIM before you enable DMARC. The Google authentication overview explains the basics.

Step 1: Set Up SPF

Create a TXT record at the root of your domain. Use the at sign as the host, or leave the host blank if your DNS panel requires. For a subdomain, enter the subdomain name. Each subdomain needs its own SPF record.

When Google Workspace is your only sender, Google gives this value:

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

Google recommends the soft fail qualifier ~all. The qualifier tells receivers to mark mail from unlisted senders as spam. Some hosts need the value wrapped in quotes.

Add other senders inside the same record. Google gives the example of adding include:amazonses.com for Amazon SES. Publish one SPF record per hostname and merge all senders into one line. An SPF record can hold up to 10 include tags according to Google.

SPF can take up to 48 hours to start working, according to the Google SPF help page.

Modern illustration featuring a close-up of a DNS management panel on a computer screen displaying DKIM and DMARC records being added by a pair of hands typing. Clean shapes, controlled color palette, simple background, bright even lighting, and exactly one device with no readable text or extra objects.

Step 2: Set Up DKIM

DKIM needs the exact key from your Admin console. Do not copy a key from a guide or a sample.

  1. Sign in to the Admin console as a super administrator.
  2. Open Menu, Apps, Google Workspace, Gmail, then Authenticate email.
  3. Select your domain and click Generate new record.
  4. Choose a 2048 bit key when your provider supports 2048 bit keys. Choose 1024 when your host does not.
  5. Keep the default selector prefix google unless your domain already uses a DKIM key with the same prefix.
  6. Copy the DNS host name and the TXT record value. The value starts with v=DKIM1.
  7. Add the TXT record at your DNS host.
  8. Return to Authenticate email, select the domain, and click Start authentication.

Do not click Start authentication during key generation. Click the button only after the TXT record is live. Without the last click, Google does not sign outgoing mail. When setup works, the page shows Authenticating email with DKIM.

The DKIM value contains several parts separated by semicolons. Paste the full value exactly as the Admin console shows the value. Some domain providers limit TXT record length, so check the character limit if the key is rejected. Squarespace domains receive the key automatically.

DKIM timing

  • After you turn on Gmail, wait 24 to 72 hours before you can get a DKIM key in the Admin console.
  • After you add the key to DNS, allow up to 48 hours for authentication to start working.
  • The Admin console may show a DNS update message for up to 48 hours. Ignore the message when the key is correct.

Step 3: Set Up DMARC

Wait at least 48 hours after you set up SPF or DKIM. Then add DMARC. You change nothing in the Admin console. You add the record at your domain host.

Create a TXT record with the host _dmarc. The v tag and the p tag must come first. Other tags follow in any order. Separate tags with semicolons.

TagMeaningNotes from Google
vVersionSet to DMARC1 and place first
pPolicynone delivers the message and sends reports. quarantine sends the message to spam. reject rejects the message.
ruaAggregate report addressPrefix with mailto: and separate several addresses with commas
pctPercent of failing mail the policy coversRange 1 to 100 and default 100
adkimDKIM alignmentr for relaxed, the default. s for strict.
aspfSPF alignmentr for relaxed, the default. s for strict.
spSubdomain policySubdomains inherit the parent policy when omitted

Start with p=none. This setting lets you watch reports before you tighten policy. Move to quarantine and then reject over time. Raise pct in steps until the value reaches 100. Gmail does not support the ruf tag.

Pick a good report mailbox

Google recommends a dedicated mailbox or group for reports. Large organizations can receive hundreds or thousands of reports each day. If the report address sits on a different domain, add a record at the other domain. Create the mailbox before you publish the record.

Verify the Setup

Test from three places once the records are live.

  1. Send a message from Gmail to a Gmail or Google Workspace address. Open the original message and read the Authentication-Results header. Look for SPF pass, DKIM pass, and DMARC pass. Google notes you cannot verify DKIM by emailing yourself.
  2. Check the DKIM status in the Admin console.
  3. Run the domain through a free SPF, DKIM, and DMARC checker to catch syntax errors. Google suggests a free online tool after you save the DMARC record.

Senders with volume should also watch Google Postmaster Tools for the spam rate.

Modern illustration of a clean verification dashboard displaying green checkmarks for passing SPF, DKIM, and DMARC authentication checks. The single screen is in focus on a desk under soft natural light, with a simple composition.

Common Errors and Fixes

ProblemLikely causeFix
SPF failsTwo SPF records or a missing senderMerge all senders into one record
DKIM failsRecord not live, wrong selector, broken key, or authentication not startedRecheck the host name and value and click Start authentication
DMARC fails with SPF passReturn path domain does not align with the From domainSet a custom return path in the sending tool
DMARC fails with DKIM passA third party tool signs with its own domainSet up a custom DKIM domain in the sending tool
Record rejectedSmart quotes, stray spaces, or a split TXT valuePaste plain text and follow the host limits

Bad addresses can also drag results down. Clean your lists with tools focused on email verification for sender reputation when inbox placement stays weak after authentication passes.

A Safe Rollout Plan

  1. Week one. Publish SPF and DKIM and confirm both pass.
  2. After 48 hours. Publish DMARC with p=none and a working report mailbox.
  3. Weeks two to four. Read reports and fix failing senders.
  4. Month two. Move to quarantine with a low pct value.
  5. Later. Raise pct to 100 and consider reject when reports stay clean.

Do not rush the move to reject. A forgotten sender can lose real mail.

FAQ

Should I use ~all or -all for Google Workspace SPF?

Google recommends ~all on its SPF help page and does not mention -all. Start with ~all and review your senders before any change.

How long does DKIM take to start working?

Google says allow up to 48 hours after you add the key to DNS. Resend a test message and read the headers.

Do I need DMARC for low volume?

Google requires DMARC for senders of 5,000 or more messages per day to Gmail. Smaller domains still benefit from reports and spoofing protection.

Can I make DKIM work without a DNS host login?

No. The TXT record lives at your DNS host. Ask the domain owner to add the record.

Where do I find the DKIM key?

Open Authenticate email under Gmail in the Admin console and generate the record for your domain.

Does DMARC need changes in the Admin console?

No. Google states you add the DMARC record at your domain host.

Conclusion

Set up Google Workspace SPF DKIM DMARC in the right order and mail feels calmer. Messages land cleaner, spoofing gets harder, and troubleshooting loses the fog. Start DMARC at p=none, verify every record, and tighten policy only after reports make sense. Confirm every value on the official Google pages before you save.

Verified by MonsterInsights