To use Google Workspace (formerly Google Apps) for your domain email, you need to change your domain's MX records so that incoming mail is routed to Google's servers instead of your hosting server. This process is done through cPanel's Zone Editor or MX Entry interface.

Step 1: Log in to cPanel

Open your browser and navigate to https://your-domain.com:2083. Log in with your cPanel credentials.

Step 2: Open the MX Entry or Zone Editor

Navigate to the Email section and click on MX Entry (or Email Routing in newer cPanel versions). Alternatively, you can use the Zone Editor under the Domains section.

Step 3: Remove Existing MX Records

Before adding Google's records, remove any existing MX records that point to your hosting server. Select each current record and click Delete. If you are using the MX Entry interface, you can also edit the existing record and change the destination.

Step 4: Add Google Workspace MX Records

Current Google Workspace MX Records (Simplified)

Google now uses a simplified MX record setup. Add a single record:

PriorityDestination
1smtp.google.com

Legacy Google Workspace MX Records

If your Google Workspace admin console still shows the legacy records, use these instead:

PriorityDestination
1ASPMX.L.GOOGLE.COM
5ALT1.ASPMX.L.GOOGLE.COM
5ALT2.ASPMX.L.GOOGLE.COM
10ALT3.ASPMX.L.GOOGLE.COM
10ALT4.ASPMX.L.GOOGLE.COM

Note: The old GOOGLEMAIL.COM records have been deprecated. Use the GOOGLE.COM records above.

Using the Zone Editor

If using the Zone Editor:

  1. Select your domain from the dropdown menu.
  2. Click Add Record.
  3. Set the type to MX.
  4. Enter the priority and destination values from the tables above.
  5. Click Add Record and repeat for each record.

Using the MX Entry Interface

If using the MX Entry interface:

  1. Select your domain from the dropdown menu.
  2. Under Add a New MX Record, enter the priority and destination.
  3. Click Add New Record and repeat for each record.

Step 5: Set Email Routing to Remote

After adding Google's MX records, you need to tell cPanel to stop handling mail locally for this domain.

  1. In the MX Entry or Email Routing interface, scroll to the Email Routing section.
  2. Select Remote Mail Exchanger.
  3. Click Change or Save.

This step is essential. Without it, cPanel may still attempt to deliver mail locally, causing delivery issues.

Step 6: Verify DNS Propagation

DNS changes can take anywhere from a few minutes to 48 hours to propagate globally. You can check the current status of your MX records using an online tool such as MXToolbox or by running the following command in your terminal:

dig +short MX your-domain.com

Once propagation is complete, you should see Google's mail servers listed in the output.

Step 7: Verify in Google Workspace Admin Console

Log in to your Google Workspace Admin Console and navigate to Account » Domains » Manage domains. Google will verify that your MX records are correctly configured. If the check passes, your domain is ready to send and receive email through Google Workspace.

Important Notes

  • Both adding Google's MX records and setting email routing to Remote are required. Skipping either step will cause mail delivery failures.
  • After switching to Google Workspace, your cPanel email accounts will no longer receive new mail. Existing mail stored on the server remains accessible until you delete the accounts.
  • If you need to switch back to local email delivery, reverse the process: delete Google's MX records, add your server's default MX record, and set email routing to Local.
  • Google recommends also setting up SPF, DKIM, and DMARC records for proper email authentication. These can be configured in the Zone Editor as TXT records.
  • If you use Cloudflare or another DNS proxy, manage MX records in the proxy's DNS dashboard instead of cPanel.

Troubleshooting

  • MX records show correctly but mail is not being delivered: Ensure email routing is set to Remote in cPanel. Also verify that Google Workspace is fully activated in the Google Admin Console.
  • MXToolbox shows old records: DNS changes take time to propagate. Wait up to 48 hours. You can also flush your local DNS cache with sudo systemd-resolve --flush-caches (Linux) or ipconfig /flushdns (Windows).
  • Email routing option is greyed out: Your hosting provider may have disabled this feature. Contact your hosting provider for assistance.
  • Senders receive bounce errors: Verify that the MX records are correctly configured and that email routing is set to Remote. Also check that your domain is properly verified in the Google Workspace Admin Console.

For official documentation, see the Google Workspace MX record setup guide and cPanel Zone Editor documentation.

Was this answer helpful? 0 Users Found This Useful (0 Votes)