ispCP - Board - Support
Google Apps - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Google Apps (/thread-3653.html)

Pages: 1 2 3


Google Apps - wb6vpm - 07-01-2008 01:54 PM

Ok, I have searched the forums, and I have not been able to find a good answer, so I will post it here.

How do you set it up so that the DNS settings/postfix is set up that all email for all domains is using Google Apps?

Basically what I want to do is, anytime that I create a new domain on the server, I would have to go to Google Apps and set up the domain on their system.

Also, I would like for it to have the CNAMES for all the different sites that Google offers (calendar, start, mail, docs, sites, etc)

Please, I am not 100% literate in Linux, so please be simple, and concise.

BTW, I am using ispCP 1.0rc2 OMEGA build: 2007-04-18 Priamos on Fedora 7

Also, an upgrade of the system to RC5 is probably out of the question as I do not have enough Linux experience to deal with all of the changes that will probably be necessary considering all the nightmares that I experienced installing it the first time.


RE: Google Apps - TXC - 07-01-2008 03:00 PM

Edit /etc/ispcp/bind/parts/db_e.tpl and change the following things:

1. Minimum TTL (standard 3H) to 1H

2. MX records
Remove the line: "IN MX 10 mail.{DMN_NAME}." and add following:
Code:
IN MX 1 ASPMX.L.GOOGLE.COM.
IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
IN MX 10 ASPMX2.GOOGLEMAIL.COM.
IN MX 10 ASPMX3.GOOGLEMAIL.COM.

3. CNAME
3.1 Remove all CNAME that points to mail, imap, pop, pop3, smtp, relay & webmail.
(You can change webmail to: ghs.google.com instead of www.)
3.2
And add a CNAME for all different services you want to host.
All services should point to ghs.google.com, and the verification code to google.com!
Code:
calendar            IN              CNAME           ghs.google.com.
start            IN              CNAME           ghs.google.com.
{verificationcode}            IN              CNAME           ghs.google.com.

Don't forget the ending dot after ".com".

The verification code looks similar to "googlefffggghhh34435665" and you can find this in your controlpanel at Google Apps.


RE: Google Apps - wb6vpm - 07-01-2008 03:05 PM

TXC Wrote:Edit /etc/ispcp/bind/parts/db_e.tpl

Edit this file and change the MX records to:
Code:
IN MX 1 ASPMX.L.GOOGLE.COM.
IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
IN MX 10 ASPMX2.GOOGLEMAIL.COM.
IN MX 10 ASPMX3.GOOGLEMAIL.COM.

Remove all CNAME that points to mail and www.
And add a CNAME for all different services you want to host.
All services should point to ghs.google.com, and the verification code to google.com!
Code:
calendar            IN              CNAME           ghs.google.com.
start            IN              CNAME           ghs.google.com.
{verificationcode}            IN              CNAME           ghs.google.com.

Don't forget the ending dot after ".com".

ok, so this will change it so that ALL domains are changed (and all future ones also?)


RE: Google Apps - wb6vpm - 07-01-2008 03:10 PM

better wording, how do i force it to change the settings for current domains?


RE: Google Apps - TXC - 07-01-2008 03:12 PM

i have updated the post.


This will ONLY change future additions, if you want to change the posts that already exists you will have to change the ".db"-files that exists in /var/named/db/.
Then copy them into /etc/ispcp/bind/working/


RE: Google Apps - wb6vpm - 07-01-2008 03:24 PM

TXC Wrote:i have updated the post.


This will ONLY change future additions, if you want to change the posts that already exists you will have to change the ".db"-files that exists in /var/named/db/.
Then copy them into /etc/ispcp/bind/working/

thanks a bunch for all that, does this look right to you:

Code:
        IN     MX     1 ASPMX.L.GOOGLE.COM.
        IN     MX     5 ALT1.ASPMX.L.GOOGLE.COM.
        IN     MX    5 ALT2.ASPMX.L.GOOGLE.COM.
        IN     MX     10 ASPMX2.GOOGLEMAIL.COM.
        IN     MX     10 ASPMX3.GOOGLEMAIL.COM.
        
{DMN_NAME}.    IN    A    {DMN_IP}
{DMN_NAME}.    IN    TXT    "v=spf1 mx ip4:{DMN_IP} include:aspmx.googlemail.com ~all"
ns1        IN    A    {BASE_SERVER_IP}
ns2        IN    A    {SECONDARY_DNS_IP}
localhost    IN    A    127.0.0.1
www        CNAME    {DMN_NAME}.
ftp        CNAME    {DMN_NAME}.
calendar        IN      CNAME    ghs.google.com.
start           IN      CNAME    ghs.google.com.
mail        IN      CNAME    ghs.google.com.
docs        IN      CNAME    ghs.google.com.
sites        IN      CNAME    ghs.google.com.
[/code]


RE: Google Apps - TXC - 07-01-2008 03:30 PM

Have you added a CNAME for the verification code?

Google is supplying a tool to check if everything is alright.
http://www.google.com/support/a/bin/answer.py?answer=47283&src=top5&lev=answer
"Check the status of your CNAME record"


RE: Google Apps - wb6vpm - 07-01-2008 03:50 PM

Don't need it, as I have already verified it by loading the html file in, (but good to know for future ref)

also, how do i prevent postfix from still thinking that the email accounts are local to the system (I know I have seen it before on here, I just cannot seem to find it!)


RE: Google Apps - wb6vpm - 07-02-2008 02:27 AM

figured that out, now I need to figure out how to get the system from generating new email addresses/adding to ispCP when domain/subdomain/alias is created.


RE: Google Apps - TXC - 07-02-2008 02:35 AM

wb6vpm Wrote:figured that out, now I need to figure out how to get the system from generating new email addresses/adding to ispCP when domain/subdomain/alias is created.

Thats propably not possible.
I don't Google has that kind of API to allow you to do that. Please correct me if i'm wrong.