---
title: "Connect Your Domain Email to Google Workspace from cPanel: MX Records and Email Routing"
description: "**In short**To receive your domain mail in **Google Workspace**: add the **MX** record Google gives you (currently **smtp.google.com**, priority 1) in **Zone Editor** and remove the old MX records. Then in **Email Routing** choose **Remote Mail Exchanger**. If your DNS…"
url: "https://www.hyyat.com/en/knowledgebase/google-workspace-mx-cpanel/"
updated: "2026-11-22"
category: cPanel Guides
---

# Connect Your Domain Email to Google Workspace from cPanel: MX Records and Email Routing

**In short**To receive your domain mail in **Google Workspace**: add the **MX** record Google gives you (currently **smtp.google.com**, priority 1) in **Zone Editor** and remove the old MX records. Then in **Email Routing** choose **Remote Mail Exchanger**. If your DNS is at Cloudflare, add the records there.  **A customer asked:** "We subscribed to Google Workspace. How do we make our domain mail arrive in Gmail instead of the hosting?"

Google Workspace (formerly G Suite and Google Apps) gives you Gmail with addresses on your domain. You can keep your website with us and move only the email to Google. The key is the **MX** record, which decides where your domain mail is received.

## Before you start

- Sign up for Google Workspace and verify the domain as Google asks in its console.
- Create the users in Google with the same names as your current addresses.
- If you have important mail on the hosting, move it to Google before switching.

## Step 1: MX records

1. **Open Zone Editor** in the Domains section of cPanel.
2. **Click Manage next to your domain** and show the MX records.
3. **Delete the old MX records** that point to your hosting.
4. **Add an MX record** with the value Google gives you in its setup. Google currently asks for one record: smtp.google.com with priority 1.

 **Domain on Cloudflare?** Then MX records are added in the Cloudflare dashboard, not in cPanel. See [our Cloudflare guides](https://www.hyyat.com/en/knowledgebase/what-is-cloudflare/).

## Step 2: Email Routing

Open **Email Routing** in the Email section, choose **Remote Mail Exchanger** and click **Change**. This tells the hosting server that your domain mail is not stored here, so mail from your website (such as contact forms) goes to Google, not to a local mailbox.

![The Email Routing page in cPanel](https://www.hyyat.com/wp-content/uploads/2026/11/hkb-em-en-e-routing.webp)

| Option | When |
| --- | --- |
| Local Mail Exchanger | Email is on our hosting (default) |
| Remote Mail Exchanger | Email is at Google Workspace or Microsoft 365 |
| Backup Mail Exchanger | Our hosting is a backup for another provider |
| Automatically Detect Configuration | cPanel decides based on your MX records |

## Step 3: the SPF record

Add **include:_spf.google.com** to your domain's SPF record so Gmail messages do not land in spam. If your website also sends mail from the hosting, keep the server in the same record. Never create two SPF records. See [SPF and DKIM](https://www.hyyat.com/en/knowledgebase/enable-spf-dkim-cpanel/).

## Things to know before switching

- After changing MX, new mail starts arriving at Google; old mail stays on the hosting.
- The full switch can take a few hours while DNS updates, so do not delete hosting email right away.
- Keep the old mailboxes until you are sure all mail is arriving at Google.
- The same steps work for Microsoft 365, with the MX record Microsoft gives you.

## Examples from customer tickets

- **A company changed the MX records** but forgot to set Email Routing in cPanel to Remote Mail Exchanger, so mail from its own website was still delivered locally.
- **A customer deleted the hosting mailboxes** before moving old mail to Google. Move the mail first with Google's import tool.
- **A domain on Cloudflare**: MX records added in cPanel had no effect. Records go wherever DNS is actually managed.

Weighing Google Workspace against hosting email? [Our email hosting vs business hosting comparison](https://www.hyyat.com/en/knowledgebase/email-hosting-vs-business-hosting/) helps you decide.

## Frequently asked questions

   What is the Google Workspace MX record?

Google currently asks for one record: smtp.google.com with priority 1. Use the value shown in your Google console.

   Does moving email to Google affect my website?

No, the website stays on the hosting; only where mail is received changes.

   Why do contact form emails stop arriving after the move?

Usually Email Routing was not changed to Remote Mail Exchanger.

   Can I switch back to hosting email later?

Yes, by pointing MX back to the hosting and choosing Local Mail Exchanger.

   Do these steps work for Microsoft 365?

Yes, using Microsoft's own MX and SPF records.

   **Related guides**

- [The Email Section in cPanel: A Guide to Every Tool and When to Use It](https://www.hyyat.com/en/knowledgebase/cpanel-email-section-guide/)
- [Enable SPF and DKIM with Email Deliverability in cPanel So Your Mail Avoids Spam](https://www.hyyat.com/en/knowledgebase/enable-spf-dkim-cpanel/)
- [What Is Cloudflare? How It Works and Why Use It for Your Website](https://www.hyyat.com/en/knowledgebase/what-is-cloudflare/)

[All cPanel guides →](https://www.hyyat.com/en/kb/website-control-panel-cpanel/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Saudi domain reservation](https://www.hyyat.com/en/saudi-domain-reservation/)[Domain Availability Check](https://www.hyyat.com/en/domain-availability-check/)
