cPanel – Setup Google Apps MX, CNAME and SPF records
Written by Shai Ben-Naphtali Friday, 15 January 2010
UPDATE: new GoogleApps tool in cPanel. Please refer to the articles below.
Since Google Apps is one of the best (if not the best) email services out there, here is how you can setup your domain, which you have its DNS managed by Arvixe, to point to Google.
This blog post presumes you’ve already setup your Google Apps account and that you are just now doing the finishing touches (ie. final DNS settings to have Google handle your emails). If you’ve setup your Google Apps account correctly, this final step will put the finishing touch and allow Google to handle all your emails needs.
For this to be done, you’ll need to setup three DNS records:
- MX records, thus telling the world, who handles email for your domain (ie. Google).
- CNAME record, so that if you type mail.yourdomain.com (replace yourdomain with your own domain name – like mail.shai-arvixe.com), it points to Google Apps login page.
- SPF record to tell the world that Google is allowed to handle emails for your domain (this helps other mail servers know that Google is allowed and thus, help prevent filtering emails from you as spam).
Note: the links above point to Google’s own help articles, respectively.
- In your control panel, click on MX Entry from the Mail section (picture 1)
- Click Editto set the default record to a higher value (higher means lower priority), we don’t want to delete it, since we don’t want to interrupt current mail connectivity if such exists (picture 2)
- Change current value of o (zero) to 50 (fifty) and click Edit(picture 3)
- Now go to Google’s MX Records page and begin entering new records, one at a time (picture 4)
- Note: You don’t need the . (period) at the end of each record. If you do put one in, you’ll get an error message “Destination must be a FQDN (fully-qualified domain name)”(picture 5)
- At the end, you should have something like (picture 6)
- In your control panel, click on Simple DNS Zone Editor from the Domainssection (picture 1)
- Since mail CNAME is already a default one, you can either pick a new CNAME or use the Advanced DNS Zone Editor to change the default mail A record to your mail Google Apps CNAME.
If you don’t require that, you can go ahead and put in a new CNAME like mail2.yourdomain.com (picture 2)
- You can now also add docs, sites and calendarCNAMEs as well (picture 3)
- Google recommends that you add the following SPF record to your DNS zone. In cPanel, users can do this using the Advanced DNS Zone Editor to have this record added for you (picture 1)
v=spf1 include:aspmx.googlemail.com ~all
End result (after MX, CNAME and SPF):
After all said and done, you can always ask Arvixe’s support to review your dns zone and make sure you did it correctly, this is what we should see, if you did it all right (picture 1)