Contents
In this article, we will cover cPanel setup, DNS record setup for google workspace, or the current gSuite.
Why do Googlers choose gsuite?
Reasons why companies or individuals choose Google gsuite over web hosting email here are the most common reasons:
– The habit of gmail and its benefits
– Email deliverability
- Google is the largest email provider in the world
Prerequisite
It is necessary that you first have purchased gsuite which is around $15 at the time of writing this guide. Of course, in addition, you should have hosting and the DNS record setting option. Here we will work on cPanel, but the DNS records themselves are the same and universal everywhere.
Note: maybe google will change the instructions in the future so check the links we post to their instructions if it is the same as the picture, if not then follow those new instructions.
How to set up Google Gsuite in 3 steps
We need to find the Zone Editor option in our cPanel.

Modify MX records
As we follow google's instructions on their site, we enter them in cPanel as well. https://support.google.com/a/answer/16004259?hl=en

We need to modify our existing MX record to make the destination smtp.google.com and that's it. You only change the underlined one, leaving your domain on the left with a dot at the end. Click save after editing.

For the MX record, set your domain on the left, priority is zero on the right and enter smtp.google.com as the destination and save.
Modify SPF record
Now we are setting instead of our SPF record the one from google as per their instructions https://support.google.com/a/answer/33786?hl=en

Now go to Edit and enter the SPF that Google gave us, which is: v=spf1 include:_spf.google.com ~all as in the image below. We only change the underlined, the left remains your domain with everything like that at the end.

You set the SPF record by leaving your domain on the left and entering "v=spf1 include:_spf.google.com ~all" in the value on the right and save.
Setting up DKIM records
This is the most difficult record to set up because you need to first create it in the google admin gsuite part and then copy it, plus it has two parts so it's important to take care of that. Google Creation Guide https://support.google.com/a/answer/174124?hl=en#dkim-create-key you create a 2048 key.
Now we change both fields as in the image below which is marked in red

On the left we enter as google has set us, usually it is google._domainkey and it will automatically add your domain when you click somewhere else and that's fine.
On the right we enter DKIM as you can see it has to be in two parts because it is too long. When you delete all the content from the first field, copy the entire google code that it gave you and then go paste it into the first field, it will cut it by itself because it can't fit. In the second field you need to copy/paste the rest, find where it stopped and copy the rest of the code and enter it in the field below and then save.

Email Routing setting last step
Now we need to set it up in cPanel in order to tell the hosting, emails for this account do not go to you but to a remote server in this case Google. We find the Email routing option as in the picture below.

After we click on that option, a field will appear, what we need is for it to be set to Automtasko to detect itself based on the records we have entered, and it should look identical to you as in the picture below.

This completes the complete setup for google gsuite. Now you only need to wait 1 hour for the DNS promotion to pass and the google admin suite will say that the domain and email have been verified and you can use sending and receiving emails from gmail, keep in mind that now the hosting does not affect the emails in any way.
