integration of google apps for domain

15 posts / 0 new
Last post
#1 Tue, 05/26/2009 - 13:18

integration of google apps for domain

Hi everyone,

On my servers, I use google apps for domain/gmail to handle the mails. Why ? because I tend to move from different hosting times to times (Like before having my own server, I was at dreamhost), that's why I like to use the gmail infrastructure to handle my mails as it is working pretty well. (+ I have all the gmails features, and one of the best antispam in the world).

I would really like to have integrated as a mail option in virtualmin: -If my domain is set to use this, the dns records a set accordingly (spf + mx + cname like -Maybe it would be possible to configure mailman to use one of my gmail accounts -etc etc.

I think that would be a cool stuff.



Tue, 05/26/2009 - 13:32
ronald's picture

i thought this could easily be done by changing your mx records in the zone file to point to google's

Wed, 05/27/2009 - 06:07 (Reply to #2)
ronald's picture

i think this is done because the new user needs a login name for his ftp.
his login name is a personalised email address so he can receive password reminders too.
your choices are:
email only

as far as I know this is how the software is suppose to work. Else he would have to login with

but i may be totally wrong here

Wed, 05/27/2009 - 13:47 (Reply to #3)
ronald's picture

you would still have to have a postmaster and abuse email for every domain set up. You can forward it to the gmail account.
You need to have those since anyone needs to be able to send an email to and according to some RFCxxxx number

Tue, 05/26/2009 - 14:50

that is what I'm doing actually, but it's not "fully" integrated as my domains still have the various original mail fields

Tue, 05/26/2009 - 16:09 (Reply to #5)
Joe's picture

<div class='quote'>that is what I'm doing actually, but it's not &quot;fully&quot; integrated as my domains still have the various original mail fields </div>

I don't know what this means. ;-)

What &quot;fields&quot; are you talking about?


Check out the forum guidelines!

Wed, 05/27/2009 - 04:02

sorry, I guess field isn't the right word in english (I'm French :p)

what I mean is, for example, if I create a ftp user, it still create the mail user locally, which is not needed for me. stuff like that.

thanks for the quick answers though !

Wed, 05/27/2009 - 08:03

Another example as I'm creating a new template right now,
there are a bunch of things I can configure for when I want to add a new domain.
like the aliases postmaster etc.
with a gmail setup it's not/less necessary.

I know everything is still working with these, but it's not clean clean :p

Wed, 05/27/2009 - 18:06 (Reply to #8)
Joe's picture

As ronald mentioned, you need a working postmaster address. There are RFCs to think about here. ;-)

But, if you've disabled mail for the virtual server in question, and pointed your MX records to GMail, then those should also be going to the GMail servers.


Check out the forum guidelines!

Mon, 06/01/2009 - 15:00

hi, sorry for the delay.

in this case, gmail takes care of this, and you can have theses mail copied to one of your accounts.

Wed, 08/26/2009 - 02:38

I have a server that the only sites I host on it utilize the google apps. On that server I have the following settings:

System Setings > Features and Plugins:
Turn off Mail for Domain, Mailman

System Settings > Server Templates

Create template based off of default settings and save it. (I call it google apps enabled)

In that template, I turn off SPF1 in BIND DNS domain settings

Edit the BIND settings and add in the "BIND DNS records for new domains"
I select the "Records below..." radio button and then add:

${DOM}. IN TXT "v=spf1 a mx a:${DOM} ip4:ip.address.of.the.server ~all"
${DOM}. IN MX 1
${DOM}. IN MX 5
${DOM}. IN MX 5
${DOM}. IN MX 10
${DOM}. IN MX 10
${DOM}. IN MX 10
${DOM}. IN MX 10
mail.${DOM}. IN CNAME
calendar.${DOM}. IN CNAME
docs.${DOM}. IN CNAME
start.${DOM}. IN CNAME

This allows any virtual server I set up to automatically use the google apps service for mail etc.

I hope this helps.

Sun, 03/07/2010 - 13:30 (Reply to #11)

hi zatsu I know you made this post a few yrs ago, but Im hoping your still here to help me out with this :)

as I try turn off mail for domain and mailman I get the error

Failed to save enabled features : The feature Mail for domain  cannot be disabled, as it is used by the following virtual servers :

just wondering if you could show me how to turn them off, I tried editing the virtual servers and disabling Mail for domain enabled? & Allow Mailman mailing lists?, but then i get an error Failed to modify server : Spam filtering cannot be enabled unless email is

but when i go to system information>>status>> Postfix Mail Server, Dovecot IMAP/POP3 Server & SpamAssassin Filter Server are turned off..

I actually cant turn Dovecot IMAP/POP3 Server back on.. so i dnt see why im getting these errors. basically I want to be able to use my google apps for my mail, as its already setup and i know how to use it... but at the moment Im thinking because vmin mail is somehow on, its conflicting with my gmail and am unable to recieve support tickets or mail from cronjobs..


Sun, 03/07/2010 - 13:32

It sounds like you're close!

Whenever you're going to disable email for a Virtual Server, you would need to disable Spam and Virus scanning at the same time.

That's in the same area as the Mail feature... in Edit Virtual Server, in the "Features" section, you can disable "Virus filtering enabled" and "Spam filtering enabled".


Tue, 03/09/2010 - 05:13

Hi Eric thanks for replying :) mails is setup now and everything works good now... after disabling mail feature, the trick was to apt-egt install php5-imap, and that allowed me to link my emails etc and receive the support tickets...

cheers husskii

Wed, 10/28/2015 - 03:22

It proved very useful to me almost after 7 years . Wanted to let it be known.

Topic locked