Current time: 11-16-2024, 06:19 PM Hello There, Guest! (LoginRegister)


Post Reply 
Google Apps
Author Message
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #1
Google Apps
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.
07-01-2008 01:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TXC Offline
Junior Member
*

Posts: 43
Joined: Jun 2008
Reputation: 1
Post: #2
RE: Google Apps
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.
(This post was last modified: 07-01-2008 03:10 PM by TXC.)
07-01-2008 03:00 PM
Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #3
RE: Google Apps
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?)
07-01-2008 03:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #4
RE: Google Apps
better wording, how do i force it to change the settings for current domains?
07-01-2008 03:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TXC Offline
Junior Member
*

Posts: 43
Joined: Jun 2008
Reputation: 1
Post: #5
RE: Google Apps
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/
07-01-2008 03:12 PM
Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #6
RE: Google Apps
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]
07-01-2008 03:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TXC Offline
Junior Member
*

Posts: 43
Joined: Jun 2008
Reputation: 1
Post: #7
RE: Google Apps
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/answ...lev=answer
"Check the status of your CNAME record"
07-01-2008 03:30 PM
Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #8
RE: Google Apps
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!)
07-01-2008 03:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #9
RE: Google Apps
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.
07-02-2008 02:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
TXC Offline
Junior Member
*

Posts: 43
Joined: Jun 2008
Reputation: 1
Post: #10
RE: Google Apps
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.
07-02-2008 02:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)