Last updated: November 2026
Disclosure: WavesRank is reader-supported. Some links in this article may be affiliate links, which means we may earn a commission if you buy, at no extra cost to you. The steps below follow Google’s own Workspace Admin Help pages, checked in November 2026. See our Affiliate Disclosure and Editorial Policy.
If your business uses Google Workspace (Gmail with your own domain), three DNS records decide whether your emails are trusted: SPF, DKIM and DMARC. Without them, your emails are more likely to land in spam, and anyone can send email that pretends to come from your domain.
This guide walks through all three in the order Google recommends, with the exact records to add. It takes about 30 minutes of work spread over a few days, because some steps need time for DNS to update.
Quick answer
- SPF: add a TXT record at
@withv=spf1 include:_spf.google.com ~all(plus any other services that send email for you). - DKIM: in the Admin console go to Apps > Google Workspace > Gmail > Authenticate email, generate a 2048-bit key, add it to DNS, then click Start authentication.
- DMARC: 48 hours later, add a TXT record at
_dmarcwithv=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com. - Then: watch the reports for at least a week, fix any service that fails, and move gradually to
quarantine.
Why this matters for Google Workspace users
Since February 2024, Gmail has required every sender to use SPF or DKIM. Anyone who sends 5,000 or more emails a day to Gmail accounts must also have SPF, DKIM and DMARC. Even if you send far less, setting up all three:
- helps your invoices, quotes and replies reach the inbox,
- stops criminals sending fake emails “from” your domain to your customers and suppliers, and
- gives you reports showing every service that sends email as you.
New to these terms? Our guide on how to set up DMARC explains them in plain English.
Before you start
- Admin access: you need a Google Workspace super administrator account.
- DNS access: log in to wherever your domain’s DNS is managed (for example GoDaddy, Cloudflare, Namecheap or your web host). This is not always the same company you bought the domain from.
- List every service that sends email using your domain. Typical examples: Google Workspace itself, your website’s contact form, your accounting or invoicing software, your newsletter tool, your CRM and your helpdesk. Each one needs to pass SPF or DKIM, or DMARC will eventually block its emails.
If you only turned on Gmail in the last few days, Google advises waiting 24 to 72 hours before generating a DKIM key, or it may fail.
Step 1: Set up SPF
SPF is a list of servers allowed to send email for your domain. At your DNS host, add (or edit) a TXT record:
| Type | Host / Name | Value |
|---|---|---|
| TXT | @ |
v=spf1 include:_spf.google.com ~all |
If other services send email for you, add their include: to the same record. For example, Google Workspace plus Amazon SES:
v=spf1 include:_spf.google.com include:amazonses.com ~all
Three rules to avoid the most common SPF mistakes:
- Only one SPF record per domain. If you already have a
v=spf1record, edit it rather than adding a second one. Two SPF records break SPF completely. - Stay within the limit. Google notes an SPF record can have up to 10
include:tags. In practice, nested includes count too, so keep the list short. - Use
~all(soft fail), which is what Google recommends. DMARC will handle blocking later.
Step 2: Set up DKIM
DKIM adds a digital signature to every email you send, which receivers check against a public key in your DNS.
- Sign in to the Google Admin console and go to Apps > Google Workspace > Gmail > Authenticate email.
- Select your domain and click Generate new record.
- Choose a 2048-bit key if your DNS host supports it (most do); otherwise use 1024-bit.
- Keep the default prefix selector,
google, unless your domain already uses that selector for another DKIM key. - Click Generate. Copy the DNS host name (for example
google._domainkey) and the TXT record value (it starts withv=DKIM1; k=rsa; p=). Do not click Start authentication yet. - At your DNS host, add a TXT record with that host name and value.
- Wait for DNS to update. Google says it can take up to 48 hours; it is often much quicker. The Admin console may show “You must update the DNS records” in the meantime, which you can ignore if the record is correct.
- Go back to Authenticate email, select your domain and click Start authentication. The status should change to “Authenticating email with DKIM”.
If your DNS host rejects the long DKIM value, check its help pages for TXT length limits; some need the value split into parts.
Step 3: Add a DMARC record (monitor only)
Google advises waiting 48 hours after SPF and DKIM are set up before turning on DMARC.
First, decide where reports will go. Google recommends a dedicated mailbox or Google Group, not a personal inbox, because reports can arrive in large numbers. A DMARC reporting tool can receive and read them for you instead; see our comparison of DMARC tools.
Then add this record at your DNS host:
| Type | Host / Name | Value |
|---|---|---|
| TXT | _dmarc |
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com |
Replace the address with your reporting mailbox. Some DNS hosts add your domain to the host name automatically, so check that the final record sits at _dmarc.yourdomain.com and not _dmarc.yourdomain.com.yourdomain.com.
p=none means nothing is blocked yet. Emails are delivered as normal, and you start receiving reports about who is sending as you.
Step 4: Read the reports and fix failing senders
Google recommends staying on p=none for at least one week. Check the reports regularly for:
- Legitimate services that fail SPF and DKIM, such as a website form or invoicing tool. Fix them by adding their
include:to SPF, turning on their DKIM signing with your domain, or sending their mail through Google’s SMTP relay. - Unknown servers sending as your domain. These are usually spoofing attempts, which DMARC will block once you enforce it.
The raw reports are XML files that are hard to read by hand. A DMARC tool turns them into a readable list of senders; for a head-to-head of the popular options, see EasyDMARC vs PowerDMARC vs dmarcian.
Step 5: Move to quarantine, then reject
When every legitimate sender passes, increase protection gradually, as Google recommends. Start by quarantining a small share of failing messages:
v=DMARC1; p=quarantine; pct=5; rua=mailto:dmarc-reports@yourdomain.com
Raise pct step by step (for example 5, 25, 50, 100) while watching the reports. Once you are at 100% quarantine with no problems, you can optionally move to p=reject, which blocks failing emails outright. For a plain-English explanation of each level, see DMARC policy: none, quarantine or reject.
How to check it is working
- Send an email from your Workspace account to a different Gmail or Workspace address (you cannot check by emailing yourself).
- Open the message, click the three-dot menu and choose Show original.
- At the top you should see SPF: PASS, DKIM: PASS and DMARC: PASS.
If DKIM is missing, recheck the DNS record and that you clicked Start authentication.
Common problems
| Problem | Likely cause | Fix |
|---|---|---|
| SPF fails for everything | Two SPF records on the domain | Merge them into one v=spf1 record |
| Website form emails go to spam | The website sends as your domain from its own server | Use an SMTP plugin that sends through Google, or add the host’s SPF and DKIM |
| DKIM key won’t save | DNS host’s TXT length limit | Split the value as your host instructs, or use 1024-bit |
| “You must update the DNS records” stays | DNS not updated yet, or wrong host name | Wait up to 48 hours; check the host name matches exactly |
| No DMARC reports arrive | Typo in rua, or reports go to another domain without authorisation |
Check the address; use a mailbox on the same domain or follow your DMARC tool’s instructions |
Frequently asked questions
Using Microsoft 365 instead? See our Microsoft 365 guide.
Does Google Workspace set up DMARC automatically? No. You add the DMARC record yourself at your DNS host. Some domain registrars add DKIM automatically, so check whether a DKIM record already exists before generating a new one.
Should I use ~all or -all in SPF? Google recommends ~all. Once DMARC is enforcing, it decides what happens to failing messages, so -all adds little and can cause problems with forwarded email.
How long does the whole setup take? About 30 minutes of hands-on work, plus 48 hours before DMARC and at least a week of monitoring before enforcing. Many small businesses reach full quarantine within a month.
Do I need a paid DMARC tool? Not to set up the records. A tool helps you read the reports and spot failing senders, which matters most if you use several email services. Some, like Cloudflare’s DMARC Management, are free.
What about my other domains? Each domain and subdomain that sends email needs its own SPF and DKIM. Domains that never send email should still have SPF v=spf1 -all and DMARC p=reject so they cannot be spoofed.
Related guides
- DMARC, SPF and DKIM for Microsoft 365 (step by step)
- How to set up DMARC, step by step
- Best DMARC tools for small business
- EasyDMARC vs PowerDMARC vs dmarcian
- How to stop email spoofing
Steps were checked against Google Workspace Admin Help in November 2026. Google occasionally renames menus; if a step looks different, search the Admin console for “Authenticate email”.