XiaTools

Connecting Google Workspace MX Records: A Step-by-Step Implementation Guide

Updated 09 Oct 2026

Completing a google workspace mx records setup requires updating your domain's DNS configuration to point to Google's mail servers so you can send and receive professional email. Without these specific Mail Exchange records, emails sent to your custom domain will fail to reach your inbox.

Before you begin the configuration process, make sure you have administrator access to your domain registrar or hosting provider's DNS management console. You will also need to sign in to your Google Admin console to retrieve the precise server values required for your specific account.

Understanding Google Workspace MX Records

MX records are fundamental DNS entries that dictate which mail servers accept incoming messages for a domain. Google Workspace relies on a primary server and four backup servers to ensure high availability and reliable message delivery.

When a sender outside your organization transmits an email to user@example.com, their mail transfer agent queries the global DNS system for example.com's MX records. The querying server reads the priority values associated with each record to determine which Google server to contact first. If the primary server is unreachable, the sender's mail server automatically falls back to the secondary and tertiary servers in order of priority.

The Official Google MX Record Values

Google utilizes a standardized set of five MX records for all workspaces. The table below outlines the exact hostnames, types, priorities, and TTL settings you must input into your DNS provider.

Priority Host / Name Record Type Value / Target TTL
1 @ (or blank) MX smtp.google.com. 3600 (or Auto)
5 @ (or blank) MX alt1.smtp.google.com. 3600 (or Auto)
5 @ (or blank) MX alt2.smtp.google.com. 3600 (or Auto)
10 @ (or blank) MX alt3.smtp.google.com. 3600 (or Auto)
10 @ (or blank) MX alt4.smtp.google.com. 3600 (or Auto)

Note: Always include the trailing dot (.) at the end of the Google server addresses if your DNS host requires a fully qualified domain name (FQDN).

Step-by-Step Implementation Guide

Executing a seamless transition to Google mail servers involves clearing out legacy records, inserting the new Google values, and validating the propagation.

Step 1: Remove Conflicting MX Records

Before adding new entries, look through your current DNS zone file for any active MX records pointing to legacy mail providers like Microsoft 365, cPanel, or Zoho. Leaving old records active alongside Google's can cause mail delivery to split unpredictably between providers, resulting in lost messages.

Step 2: Access Your DNS Management Console

Log in to the dashboard of the provider where your domain name is registered. Common providers include Cloudflare, GoDaddy, Namecheap, or AWS Route 53. Navigate to the DNS manager, Zone Editor, or Advanced DNS settings menu. Note that provider menu paths vary slightly depending on your vendor's specific interface design.

Step 3: Add the Five Google MX Records

Create five new records matching the parameters outlined in the table above.

  1. Select MX as the record type.
  2. Enter @ or leave the name field blank to apply the record to your root domain (example.com).
  3. Input the destination server address (e.g., smtp.google.com.).
  4. Assign the correct priority integer (1, 5, or 10).
  5. Save each record individually.

Step 4: Add the SPF Record

To prevent spammers from spoofing your domain name, you must also publish a Sender Policy Framework (SPF) TXT record. Add a TXT record to your root domain with the following value:

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

Verifying Your Configuration

Once your records are published, verify that your changes are visible across the global internet. You can use the XiaTools DNS Propagation Checker to instantly check your MX records from multiple global DNS resolvers, ensuring that your new Google mail routing settings have propagated successfully worldwide.

You can also run local command-line utilities to check your DNS configuration. Open your terminal or command prompt and use dig or nslookup:

dig example.com MX +short

Expected sample output:

10 alt4.smtp.google.com.
5 alt1.smtp.google.com.
1 smtp.google.com.
5 alt2.smtp.google.com.
10 alt3.smtp.google.com.

Common Mistakes and How to Fix Them

Even experienced administrators occasionally encounter setup pitfalls. Review these frequent errors to keep your mail flow uninterrupted:

  • Incorrect Priority Assignment: Assigning priority 1 to all records or reversing numbers can cause mail routing loops or rejection errors. Ensure priority 1 is assigned exclusively to smtp.google.com.
  • Missing Trailing Dots: Some traditional DNS management systems require a fully qualified domain name ending with a dot. If your mail is bouncing with host not found errors, check whether your provider needs smtp.google.com. instead of smtp.google.com.
  • Forgetting Existing Records: If clients report that some internal users are receiving emails while external clients get bounce backs, you likely have residual legacy MX records active in your DNS zone.

Quick Implementation Checklist

  • Logged into Google Admin to confirm your domain ownership and workspace edition.
  • Deleted all legacy MX records pointing to previous email hosts.
  • Added all five official Google MX records with exact priorities (1, 5, 5, 10, 10).
  • Added the required Google SPF TXT record (v=spf1 include:_spf.google.com ~all).
  • Verified global DNS propagation using a reliable lookup tool.
  • Sent a test email from an external webmail account (like Gmail or Outlook) to an active inbox on your custom domain.

Frequently asked questions

How long does it take for Google Workspace MX records to update?

DNS propagation typically takes anywhere from a few minutes up to 24 hours. The exact duration depends heavily on the Time to Live (TTL) values set on your previous DNS records before you made the change.

What happens if I set the wrong priority numbers for my Google MX records?

If your priorities are configured incorrectly, sending mail servers may struggle to identify your primary server, leading to delayed message delivery, timeouts, or complete delivery failure with bounce-back errors.

Do I need to delete my old MX records before adding Google's records?

Yes, you must remove old MX records from previous providers. Having competing MX records active at the same time splits your incoming mail delivery unpredictably and causes missing messages.

Can I use Google Workspace MX records with a subdomain like mail.example.com?

Google Workspace MX records are designed to receive mail for your primary root domain (e.g., user@example.com). Pointing MX records to a subdomain requires custom routing adjustments and is not standard for general user accounts.

Why am I still unable to receive emails after updating my MX records?

If mail is failing, verify that your domain status is active in the Google Admin console, check that your DNS records match Google's specifications exactly without typos, and ensure your user accounts are fully provisioned.

Related articles

Free tools