Get Google Apps here

This is an affiliate link. We believe in this product.

The steps below will enable you to set up Google Apps so that it is integrated with your domain and website, via cPanel as deployed by Hostgator. They may work with other hosts using cPanel.

About cPanel, Google Apps and Website Hosting

We resell Hostgator hosting services, including website and email hosting. In some instances, clients already have a Google Apps account set up when they decide to host with us. Google Apps is a paid (for most people) service that not only provides a Gmail-like email interface, but also facilitates group calendaring and document sharing. Terrific service (that used to be free for many). Our clients with Google Apps have their email (and usually calendaring and file sharing) hosted through Google Apps rather than through our hosting plan.

As a result, there are additional steps we need to go through to set up email. We outline those steps below. While we use cPanel via Hostgator, cPanel is fairly standard regardless of which host is deploying it. (More info about cPanel.) These steps likely will work even if Hostgator is not your host, but check with your host to be sure.

These steps worked as of the date this post was written. However, you should take these steps at your own risk (which can include affecting your ability to send or receive email). Consider making changes like this at a time when you can most afford email down time.

Steps to set up Google Apps email (and calendar and drive) in Hostgator Cpanel

  1. Your domain needs to be “verified” by Google Apps. This post assumes you’ve done that.
  2. At your domain registrar, you need to change the nameservers to the new host. In our case, our nameservers are and If you use a different host, you will have different nameservers.
  3. At your host, if not set already, add an A record. Do that by logging into cPanel (with us, visit and log in with your credentials).
  4. Click on “Advanced DNS Zone Editor” in the “Domains” section of cPanel.

    choose Advance DNS zone editor

    choose Advance DNS zone editor

    “Name” is your domain name. TTL is “14400”. Type is “A”. Address is the IP address assigned to your domain (which information you would have received at set up. If you are uncertain, go to cPanel home, and find the dedicated IP address.


    Add “A” record


    Find dedicated IP address

    Find dedicated IP address

  5. Now we need to set up email routing. Go back to cPanel home.
  6. Let’s change MX records to reflect the Google Apps information. Click on “MX Entry” in the “Mail” section of cPanel.

    Click on "MX Entry".

    Click on “MX Entry”.

  7. Change Email Routing to “Remote Mail Exchanger”. Select “Remote Mail Exchanger” and click on “Change”.

    Email Routing to "Remote Mail Exchanger"

    Email Routing to “Remote Mail Exchanger”

  8. Change MX Records. Delete any pre-existing “0” (zero) record and add all the Google Apps MX records as indicated in the image (see too the Hostgator support URL below).

    add all the Google Apps MX records

    add all the Google Apps MX records

  9. Wait for propagation. Propagation is the process whereby the Internet is informed of how to to route email based on the settings changes you just made. It could take up to 72 hours, but may be much sooner.
  10. Now let’s make sure we keep spam from your email. We need to create an SPF record. Go back to cpanel home and choose Advance DNS zone editor.
    choose Advance DNS zone editor
  11. Let’s add the record. “Name” is your domain name. TTL is “3600”. Type is “TXT”. “TXT Data” is “v=spf1 ~all”. Make sure you have only one SPF record. Multiple records can confuse the Internet email system and facilitate your outbound messages incorrectly being marked as spam.

    Add TXT SPF record

    Add TXT SPF record

  12. Optional: Authenticate email sending with DKIM. This step is not covered here. There is information at the URL below.
  13. What about your Google Apps Calendar and Drive? When establishing your Google Apps account, you may have set it up so that people on your domain can easily access email, calendar or documents, such as by setting a URL like “” as the place to log in for email. If you did, to ensure uninterrupted service, you will want to create relevant CNAME records. Let’s say you are using the following URLs: (for email), (calendar) and (Drive files). You’ll need a CNAME record for each.
  14. Let’s add the records. “Name” will be the URLs indicated immediately above (one record for each),,, and In each instance, TTL is “3600”; Type is “CNAME”; and “CNAME” is “”.
  15. You did it! Let’s make sure you did it right. Check MX setup with MXToolbox. If setup is correct, you should get the MX records you entered in the steps above and email should be arriving as expected. Remember that propagation can take some time.

Want to do it yourself? Sign up for Google Apps here and tell ’em the Goat sent you!

Relevant links for setting up Google Apps via Hostgator Cpanel

  1. Google Apps
  2. Google Apps support: verify domain ownership
  3. Hostgator Google Apps walkthrough
  4. Hostgator Google Apps wizard
  5. Google Apps support: create SPF record
  6. Google Apps support: authenticate email with DKIM
  7. MX Toolbox SuperTool

Have you ever made this transition? What hurdles did you face? Do you know a better way? Leave a comment below.

Photo credit: Alligator 1 by Bogeskov, on Flickr

Do you need help setting up Google Apps?

Want more of this good info?

Get our monthly newsletter of online communications tips today and receive a FREE list of terrific cloud services to save you time and money. Unsubscribe any time.

Success! Please look for a confirmation email from [email protected]. You must confirm your subscription to receive our newsletter and our list of terrific cloud services.