Route Custom Domain Email to Google Workspace with Namecheap DNS

by Fahim Mahmud Chisti

To route your custom domain email to Google Workspace with Namecheap DNS, you replace Namecheap’s mail records with Google’s MX record and add three TXT records: SPF, DKIM and DMARC. When you finish, mail sent to you@yourdomain.com arrives in Gmail, the mail you send passes the checks that keep it out of spam, and your website records stay untouched.

Quick answer: In Namecheap Advanced DNS, set Mail Settings to Custom MX and add one MX record, smtp.google.com with priority 1 on host @. Then add Google’s verification, SPF, DKIM and DMARC TXT records under Host Records.

  1. Add your domain in Google Admin and copy the TXT verification value.
  2. Add that TXT record on host @ in Namecheap and click Verify in Google Admin.
  3. Switch Mail Settings to Custom MX and add MX smtp.google.com with priority 1.
  4. Add the SPF TXT record v=spf1 include:_spf.google.com ~all.
  5. Generate the DKIM key in Google Admin, add it as a TXT record, then add DMARC.
  6. Check the result with dig MX yourdomain.com +short.
In this guide
  1. Before You Start
  2. How Namecheap and Google Workspace Work Together
  3. The DNS Records You Will Add
  4. Step 1: Verify Domain Ownership in Google Admin
  5. Step 2: Clear Out Conflicting Mail Records in Namecheap
  6. Step 3: Add Google Workspace MX Records
  7. Step 4: Configure SPF in Namecheap BasicDNS
  8. Step 5: Generate and Add the DKIM Signature
  9. Step 6: Add a DMARC Record for Security
  10. Step 7: Check the Records From Your Terminal
  11. If Mail Still Bounces or Lands in the Wrong Place
  12. Frequently Asked Questions
  13. Next Steps
Route Custom Domain Email to Google Workspace with Namecheap DNS

Before You Start

  • Access: your Namecheap login and a Google Workspace super admin account.
  • Nameservers: the domain must use Namecheap BasicDNS (Domain tab > Nameservers). If it uses Cloudflare or another provider, add the same records in that provider’s panel instead.
  • Note your current records: screenshot the Advanced DNS page, especially existing MX and TXT rows, so you can roll back.
  • Create users first: add each mailbox in Google Workspace before you change MX records. Mail for an address that doesn’t exist in Workspace bounces.
  • Email can pause: once you switch Mail Settings, the old service (Private Email or Email Forwarding) stops receiving. Make the MX change in one sitting.
  • Time: about 30 minutes of work. New records usually resolve within an hour, but Google says MX changes can take up to 72 hours to be recognized.

How Namecheap and Google Workspace Work Together

Google Workspace hosts the mailboxes, but Namecheap hosts your DNS. When someone sends an email to hello@yourdomain.com, their mail server asks your Namecheap nameservers for the domain’s MX (Mail Exchanger) records to find out where to deliver it.

If those MX records still point to a Namecheap service, mail never reaches Google. You will point the MX record at Google and add TXT records that prove the mail you send is genuine. Your A and CNAME records for the website don’t change.

The DNS Records You Will Add

Here is the full set at a glance. The steps below explain where each one comes from.

Type Host Value Priority TTL
TXT (verification) @ google-site-verification=… (copied from Google Admin) – Automatic
MX (under Mail Settings > Custom MX) @ smtp.google.com 1 Automatic
TXT (SPF) @ v=spf1 include:_spf.google.com ~all – Automatic
TXT (DKIM) google._domainkey v=DKIM1; k=rsa; p=… (generated in Google Admin) – Automatic
TXT (DMARC) _dmarc v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com – Automatic

Older Workspace accounts may list five ASPMX servers instead of smtp.google.com. Step 3 covers both; use one set, not both.

Step 1: Verify Domain Ownership in Google Admin

Google won’t route a single message until you prove you actually control the domain. Google Admin handles this with a simple TXT challenge record.

  1. Head over to the Google Admin Console.
  2. Go to Account > Domains > Manage domains.
  3. Click Add a domain, enter your domain name, and choose to verify with a TXT record.
  4. Copy the TXT value—it’ll look something like google-site-verification=abc123xyz....

Now open Namecheap, go to your Domain List, click Manage next to the domain, and open the Advanced DNS tab. Under Host Records, add this TXT record:

Type: TXT Record
Host: @
Value: google-site-verification=rX8qZ9_EXAMPLE_VERIFICATION_STRING_wY71k
TTL: Automatic (or 5 min)

Go back to Google Admin and click Verify. Namecheap BasicDNS usually publishes new TXT records within a few minutes. If Google can’t find the record yet, wait 10 to 15 minutes and try again.

Step 2: Clear Out Conflicting Mail Records in Namecheap

The most common mistake is leaving Namecheap’s old mail setup running next to the Google MX records. Mail then splits: some messages land in Gmail and others go to the old service or bounce.

Inside the Advanced DNS tab:

  • Scroll down until you see the Mail Settings card.
  • If it’s set to Private Email, Email Forwarding, or another option, click the dropdown.
  • Select Custom MX. Namecheap’s own documentation says to configure Google Workspace this way rather than with the Gmail preset.

Custom MX lets you explicitly control endpoints and priorities. Delete any old MX rows left under Mail Settings before moving to the next step. One caution: switching away from Private Email or Email Forwarding stops delivery to that service, so create your users in Google Workspace first and do this step and the next one in the same sitting.

Step 3: Add Google Workspace MX Records

Google Workspace uses two different setups depending on when your workspace was provisioned: a modern single-record format (what Google has shown since 2023) and the older five-server cluster. Google supports both, and any account can use the single record.

Modern Single MX Record

If your setup uses the newer single-record format, plug this in under Mail Settings > Custom MX:

Type: MX Record
Host: @
Value: SMTP.GOOGLE.COM.
Priority: 1
TTL: Automatic

Legacy 5-Record Cluster

If your Admin console still lists the classic five-server pool, add all five rows into Namecheap:

Host: @ | Value: ASPMX.L.GOOGLE.COM. | Priority: 1
Host: @ | Value: ALT1.ASPMX.L.GOOGLE.COM. | Priority: 5
Host: @ | Value: ALT2.ASPMX.L.GOOGLE.COM. | Priority: 5
Host: @ | Value: ALT3.ASPMX.L.GOOGLE.COM. | Priority: 10
Host: @ | Value: ALT4.ASPMX.L.GOOGLE.COM. | Priority: 10

Click the green checkmark on each line to save. Add either the single record or the five-record set, never both. If you need a deeper look at priorities and failover rules, check the official Google Workspace MX record documentation and the Namecheap Gmail configuration guide.

Step 4: Configure SPF in Namecheap BasicDNS

MX records only handle receiving mail. SPF (Sender Policy Framework) tells other mail servers that Google is allowed to send mail for your domain. Without it, your messages to Outlook or Yahoo users are likely to land in junk.

Under Host Records in Namecheap, add this TXT record:

Type: TXT Record
Host: @
Value: v=spf1 include:_spf.google.com ~all
TTL: Automatic

If you’re also sending transactional emails from an app hosted on Vercel, AWS SES, or a VPS, don’t create multiple SPF records—merge them into one v=spf1 string. Take a look at our walkthrough on how to configure SPF, DKIM, and DMARC in Namecheap for merged syntax examples.

Step 5: Generate and Add the DKIM Signature

DKIM signs your outgoing emails with a cryptographic key so receivers know the message wasn’t modified in transit. Google Workspace leaves this turned off by default until you manually generate the keys.

  1. In Google Admin, head to Apps > Google Workspace > Gmail > Authenticate email.
  2. Pick your domain from the dropdown.
  3. Click Generate new record. Select a 2048-bit key (Namecheap supports 2048-bit strings without truncation) and leave the prefix selector as google.
  4. Copy both the DNS Host name (usually google._domainkey) and the long TXT record value.

Back in Namecheap’s Advanced DNS, add a new TXT record under Host Records:

Type: TXT Record
Host: google._domainkey
Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0t...[your long key]...DAQAB
TTL: Automatic

Paste the value as a single line. Give it a few minutes to propagate (Google says DKIM changes can take up to 48 hours), then head back to Google Admin and click Start authentication. Once Google finds the record, the status changes to show that email is being authenticated with DKIM.

Step 6: Add a DMARC Record for Security

DMARC ties SPF and DKIM together. It instructs receiving mail servers on what to do if an incoming email claims to be from your domain but fails SPF or DKIM checks. Gmail and Yahoo require a DMARC record from bulk senders, and it is good practice for everyone else.

Add this TXT record in Namecheap. It starts in monitoring mode (p=none), which collects reports without affecting delivery:

Type: TXT Record
Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
TTL: Automatic

Stick with p=none for the first few weeks. Once the reports show all of your legitimate mail passing SPF or DKIM, tighten it up to p=quarantine and later p=reject.

Step 7: Check the Records From Your Terminal

Web lookup tools can show cached answers, so query the records directly with dig. Run these in a terminal on your own computer (macOS, Linux, or WSL on Windows). On Windows without dig, nslookup -type=mx yourdomain.com gives the same MX answer.

Check that your MX records point to Google:

dig MX yourdomain.com +short

You should see output similar to this:

1 smtp.google.com.

With the older five-record setup you see the five ASPMX hosts instead, with priorities 1, 5, 5, 10 and 10. If any other mail server appears in the list, delete that row in Mail Settings.

Next, query your SPF and DKIM TXT records directly against Google’s public resolver:

dig TXT yourdomain.com @8.8.8.8 +short
dig TXT google._domainkey.yourdomain.com @8.8.8.8 +short

The first command should print your SPF string in quotes, next to the Google verification string. The second prints the long DKIM key, often split into several quoted chunks; that is normal for a 2048-bit key.

If a response is empty, the resolver is probably still caching the earlier answer. Ask Namecheap’s nameserver directly, for example dig MX yourdomain.com @dns1.registrar-servers.com +short, to make sure the records actually saved on their end.

If Mail Still Bounces or Lands in the Wrong Place

These are the problems that come up most often:

  • Bounces saying the address does not exist (550 5.1.1): the user or alias hasn’t been created in Google Workspace yet. Add it in the Admin console; DNS is not the problem.
  • Some mail still reaches the old provider: an old MX row is still published, or senders cached the old MX record. Delete every MX row except Google’s and wait for the old TTL to expire.
  • Trailing dots in host fields: Namecheap uses @ for the root apex. Don’t write yourdomain.com. in the Host input—use @ for root records and just the prefix (like google._domainkey) for sub-records.
  • Duplicate SPF TXT records: RFC standards explicitly forbid multiple SPF records per domain. If Namecheap already had an SPF string from an old host, delete it or merge them into one line with include: tags.
  • Failed DKIM checks: If Google Admin won’t start authentication, verify the key wasn’t split or wrapped in accidental quotes when pasted into Namecheap.

Frequently Asked Questions

How long does Namecheap DNS take to route email to Google?

Namecheap BasicDNS publishes changes to its authoritative servers within minutes. After that it depends on the TTL of the records you replaced (Namecheap’s default is 30 minutes), and Google notes that new MX records can take up to 72 hours to be recognized.

Can I keep my website on another host while using Google Workspace email?

Yes. MX records operate independently from your web records. Your A or CNAME records can point to Vercel, Netlify, or a VPS while all mail routes straight to Google. If you’re setting up the frontend side, check our tutorial on pointing a Namecheap domain to Vercel.

Do I need to change my Nameservers to Google?

No. Keep your nameservers pointed to Namecheap BasicDNS. You only need to add Google’s MX and TXT records inside Namecheap’s DNS dashboard. Google Workspace doesn’t host DNS for your domain, so changing nameservers would only move where you edit records, and your website records would have to move with them.

Why are sent emails going to Gmail spam folders?

Usually, this means DKIM isn’t authenticated yet or your SPF record has a typo. Run the terminal dig queries above to make sure both records resolve properly and match what Google Admin expects.

Next Steps

Send a test message from an outside account (not another Workspace user on your domain) and reply to it. In Gmail, open the message you received, choose Show original, and check that SPF, DKIM and DMARC each show PASS. If your app or website also sends mail, give it its own subdomain so its mistakes can’t hurt your Workspace mail; see subdomain email routing with custom MX and SPF on Namecheap. After a few weeks of clean DMARC reports, move the policy toward p=quarantine.

all_in_one_marketing_tool