Setting Up Google Workspace (G Suite) Email with cPanel

May 13, 2019 | Website Hosting

Google Workspace (formerly named Google Apps and then G Suite) is one of the best email services. While having your email hosted on the same server as your website is convenient, in reality, it’s not always the wise choice. The following are a few reasons to make the switch, and how to do it – if your host provides cPanel.

Reasons to Switch to Google Workspace

  • Reliability – Gmail has proven to be a very reliable email service.
  • Less Spam – Keep unwanted messages out of your inbox with Google’s innovative spam filter technology.
  • Clogged Email Queues – With the potential of hundreds of other accounts on the same server as you, resources often dry up. This can occur due to a spammer or a hacked script, thus resulting in backed-up email queues.
  • Blocked IP Addresses – Spammers or a hacked script/site cause all kinds of problems, and spam sent from one server often can get multiple servers with similar IPs blocked. Thus, your email can be affected even if your server or domain wasn’t even the problem.
  • Storage Space – With a whopping 30+ GB of storage that Google gives you – for each email account – you may never have to delete another email again.
  • Portability – Setup to receive IMAP and/or POP email, and you can also use their browser based client to get/store your email.
  • Service & Support – If there is a problem, it most likely effects everyone using Gmail – so you can be assured Google is probably already aware of it, and a fix is in the works.
  • Server Limits – Most hosting providers limit the number of emails sent per domain per hour; in-order-to prevent spammers. For organizations with many email accounts or that send out newsletters, this can be a problem.

Before Making the Switch

  1. Sign-up for a free Google Workspace account (see promo codes below)
  2. Make sure to verify domain ownership once your account is setup
  3. Setup all your email addresses in your Workspace admin dashboard
  4. Follow the remaining steps in the setup guide per the dashboard (help with MX, CNAME and SPF Records is provided below)
  5. Download and backup your current email

Promo Codes

Each promotion code provides 10% off the first year on either Google Workspace Business Starter or Business Standard plan.

  • G7H3V7A6XYH37QV

Setting Up Your Email Server

The steps for managing your domain’s email in the Googl Workspace dashboard is pretty straightforward. However, setup of your MX, CNAME, and SPF records can be quite confusing. The following will guide you through the process:

Email Routing

Email Routing in cPanel
  • Login to your cPanel at or (of-course replace with your actual domain)
  • Click on the “Email Routing” icon under the “Email” section
  • Select your domain name in the drop-down menu
  • Change the Email Routing setting to “ Automatically Detect Configuration” — See Figure #1

Configure Email Routing

Fig #1: Configure Email Routing

MX Records

Zone Editor in cPanel
  • Click on the “Zone Editor” icon under the “Domains” section
  • Select the “Manage” link across from your domain name
  • From the “Filter” menu select “MX”
  • Delete any existing MX records shown
  • Add the following five MX records to your DNS zone file – see Fig #2:
Priority Destination

MX Records in cPanel

Fig. #2: MX Records in cPanel

CNAME & SPF Records

By default, your email is now accessible via However, you can also easily redirect it to by changing your CNAME records.

  • Click on the “Zone Editor” icon in the “Domains” section
  • Edit “” so it points to
    see Fig #3

CNAME Records in cPanel

Fig. #3: CNAME Records in cPanel

Note you can also setup custom sub-domains for the other Workspace services (calendar, docs, etc.) by following the same steps you followed to set up your custom “mail” sub-domain. For instance, if you want to use to access your Google Apps calendar, you can add a new CNAME record for “calendar” as shown in Fig #3.

  • Add a SPF TXT record for “” so that it points to v=spf1 ~allsee Fig #4

SPF TXT Record in cPanel

Fig. #4: SPF TXT Record in cPanel

Conclusion and Resources

At this point, you’re pretty much done. You now simply have to wait up to 48 hours before the changes to propagate.

Once the changes have completed, you can set up your email client (Outlook, Thunderbird, Mail, etc.). The Gmail IMAP settings are fairly simple. They are as follows:

IMAP (incoming) mail:

  • Server:
  • Port: 993
  • Encryption: SSL

SMTP (outgoing) mail:

  • Server:
  • Port: 465 or 587
  • Encryption: TLS

Google provides instructions for configuring mail clients, including specific email clients.

More Information

  1. MX Records
  2. CNAME Records
  3. SPF Records