| |

Google Workspace MX Records Setup: Modern Single vs Legacy 5-Record DNS

Illustration of Google Workspace MX Records Setup workflow in Google Workspace

Verified Answer

Modern Google Workspace domains created after April 2023 require only one MX record: host @, priority 1, pointing to smtp.google.com. Legacy 5-record sets (aspmx.l.google.com and alt1–alt4) still work for older domains, but mixing them with stale cPanel or registrar MX entries causes bounces and split delivery.

Misconfigured MX records remain the leading cause of vanished customer inquiries during Google Workspace onboarding. Mixing Google’s modern single-record standard with legacy five-record sets or leftover cPanel entries creates split delivery and bounce loops. Here is how to verify and cut over cleanly.

Single-Record Standard

Domains provisioned after April 2023 route all inbound mail through one priority-1 record: smtp.google.com.

Zero Stale Conflicts

Deleting old shared-hosting MX entries prevents intermittent bounces, split delivery, and lost contact alerts.

Pre-Cutover TTL Drop

Lowering DNS TTL to 300 seconds 24 hours ahead lets new MX records propagate within minutes.

Modern Single MX vs. Legacy 5-Record Architecture

Before you touch a single DNS record, confirm which MX pattern your Google Admin Console expects. For more than fifteen years, Google Workspace (and its predecessors G Suite and Google Apps) instructed administrators to publish five separate MX records: ASPMX.L.GOOGLE.COM at priority 1, ALT1.ASPMX.L.GOOGLE.COM and ALT2.ASPMX.L.GOOGLE.COM at priority 5, and ALT3.ASPMX.L.GOOGLE.COM and ALT4.ASPMX.L.GOOGLE.COM at priority 10.

In April 2023, Google modernized its inbound mail routing for all newly created Workspace tenants. Instead of forcing DNS administrators to maintain five hostnames and multiple priority tiers, Google introduced a single anycast-backed endpoint: smtp.google.com with priority 1. According to the official Google Workspace Admin Help documentation, you should never mix the new single record with the legacy five-record list on the same domain—use whichever set your Google Admin Console setup wizard displays.

Configuration Dimension Modern Single MX (2023–2026+) Legacy 5-Record MX Set
MX Hostname(s) smtp.google.com aspmx.l.google.com + alt1 through alt4.aspmx.l.google.com
Priority Value(s) 1 (single entry) 1 (primary), 5 (alt1/alt2), 10 (alt3/alt4)
Applies To Domains activated after April 2023 Domains activated prior to April 2023
Failover Mechanism Global anycast BGP & multi-IP A/AAAA rotation Client-side SMTP retry across 5 distinct hostnames
Admin Overhead Minimal; 1 DNS record to audit and maintain Higher; 5 records prone to typo or partial deletion

Why Google Consolidated to smtp.google.com

Historically, publishing five MX records at staggered priorities (1, 5, and 10) gave sending mail transfer agents (MTAs) a fallback list if the primary IP pool became unreachable. Today, smtp.google.com resolves dynamically to multiple redundant IPv4 and IPv6 addresses across Google’s global edge network. When a sending server queries smtp.google.com, DNS returns a healthy pool of inbound relays automatically, eliminating the need for manual alt1–alt4 failover entries.

If you already verified your domain—covered in our complete DNS domain verification guide—you do not need to migrate an older, working 5-record domain to smtp.google.com unless Google Admin Console explicitly prompts you to update it. Both architectures route into the same Gmail processing pipeline, and both support Business Starter, Business Standard, Business Plus (with Google Vault), and Enterprise plans equally.

Pre-Cutover TTL Reduction and MX Routing Flowchart

The biggest mistake administrators make during an MX cutover is editing the DNS zone while the existing MX record still carries a 14,400-second (4-hour) or 86,400-second (24-hour) Time-To-Live (TTL). Recursive DNS resolvers worldwide cache your old MX record for the full TTL duration. Even after you save 1 smtp.google.com, external senders whose resolvers cached the old record will continue delivering mail to your previous server for hours.

Follow a clean four-stage MX routing sequence to eliminate propagation blind spots:

Terminal / CLI

mx-cutover-routing-flow ~ architecture
FLOWCHART

Terminal / CLI
[Stage 1: T-24 Hours] Lower existing MX TTL to 300s (5 min)
          |
          v
[Stage 2: T-0 Cutover] Delete ALL non-Google MX records (mail.domain.com, mx1.host.com)
          |
          v
[Stage 3: Publish MX]  Add single record: Host=@ | Type=MX | Priority=1 | Target=smtp.google.com
          |
          v
[Stage 4: Host Sync]   If domain sits on cPanel/WHM -> Set Email Routing = Remote Mail Exchanger
          |
          v
[Stage 5: T+15 Min]    Verify with dig +short MX yourdomain.com -> Expect: "1 smtp.google.com."

Notice Stage 2 in the flowchart above: delete every old MX record rather than leaving it at a higher priority number like 20 or 50. Many admins mistakenly keep their old hosting MX record at Priority 20 as a “backup.” In reality, spammers deliberately target higher-numbered secondary MX records to bypass primary spam filtering, and temporary rate-limiting on any server can cause legitimate mail to land in an unmonitored old mailbox.

Step-by-Step Google Workspace MX Records Setup Across DNS Providers

Before editing DNS, determine which platform holds your authoritative nameservers. If your domain is registered at GoDaddy but points to Cloudflare nameservers, any MX change made inside GoDaddy will be completely ignored—you must edit DNS inside Cloudflare. Similarly, if your domain uses your web host’s nameservers (e.g., ns1.yourhost.com), edit the zone inside cPanel or DirectAdmin. For a full breakdown of keeping your web hosting untouched while moving email, see our guide on connecting Google Workspace to your existing website without changing hosting.

Cloudflare, GoDaddy, and cPanel Zone Syntax

Each DNS dashboard formats root hostnames and trailing dots slightly differently. Use the exact syntax below to prevent validation errors or accidental subdomain creation:

  • Cloudflare DNS: Navigate to DNS > Records > Add record. Select Type MX, Name @ (Cloudflare automatically expands @ to your root domain), Mail server smtp.google.com, Priority 1, and TTL Auto (or 5 min during cutover). Note that MX records are never proxied (orange-clouded) in Cloudflare.
  • GoDaddy DNS: Open DNS Management, delete existing MX rows, and click Add New Record. Set Type to MX, Name to @, Priority to 1, Value to smtp.google.com, and TTL to 1/2 Hour (or 600 seconds in custom mode).
  • cPanel Zone Editor: Open Domains > Zone Editor > Manage, filter by MX, and remove all existing entries. Click + Add Record > Add “MX” Record. Enter your domain with a trailing dot (yourdomain.com.) in the Name field, TTL 300, Priority 1, and Destination smtp.google.com.
  • BIND / Raw Zone Files: If you manage self-hosted BIND9 or PowerDNS zones, append a trailing dot to smtp.google.com. so BIND does not append your origin domain twice (which would create the invalid target smtp.google.com.yourdomain.com).
Terminal / CLI

bind9-zone-example ~ db.yourdomain.com
DNS ZONE

Terminal / CLI
; Correct Modern Google Workspace MX Record (BIND9 / RFC 1035 Syntax)
@       300     IN      MX      1       smtp.google.com.

; WRONG - Missing trailing dot causes BIND to append $ORIGIN:
; @     300     IN      MX      1       smtp.google.com

Eliminating Stale Hosting MX Records and cPanel Local Routing

Even when your public DNS shows 1 smtp.google.com cleanly, mail sent from your own web server—such as WordPress contact forms, WooCommerce order receipts, or invoice alerts—can still fail to reach Google Workspace. Why? Because cPanel and WHM default to Local Mail Exchanger whenever an account is provisioned on the server.

When cPanel’s Exim mail server sees an outgoing message addressed to [email protected], it checks /etc/localdomains before performing a public MX lookup. If your domain is listed in localdomains, Exim delivers the message straight into the local cPanel mailbox on disk and never queries smtp.google.com. External senders from Gmail or Outlook reach your Workspace inbox, while your own website’s emails vanish into an abandoned Roundcube inbox.

To fix this permanently:

  1. Log in to cPanel and open Email > Email Routing.
  2. Select your primary domain from the dropdown menu.
  3. Change the radio button from Automatically Detect Configuration or Local Mail Exchanger to Remote Mail Exchanger.
  4. Click Change. cPanel immediately removes your domain from /etc/localdomains and adds it to /etc/remotedomains, forcing Exim to honor your public smtp.google.com MX record.

If you still experience missing messages after toggling Remote Mail Exchanger, run through our 7 DNS and routing diagnostics for Google Workspace not receiving emails, and consider routing website transactional mail through smtp-relay.gmail.com so WordPress notifications never rely on local PHP mail().

Verifying MX Propagation and Completing Email Authentication

Once your MX record is saved, do not rely solely on the “Activate Gmail” button inside Google Admin Console—verify the live authoritative and recursive DNS answers from the command line or a public lookup tool. Run dig against both your authoritative nameserver and Google Public DNS (8.8.8.8) to confirm zero stale records remain:

Terminal / CLI

verify-mx-propagation ~ bash
BASH

Terminal / CLI
# 1. Query Google Public DNS for live MX records
dig @8.8.8.8 +short MX yourdomain.com
# Expected Output:
# 1 smtp.google.com.

# 2. Verify Cloudflare 1.1.1.1 agrees (zero split-brain cache)
dig @1.1.1.1 +short MX yourdomain.com

# 3. Windows PowerShell equivalent
Resolve-DnsName -Name yourdomain.com -Type MX -Server 8.8.8.8

Receiving email is only half of production readiness. Immediately after activating your MX record in Google Admin Console, publish your outbound authentication stack so your emails do not land in recipient spam folders:

  • SPF Record (TXT): Publish v=spf1 include:_spf.google.com ~all at root @ (merging any existing CRM or newsletter senders into the same single TXT string).
  • 2048-bit DKIM Key: Generate a 2048-bit key in Apps > Google Workspace > Gmail > Authenticate email, publish the google._domainkey TXT record, and click Start authentication.
  • Staged DMARC Policy: Start with v=DMARC1; p=none; rua=mailto:[email protected] at _dmarc before tightening to quarantine and reject.

Whether you deploy Business Starter for lean teams, Business Standard for 2 TB pooled storage and Gemini AI features, or Business Plus for Google Vault compliance—on either Annual or Flexible billing—clean MX routing ensures every business-critical message arrives reliably.

Frequently Asked Questions

Should I use 1 smtp.google.com or the 5 ASPMX.L.GOOGLE.COM MX records?

Use 1 smtp.google.com if your Google Workspace account was created after April 2023 and your Admin Console setup wizard specifies the single-record format. Only older domains provisioned prior to April 2023 should keep the legacy 5-record set, and you should never combine both sets in the same DNS zone.

Can I keep my old webmail MX record at priority 20 as a backup?

No. Keeping a legacy hosting MX record at a higher priority number causes split delivery and allows spammers to target your secondary server to bypass Google’s spam filters. Delete all non-Google MX records so 100% of inbound mail flows exclusively to Google Workspace.

How long does Google Workspace MX record propagation take?

If you lower your existing MX TTL to 300 seconds 24 hours before the cutover, most global resolvers update within 5 to 15 minutes. Without a prior TTL reduction, propagation can take up to 24 to 48 hours depending on your previous TTL setting.

Why are website contact form emails not arriving in Google Workspace after MX setup?

On cPanel and WHM servers, Email Routing defaults to Local Mail Exchanger, causing the web server to deliver domain-addressed emails locally instead of checking public MX records. Switch Email Routing to Remote Mail Exchanger in cPanel and configure smtp-relay.gmail.com for reliable transactional sending.

Does changing MX records affect my live website or SSL certificate?

No. MX records control only incoming email routing. Your website traffic relies on A, AAAA, and CNAME records, which remain untouched on your web host.

What should I put in the Name or Host field when adding smtp.google.com?

Most DNS providers such as Cloudflare, GoDaddy, and Namecheap expect @ to represent your root domain. cPanel Zone Editor expects your full domain name with a trailing dot (such as yourdomain.com.).

Switching Inbound Mail to smtp.google.com?

Cutting over MX records cleanly requires removing legacy hosting entries and staging a low TTL beforehand. Review Google Workspace plans with guided single-MX configuration if you want hands-off DNS cutover support.

Review Workspace Plans With DNS Setup