Google Workspace needs DNS records that direct your domain’s email to Google. If cPanel hosts your authoritative DNS, you can add those records in Zone Editor and set cPanel to route mail to the remote service.
Prepare the email change
Set up and verify the domain in the Google Admin console, create the required users and plan any mailbox migration before changing mail delivery. Save the existing DNS and routing settings for reference.
Make these changes where the domain’s authoritative DNS is hosted. Editing a non-authoritative cPanel zone will not change public mail delivery. Changing MX records does not copy old messages to Google.
Set the Google MX record
-
In cPanel, open Domains > Zone Editor and click Manage beside the domain.
-
Review its existing MX records. When the Google mailboxes are ready for the switch, replace the previous provider’s MX records with the values shown by the Google Admin setup process.
-
For Google’s current single-record configuration, add:
Field Value Type MXName The root domain, for example example.com.Priority 1Destination smtp.google.comTTL The zone’s appropriate existing or provider-recommended value -
Save the record and complete Gmail activation in the Google Admin console.
Older Google domains may use the five-record aspmx.l.google.com configuration. Google still supports those records, and a working legacy configuration does not need changing just because of its age. Follow the configuration specified for your setup rather than mixing Google and unrelated old-provider MX records.
Set sender authentication
In Zone Editor, review the domain’s SPF TXT record. If Google is the only sender, its example is:
v=spf1 include:_spf.google.com ~allIf your website or another service also sends email for the domain, retain its authorised sources in one combined SPF record. Do not delete them blindly or publish multiple SPF records. Follow Google’s setup instructions for DKIM and DMARC as well.
Set cPanel email routing and test
- Open Email > Email Routing and select the domain.
- Select Remote Mail Exchanger and click Change.
- Check public MX records, then test incoming and outgoing mail with external addresses. Allow for DNS cache expiry; Google notes recognition can take up to 72 hours.
- Keep the old mail service accessible for the planned migration and transition period.
Revert only as part of a planned move
To return mail to another provider, make sure its mailboxes are ready, restore that provider’s MX and authentication settings, and select the correct cPanel routing. Use Local Mail Exchanger only if this cPanel server will actually receive the domain’s mail. DNS changes alone do not remove a domain from Google Workspace or migrate its messages.