Set Up Google Workspace Email on Your Own Domain
If you moved to Google Workspace and customer emails stopped arriving, one of two things usually went wrong: mail was switched over before every mailbox existed, or old mail records were left in place. This guide follows the order Google lays out in Avoid issues when changing MX records. Done in that order, mail to name@yourbusiness.com lands in Gmail, passes spam checks and keeps your old messages.
Lost mail means customers who think you ignored them. Gmail's sender rules require SPF or DKIM from everyone who sends to personal Gmail accounts, so skipping them can put your replies in spam from day one. The steps work with any domain registrar and any web host. Every check runs in Google's own browser tools, so it works the same on Windows, macOS and Linux.
Why do emails stop arriving after a move to Google Workspace?
Usually the MX record changed before the mailboxes existed, old MX records stayed next to Google's, or the change hasn't spread yet. Google says a new MX record can take up to 72 hours to be recognized. Until then, some mail still reaches the old provider. Keep the old mailboxes open until the import is done.
What do you need before you start?
Access to your DNS settings, the Workspace super admin login, and a list of every address and every service that sends mail as your domain.
- The login for your DNS host. That is usually where you bought the domain, or your web host if it runs DNS for you.
- The Workspace super admin account.
- A list of people and shared addresses, such as info@ and sales@.
- A list of other senders: website contact form, newsletter tool, online store, help desk.
- Each old mailbox's IMAP server address and password, or an app password.
- One license per person. Licenses can't be shared. On the Flex plan, adding a user raises the monthly bill. On the Annual plan, buy licenses before you add accounts.
How do you prove you own the domain?
Add the TXT record Google gives you at your DNS host, then click Confirm in the Admin console.
- In the Google Admin console, go to Account > Domains > Manage domains and click Verify domain.
- Click Get started, pick your registrar and copy the TXT value, including
google-site-verification=. - At your DNS host, add a TXT record with Name
@or blank and that value. Save it. - Back in the Admin console, choose the option to come back and confirm, then click Confirm.
- Verification can take up to 72 hours. Don't delete the TXT record until it succeeds.
Google's full steps: Verify your domain with a TXT record.
Why should you add your team before you switch the mail?
Once your MX record points to Google, mail sent to an address that doesn't exist there yet bounces.
- Add each person as a user in the Admin console. For small teams, Google says one at a time is easiest. See Options for adding users.
- Create groups or aliases for shared addresses like info@.
- Optional: set up a catch-all for misspelled addresses.
How do you send your domain's email to Gmail?
Delete every old MX record, add one MX record pointing to smtp.google.com with priority 1, then click Activate Gmail.
- Pick a quiet time, such as an evening or a weekend. Tell key contacts when the switch will happen and ask them to resend anything that bounces.
- At your DNS host, delete every old MX record.
- Add one MX record: Name
@or blank, Priority1, Valuesmtp.google.com. Some hosts need a trailing dot:smtp.google.com.. Others put priority and value on one line:1 smtp.google.com. - Go to Account > Domains > Manage domains and click Activate Gmail.
- Don't cancel the old mailboxes yet. Mail may reach them for up to 72 hours.
Older guides show five aspmx records. Google still supports them if they already work, but never mix them with another provider's records. Google's page: Set up MX records for Google Workspace.
Which records keep your mail out of spam?
You need three TXT records. SPF lists who may send as you. DKIM signs each message. DMARC tells other servers what to do with mail that fails.
Who may send as you (SPF)
Add exactly one SPF record, as a TXT record at @. If Workspace is your only sender, use v=spf1 include:_spf.google.com ~all. If your website, newsletter tool or store also sends as your domain, add an include: for each one to that same record. Google's table lists values for common services, such as include:servers.mcsv.net for Mailchimp. One record can hold at most 10 include: tags, and SPF can take up to 48 hours to work. See Set up SPF.
A signature on every email (DKIM)
- Wait 24–72 hours after you activate Gmail. Try earlier and you may get the error “DKIM record was not created”.
- Go to Apps > Google Workspace > Gmail > Authenticate email, pick the domain and click Generate New Record.
- Choose 2048 bits, or 1024 if your DNS host can't take long values. Keep the selector
google. - Add a TXT record with host
google._domainkeyand the value that startsv=DKIM1; k=rsa; p=. - Wait up to 48 hours, then click Start authentication. The status should read “Authenticating email with DKIM”. A warning to update DNS can hang around for up to 48 hours even when the record is right.
Google's page: Set up DKIM.
What to do with mail that fails (DMARC)
Wait 48 hours after SPF and DKIM start working. First create a Google Group or mailbox for the reports, and name the person who will read them every week. Then add a TXT record at _dmarc, starting with p=none. Gmail requires all three records from senders above a daily volume Google sets. Everyone else needs SPF or DKIM. See Set up DMARC.
What does the finished DNS setup look like?
Five records: one verification TXT, one MX, one SPF, one DKIM and one DMARC. Copy this sheet and swap in your own values.
# Google Workspace record sheet # Order: verify -> add users -> MX -> SPF -> DKIM (24-72 h after Gmail) -> DMARC (48 h later) -> import -> delta import Type Name Value TXT @ google-site-verification=PASTE-FROM-ADMIN-CONSOLE MX @ 1 smtp.google.com TXT @ v=spf1 include:_spf.google.com ~all TXT google._domainkey v=DKIM1; k=rsa; p=PASTE-FROM-ADMIN-CONSOLE TXT _dmarc v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com # One MX record only. One SPF line only. Add an include: per extra sender.
How do you bring your old mail across?
Use the data import tool in the Admin console. It copies mail from an IMAP account and runs in the cloud. Don't rely on Gmail's “Check mail from other accounts”. Google has stopped offering it to new users and has published a plan to retire it for everyone else. See Google's published plan.
- Sign in as a super admin. Go to Data > Data import & export > Data import. Under IMAP, click Import.
- Enter or pick the IMAP server, click Test connection and wait for “Connected”.
- With 20 users or fewer, match each old address and password to its Workspace address. With more, upload a CSV with the columns
Source ImapUser,Source ImapPasswordandTargetGUser, up to 100 users per import. - Set a start date and click Start import. Google emails you a report when it finishes.
- After the MX change settles, run a Delta import to catch late mail.
- Download the reports, then click Exit import. Exiting deletes that import's reports.
IMAP must be on for both the old and new accounts, and some old providers need an app password. Full steps: Import email from an IMAP account.
How do you check that everything works?
Look up your records in Google Admin Toolbox Dig, send test mail from a phone, and check “Show original” on a message you sent to someone else.
- Open Admin Toolbox Dig and type your domain without www. The MX answer should show only
smtp.google.com. In the TXT view, look for exactly onev=spf1line. Then look upgoogle._domainkey.yourdomain.comand_dmarc.yourdomain.com. - From a phone that isn't on company email, send a message to each new address and confirm it arrives in Gmail.
- Send from Workspace to someone else on Gmail, since you can't test DKIM by mailing yourself. They open the message's three-dot menu, choose Show original and look for
dkim=pass. - Read the import report. Compare message counts in a few mailboxes before you close the old account.
What are the common mistakes?
- Leaving old MX records next to Google's. Mail keeps going to the old server, so delete every MX record except
smtp.google.com. - Two SPF records, or one that leaves out a sender. Mail lands in spam. Merge everything into one line that lists every sender.
- Switching MX before the mailboxes exist. Mail bounces. Create users and aliases first.
What if your website runs on a PomeloHost VPS?
Outbound port 25 is closed by default on a PomeloHost VPS and may be opened on request after review. If your contact form sends mail from that server, ask for that before the switch. Then add the server to your single SPF record.
What should you do once it all works?
Turn on 2-Step Verification for everyone, and make sure a named person reads the DMARC reports. Google has begun enforcing 2-Step Verification for admin accounts and calls security keys the most secure option. See Protect your business with 2-Step Verification. Close the old mailboxes only after the delta import has run and your checks pass.
Frequently asked questions
How do I use Gmail with my own domain name?
Sign up for Google Workspace, verify your domain with a TXT record, and add each person as a user. Then point your MX record to smtp.google.com and click Activate Gmail. Your team reads name@yourbusiness.com in the normal Gmail app. Add SPF, DKIM and DMARC so the mail you send stays out of spam.
What are the MX records for Google Workspace?
There is one record: Name @ or blank, priority 1, value smtp.google.com. Delete every other MX record first. Older accounts may use the five aspmx records, which Google still supports if they already work. Never mix them with another provider's records. Check the result in Google Admin Toolbox Dig, which runs in any browser.
How long do DNS changes take for Google Workspace?
Google allows up to 72 hours for domain verification and for the MX record, and up to 48 hours for SPF and for DKIM. Some changes show up sooner, but plan for the full window. Keep the old mailboxes open, and keep the verification record until Google confirms it.
Can I test DKIM by sending an email to myself?
No. Google says you can't check DKIM by mailing yourself. Send a message from Workspace to someone with a different Gmail account. Ask them to open the message's three-dot menu, choose Show original and look for dkim=pass. If it's missing, wait the full 48 hours, then recheck the TXT record at google._domainkey.
Does this setup work with any registrar or web host?
Yes. Every step uses standard TXT and MX records that any DNS host can store. Some hosts want a trailing dot after smtp.google.com, or the priority and value on one line. If your host can't take a long DKIM value, generate a 1024-bit key instead of 2048. The steps stay the same.