Set up Google Workspace email on your domain: MX, SPF, DKIM and DMARC
The DNS records Google Workspace email needs (verification TXT, MX, SPF, DKIM, DMARC) per Google's docs, how to add them in our DNS editor, and timing.
On this page
- The records at a glance
- Step 1: Verify the domain
- Step 2: Add MX and SPF with the preset
- Other services that send mail for you
- Step 3: Turn on DKIM
- Step 4: Add DMARC
- Why it matters for deliverability
- Step 5: Check everything
- Timing and propagation
- Common problems
- Using Microsoft 365 instead?
- Related setups
Short answer: Google Workspace email needs five DNS records on your domain: a TXT record to verify that you own the domain, an MX record (smtp.google.com, priority 1) to receive mail, an SPF TXT record (v=spf1 include:_spf.google.com ~all), a DKIM TXT record at google._domainkey that you generate in the Admin console, and a DMARC TXT record at _dmarc, starting with p=none. In GetNameDot's DNS editor, the Google Workspace preset adds the MX and SPF records in one click. You add verification, DKIM and DMARC by hand.
The values below come from Google Workspace Help, checked on 29 October 2026: Set up MX records, Set up SPF, Set up DKIM, Set up DMARC and Verify your domain with a TXT record.
The records at a glance
| Purpose | Name (host) | Type | Value | Where the value comes from |
|---|---|---|---|---|
| Domain verification | @ | TXT | google-site-verification=… | Admin console, unique to you |
| Receive mail | @ | MX, priority 1 | smtp.google.com | Fixed (Google Help) |
| SPF | @ | TXT | v=spf1 include:_spf.google.com ~all | Fixed, if Google is your only sender |
| DKIM | google._domainkey | TXT | v=DKIM1; k=rsa; p=… | Admin console, unique to you |
| DMARC | _dmarc | TXT | v=DMARC1; p=none; rua=mailto:… | You choose the policy and report address |
Before you start, open the domain in GetNameDot: My domains → your domain → Manage DNS records. The editor works when the domain uses our nameservers ("Our DNS"), the default for domains registered here. If you use custom nameservers, add the same records at that DNS provider.
Step 1: Verify the domain
When you sign up for Google Workspace or add a domain, Google gives you a unique TXT value starting with google-site-verification=. In Google's Admin console it's under Account → Domains → Manage domains, using the verify option for the domain.
In our editor:
- Click + Add record.
- Name
@, type TXT, and paste the full value, includinggoogle-site-verification=. - Click Save DNS records, then go back to Google and start the check.
Google's guidance is to leave the record in place until Google confirms verification. Removing it early makes verification fail.
Step 2: Add MX and SPF with the preset
Click "Preset: Google Workspace mail". It adds two rows:
| Name | Type | Priority | Value |
|---|---|---|---|
@ | MX | 1 | smtp.google.com |
@ | TXT | — | v=spf1 include:_spf.google.com ~all |
These match Google's current instructions for MX and SPF. Before you save:
- Delete any other MX records. Google says to "Remove any other MX records", because old or incorrect records can stop mail from arriving.
- Keep only one SPF record. If the domain already has a TXT record starting with
v=spf1, merge the two instead of keeping both. A domain must not have multiple SPF records (RFC 7208 §3.2).
Then click Save DNS records.
Other services that send mail for you
If a newsletter tool, help desk or invoicing service also sends mail as your domain, add its include: to the same SPF record. Google's example for Google Workspace plus Microsoft 365 is:
v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all
Keep the total small. SPF stops evaluating after 10 DNS lookups (RFC 7208 §4.6.4), and every include: counts.
Already have older Google MX records? Accounts set up before 2023 may have records that start with aspmx. Google says they're still supported, so if mail works, you don't need to change them.
Step 3: Turn on DKIM
DKIM signs your outgoing mail so receivers can confirm it really came from your domain.
In the Google Admin console:
- Go to Apps → Google Workspace → Gmail and click Authenticate email. You need super-admin rights or the Gmail Settings privilege.
- Select your domain and click Generate New Record.
- Choose the key length. Google recommends 2048 if your DNS host supports it and 1024 otherwise. Keep the default prefix selector
google. - Copy the TXT record name and value.
In our editor:
- Click + Add record. Name
google._domainkey, type TXT, and paste the whole value (it starts withv=DKIM1;). - Click Save DNS records.
Our editor accepts TXT values up to 4,096 characters, so you can paste a 2048-bit key as a single value. Paste it exactly as Google shows it, without extra spaces or line breaks, and afterwards check with a DNS lookup (step 5) that the full key is published.
Then go back to the Admin console and click Start authentication. Don't click it before the record is in DNS. Google's timing notes:
- After you turn on Gmail for a new account, it can take 24–72 hours before you can generate a DKIM key.
- After you add the key, DKIM can take up to 48 hours to start working.
- When it works, the status changes to "Authenticating email with DKIM".
Step 4: Add DMARC
DMARC tells receiving servers what to do with mail that fails SPF and DKIM checks, and where to send reports. Google's guidance is to set up SPF and/or DKIM first and allow 48 hours before adding DMARC, and to start with the policy set to none.
In our editor, add a TXT record:
| Name | Type | Value |
|---|---|---|
_dmarc | TXT | v=DMARC1; p=none; rua=mailto:<your reporting address> |
For the reporting address, use a mailbox you actually read. Google's own example also adds pct=100; adkim=s; aspf=s, which makes the alignment checks strict.
Once the reports show that all your legitimate mail passes, tighten the policy step by step: p=quarantine, then p=reject. Google suggests a gradual rollout, optionally using pct= to apply the policy to a share of messages first.
Why it matters for deliverability
Gmail's sender guidelines (Google Workspace Help, checked 29 Oct 2026) require every sender to "Set up SPF or DKIM". Senders of more than 5,000 messages a day to Gmail must have SPF, DKIM and DMARC, where the DMARC policy "can be set to none". Setting up all three from day one means you never have to retrofit them.
Step 5: Check everything
| Check | How |
|---|---|
| Domain verified | Admin console shows the domain as verified |
| MX | dig example.com MX shows 1 smtp.google.com only |
| SPF | dig example.com TXT shows exactly one v=spf1 record |
| DKIM | Admin console says "Authenticating email with DKIM"; dig google._domainkey.example.com TXT returns your key |
| DMARC | dig _dmarc.example.com TXT returns your record |
| End-to-end | Send a message to a Gmail address, open it, choose "Show original", and look for SPF, DKIM and DMARC "PASS" |
Timing and propagation
| Change | Google's stated time |
|---|---|
| New MX records recognised | Up to 72 hours |
| DKIM working after adding the key | Up to 48 hours |
| Before adding DMARC | Wait 48 hours after SPF/DKIM |
In GetNameDot, saved records are usually live within minutes. Resolvers that cached the old records keep them until their TTL runs out, which is why switching email providers can look "half done" for a while. Lowering the TTL of the old MX record to 5 minutes a day before the switch shortens that window. Our help article on DNS propagation explains why.
Common problems
| Problem | Likely cause | Fix |
|---|---|---|
| Mail still goes to the old provider | Old MX records still present, or cached | Delete every MX except smtp.google.com; wait for the old TTL |
| SPF "permerror" | Two SPF records, or more than 10 lookups | Merge into one record; remove includes you no longer use |
| DKIM never starts | Record added under the wrong name, or the key got broken when pasted | The name must be google._domainkey; paste the value again in one piece |
| Verification fails | Value pasted without google-site-verification=, or the record was removed too soon | Paste the full value and keep it until Google confirms |
| Editor shows "uses custom nameservers" | DNS is hosted elsewhere | Add the records at that provider, or choose "Restore our DNS" on the domain page |
Using Microsoft 365 instead?
Our editor also has a "Preset: Microsoft 365 mail" button. It adds the MX record (your domain with dots replaced by dashes, followed by .mail.protection.outlook.com), the SPF record v=spf1 include:spf.protection.outlook.com -all and the autodiscover CNAME. Check them against the values in your Microsoft 365 admin center before saving.
Related setups
- Pointing the same domain at a website? See connect a domain to Vercel or connect a domain to Shopify. Website records don't affect email as long as you leave MX and TXT records alone.
- Own typo domains that should never send mail? Our brand typosquatting checklist lists the "no email" records.
- Short version of this guide: help: connect Google Workspace.
Frequently asked questions
What is the MX record for Google Workspace?
Google's current instructions are a single MX record with priority 1 and the value smtp.google.com, on the root of the domain (@). Google says to remove any other MX records. Accounts set up before 2023 may use older values that start with aspmx, which Google still supports.
What SPF record does Google Workspace use?
If you send mail only through Google Workspace, Google's record is v=spf1 include:_spf.google.com ~all. If other services also send mail for your domain, add an include: for each of them to the same record. A domain must have only one SPF record.
Where do I get the DKIM key for Google Workspace?
In the Google Admin console under Apps > Google Workspace > Gmail > Authenticate email. Generate the record (2048-bit if your DNS host supports it), add it as a TXT record at google._domainkey, then click Start authentication.
What DMARC policy should I start with?
Google recommends starting with p=none and a reporting address, then moving to quarantine or reject gradually once you have checked the reports. Set up SPF and DKIM first and allow 48 hours before adding DMARC.
How long do Google Workspace DNS changes take?
Google says new MX records can take up to 72 hours to be recognised, and DKIM up to 48 hours to start working after you add the key. In GetNameDot's DNS editor, saved records usually propagate within minutes, up to the TTL of the previous records.