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.

Set the Google MX record

  1. In cPanel, open Domains > Zone Editor and click Manage beside the domain.

  2. 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.

  3. For Google’s current single-record configuration, add:

    FieldValue
    TypeMX
    NameThe root domain, for example example.com.
    Priority1
    Destinationsmtp.google.com
    TTLThe zone’s appropriate existing or provider-recommended value
  4. 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 ~all

If 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

  1. Open Email > Email Routing and select the domain.
  2. Select Remote Mail Exchanger and click Change.
  3. 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.
  4. 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.