Setup Google Apps on CentOS VPS

I currently have VPS hosting with the host's custom built control panel. I.e. No Cpanel.

I know Cpanel can do everything quite nicely, but I find it clunky and bloated to use. The custom built control panel has no DNS management currently, so I had to learn how to set it up manually.

  1. Set up the new domain/account as you normally do

  2. SSH into your server

  3. Open your existing DNS record: sudo nano /var/named/chroot/var/named/domainname.com.au.domain

  4. Delete any previous MX records and mail A record

add:

domainname.com.au. 86400 IN MX 10 ASPMX.L.GOOGLE.COM. domainname.com.au. 86400 IN MX 20 ALT1.ASPMX.L.GOOGLE.COM. domainname.com.au. 86400 IN MX 20 ALT2.ASPMX.L.GOOGLE.COM. domainname.com.au. 86400 IN MX 30 ASPMX2.GOOGLEMAIL.COM. domainname.com.au. 86400 IN MX 30 ASPMX3.GOOGLEMAIL.COM. domainname.com.au. 86400 IN MX 30 ASPMX4.GOOGLEMAIL.COM. domainname.com.au. 86400 IN MX 30 ASPMX5.GOOGLEMAIL.COM. mail. domainname.com.au. 86400 IN CNAME ghs.google.com.

  1. Restart the Named service: service named restart

  2. Wait a little and check it all worked OK!