How To Add Google Workspace MX Records

SkyStra
Jun 22, 2020

To set up G Suite mail on your domain, log in to your cPanel control panel. Click here for instructions on how to get to cPanel.

DNS Zone Editor

Once you’re in the cPanel control panel, click on the DNS Zone Editor under the Domains section:

Next, click the Manage button for the domain you’d like to configure.

Updating MX Record

Find the existing MX record in the list, and click the Edit button:

For this record, make the following changes:

  • Change priority from 0 to 1
  • Change destination from existing record to ASPMX.L.GOOGLE.COM

Click the Save Record button to save the change.

Add MX Records

Now we need to add the other MX records as well for G Suite to work properly on the domain.

Click the dropdown arrow next to the Add Record button, and select the Add “MX” Record option:

Leave the Name, TTL, Class, and Type fields as is, and fill in the Priority and Destination fields with the following records:

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

Click the Add Record button to save changes once you’ve filled in the fields.

Here’s an example:

Make sure to add all records using the method above, and in total, you should have 5 MX records for G Suite to work properly.

Verify MX Records

Using built-in filters, you can filter MX records to ensure they’ve all been added:

Verify Your Domain

If you haven’t verified your domain with Google previously (via TXT record, HTML file or meta tag), log in to your Google Admin console, scroll to the Get your verification code section and click the Copy button:

Add the verification MX record using the steps listed previously (under Add MX Records section). Make sure the record’s priority is set to 15 or greater.

If you’ve already verified your domain name with Google previously, you can skip this step and go directly to the SPF Record step below.

Add Google SPF Record

Once you’ve put in the G Suite MX records, you’ll have to put in the Google SPF record by doing the following.

From the main DNS zone screen, click on the Manage button next to the domain name you are editing:

Find the existing SPF record listed as a TXT from the list, it will always be the following record:

v=spf1 +a +mx +ip4: 10.1.68.1 include:relay.mailchannels.net ~all

Once you’ve found it on your DNS zone, click the Edit button next to it:

Delete the existing SPF record and replace it with the Google SPF record, which is the following:

v=spf1 include:_spf.google.com ~all

Once replaced, make sure to hit the Save Record button:

Then you’ll see the record saved:

Remote Email Routing

The last step is to set up email routing so that our Cloud Instance knows it shouldn’t relay emails to your email accounts that were added locally.

Go back to the cPanel home, and click the Email Routing option under the Email section:

Select your domain from the dropdown list:

Finally, select the Remote Mail Exchanger option and click the Change button to save changes:

In case Google asks you to add CNAME or TXT records (for verification), you can find those guides here: CNAME records  and TXT records .

That’s it! Now you’ve set up your domain to use G Suite email. However, please note that it can take up to 24 hours for the DNS changes to propagate globally and load across the internet.