Startup India · DPIITNVIDIA Inception

DNS guide

Google Workspace MX Records

The Google Workspace MX record is a single entry: smtp.google.com with priority 1. Domains set up before 2023 may still use the five legacy ASPMX records, which Google continues to support.

DNS records · northwind.io
TypeNamePriorityValue
MX@10mx1.oldhost.example
MX@1smtp.google.com

Gmail activated for northwind.io

Values

Google Workspace MX record values

Use this record for any new setup. Delete every other MX record on the domain first: Google warns that old or incorrect MX records can stop email working.

TypeName / HostPriorityValueTTL
MX@1smtp.google.comYour host's default

Legacy Google MX records (setups before 2023)

If your domain already uses these five records and mail arrives, leave them alone. ASPMX.L.GOOGLE.COM must stay the top-priority record.

ValuePriority
ASPMX.L.GOOGLE.COM1
ALT1.ASPMX.L.GOOGLE.COM5
ALT2.ASPMX.L.GOOGLE.COM5
ALT3.ASPMX.L.GOOGLE.COM10
ALT4.ASPMX.L.GOOGLE.COM10

If Gmail is working, don't touch your MX records

Google's guidance is explicit: changing working MX records can cause incoming email to bounce. Switching from the legacy set to smtp.google.com gains you nothing in delivery or reliability.

Basics

What is an MX (mail exchanger) record?

An MX record tells the internet which server accepts email for your domain. It holds a host name, never an IP address, and a priority number.

How an MX record routes incoming mail

The sender never needs to know you use Google. It asks DNS, and DNS answers.

Sender’s mail serverhas a message for [email protected]1. ask DNSDNS lookup: MX northwind.io?answer → 1 smtp.google.com2. connect over SMTPsmtp.google.comGoogle’s inbound mail servers3. deliver[email protected]message lands in the Gmail inbox

When a domain has several MX records, sending servers try the lowest priority number first and fall back to higher ones, as defined in RFC 5321. That is why the legacy Google set uses 1, 5 and 10, while the single smtp.google.com record only needs 1.

Gmail MX records vs Google Workspace MX records

People searching for “Gmail MX records” often find the records for gmail.com itself. Those route @gmail.com addresses only; never copy them onto your own domain.

MX records published by gmail.com, checked October 2026
ValuePriority
gmail-smtp-in.l.google.com5
alt1.gmail-smtp-in.l.google.com10
alt2.gmail-smtp-in.l.google.com20
alt3.gmail-smtp-in.l.google.com30
alt4.gmail-smtp-in.l.google.com40

Setup

How to add Google Workspace MX records at your DNS host

The same four steps work everywhere. Only the menu names change.

  1. Step 1

    Clear old MX

    Delete every existing MX record for the domain or subdomain.

  2. Step 2

    Add the record

    Type MX, host @, priority 1, value smtp.google.com.

  3. Step 3

    Save

    Some hosts want a trailing dot: smtp.google.com.

  4. Step 4

    Activate Gmail

    Admin console › Manage domains › Activate Gmail.

DNS hostWhere to add itFields
GoDaddyDomain Portfolio › your domain › DNS › Add New Record › Type: MXName @ · Priority 1 · Value smtp.google.com
CloudflareDNS › Records › Add record › Type: MXName @ · Mail server smtp.google.com · Priority 1
NamecheapDomain List › Manage › Advanced DNS › Mail Settings › Custom MXHost @ · Value smtp.google.com · Priority 1
Squarespace (incl. former Google Domains)Domains › your domain › DNS › DNS Settings › Add record › MX, or the Google Workspace presetName @ · Priority 1 · Mail Server smtp.google.com

Namecheap advises choosing Custom MX rather than its Gmail template, which it says doesn't work reliably. Squarespace adds the records for you if you signed up for Google Workspace through Squarespace.

Verify

Check your MX records

Run your domain through the checker, or query DNS directly. Expect smtp.google.com and nothing else.

Checks SPF, DKIM, DMARC and MX records live. Free, no sign-up.

macOS / Linux

dig MX northwind.io +short
1 smtp.google.com.

Windows

nslookup -type=mx northwind.io

Want mailboxes with DNS already done?

Jetmail sets up Google Workspace mailboxes with MX, SPF, DKIM and DMARC published automatically, usually in about five minutes. See Google Workspace mailboxes.

Next

MX gets mail in. Three more records get it delivered.

Sending cold email from secondary domains? Give each one working MX records too, so replies and bounce notices reach you.

Sources: Google: set up MX records · Google: MX record values (legacy) · RFC 5321 §5.1 (MX priority) · Namecheap: MX records · Squarespace: DNS records for email · Cloudflare: DNS record types · GoDaddy: manage DNS records

Get a free DNS audit

Tell us where to send it. We'll reply with mailbox, domain and DNS recommendations for your sending volume — or start right away and have mailboxes live in minutes.

Where should we send it?

Or see pricing →

Frequently asked questions

What are the MX records for Google Workspace?

One record: smtp.google.com with priority 1, added at your root domain (@). Domains that started using Google Workspace before 2023 may have the older five-record set starting with ASPMX.L.GOOGLE.COM, which Google still supports.

What is an MX record?

An MX (mail exchanger) record is a DNS record that names the server that accepts email for a domain, with a priority number. Sending servers look it up before delivering. When there are several, the lowest number is tried first.

Do I need to replace my old ASPMX records with smtp.google.com?

No. Google says the legacy values are still supported, and if Gmail is already receiving mail you shouldn't change your MX records, because a mistake can make incoming mail bounce.

What are Gmail's MX records?

The gmail.com domain uses its own servers, such as gmail-smtp-in.l.google.com. Those are only for @gmail.com addresses. For your own domain on Google Workspace, use smtp.google.com.

Where do I set Google Workspace MX records for a former Google Domains domain?

Google Domains registrations moved to Squarespace. Open the domain in Squarespace, go to DNS and DNS Settings, and add an MX record with priority 1 and smtp.google.com, or apply the Google Workspace preset.

How long do MX record changes take?

Google says changes can take up to 72 hours to take effect; how quickly you see them depends on the TTL of the old record. Click Activate Gmail in the Admin console once the new record is published.

Before you go

Get a free DNS audit

Tell us where to send it. We'll reply with mailbox, domain and DNS recommendations for your sending volume.

We only use your email to reply to this request.