How to Setup DNS for Google Apps Mail on CloudFlare

What? You’re not using CloudFlare? It’s really easy to get yourself setup and I can go on-and-on about why you should – in fact, I do in this post on why you should use CloudFlare. At this point, let’s assume you’ve joined the rest of us powering our sites through CloudFlare. Well by now, your DNS has been taken over and you may want to setup Google Apps email. If so, here are instructions on how to properly setup your DNS entries to play nice together.

There are 2 types of entries to configure / add to your DNS zone. Google Apps does a good job of walking you through this, and so does this CloudFlare knowledgebase. entry, but I find sometimes seeing it visually clears up any doubts. After all, we want to get it right the first time. So here’s what we’re going to add as instructed by Google Apps:

Firstly, to setup Google Apps email, you will need to enter a CNAME entry to you DNS zone:

Host Name/Alias Value/Destination
Your URL prefix
Example: mail
ghs.google.com

When you setup this entry, be sure to deactivate CloudFlare from handling traffic on this entry. This means the cloud icon should be grayed out, not active (orange). There’s no need for CloudFlare to handle your mail as that’s not its purpose.

Next, Google Apps email requires that you add the following 5 MX entries to your DNS. These are necessary to ensure your email flows through to/from Google’s mail servers.

Priority Mail server
1 ASPMX.L.GOOGLE.COM
5 ALT1.ASPMX.L.GOOGLE.COM
5 ALT2.ASPMX.L.GOOGLE.COM
10 ASPMX2.GOOGLEMAIL.COM
10 ASPMX3.GOOGLEMAIL.COM

If you did all that correctly, your CloudFlare DNS entries will look like this:

Don’t forget to change yourdomain.com to your real domain URL. If you’ve completed these steps, you can now wait for the internet to propagate these DNS changes which can take anywhere from 1 hour to 48 hours. So get a drink, write something worthwhile, and check back later. If you have any questions, just leave a comment and I’ll do my best to help.

WPsite.net

WPsite.net will feature articles on WordPress (themes, plugins, and tutorials, Internet Marketing, Blogging, SEO, Web Design, and Social Media

27 thoughts on “How to Setup DNS for Google Apps Mail on CloudFlare

    1. No problem. Glad you found it useful. I’m not a big fan of Google’s guide either. It’s not as clear as it should be, especially for non tech-savvy folks or beginners. Al the best.

  1. You’re a lifesaver — I’ve been trying to get Google Apps up and running forever with no luck… Even Hostgator’s support couldn’t figure it out. Then I started using CloudFlare, followed the steps in this post and now everything’s up and running perfectly.

    I was just forgetting to add ghs.google.com!

    Great post

  2. Thanks a lot for this.
    I recently started using cloudflare then signed up for google apps. I had set my MX records at my host. Didnt realise I would have to set them in cloudflare.
    Struggled to figure out this for days. then I found your post and fixed it in an hour.
    Thanks so much!!

    May I link to this post from my blog to help out others?

  3. I am starting a new online website directory and was wondering if
    I can submit your blog? I’m trying to mature my directory little by little by hand so that it maintains quality. I’ll make sure and put your
    website in the appropriate category and I’ll additionally use, “How to Setup DNS for Google Apps Mail on CloudFlare” as your anchor text. Make sure you let me know if this is acceptable with you by e-mailing me. Many thanks

    Feel free to visit my blog :: Emily

  4. I don’t know how to thanks you. I have purchased my domain form Google apps and used on blogger, then move the the WP and used Bluehost. Yesterday hole day, I edited my DNS settings for use Google apps gmail with my domain. Not success. Thanks to your method, now i can again use Google apps. Many many thanks friend.

  5. The other day, while I was at work, my cousin stole my iPad and tested to see if it can survive a thirty foot drop, just so she
    can be a youtube sensation. My apple ipad is now destroyed
    and she has 83 views. I know this is entirely off topic but I had to share it
    with someone!

  6. Hello! I’ve been reading your blog for a while now and finally got the courage to go ahead and give you a shout out from Porter Tx! Just wanted to say keep up the fantastic job!

    Here is my site: debs Dress

  7. After I initially left a comment I seem to
    have clicked the -Notify me when new comments are added- checkbox and from now
    on every time a comment is added I recieve four emails with
    the same comment. Perhaps there is a means you can remove me from that service?
    Appreciate it!

  8. I had an issue setting up Google Apps with my Cloudflare powered website. I moved my website from a shared account to my own VPS setup and all of a sudden I was no longer receiving emails. Going through the steps here helped me resolve the issue, now I am sorted!

    Thank you!

    Steve

  9. Thanks for great info but one more thing i want to make it clear..Do we need to update MX records from cpanel and maybe even from domian control panel or so? I would really apriciate to know this details as well.
    Thanks Again

  10. I have the same question here. We have to change this in the cpanel or only it is necessary in the Cloudflare? Thank you!

    1. Since you would be recreating the ID in Outlook, you would not need the mail ID created in cpanel. It will essentially become defunct, though to keep things clean, you can delete the one created in domain.

      NOTE: Microsoft is now requiring all Outlook.com users to migrate to Office 365 which sucks!

Leave a Reply

Your email address will not be published. Required fields are marked *

Want a 25% discount on plugins?

Receive a 25% discount code for DraftPress plugins when you sign up to the newsletter!

We promise never to spam or share your information.
Powered by Popup Fire