Using gmail as mailserver

Hi,

one of our customers is using google apps including the gmail-part. Is there any way I can setup this with VMPro? Aside of the gApps, some subdomains/-servers are to be hosted on our server.

Currently any mail that is send from our server to the domain that runs gApps, doesn’t leave our server since I have to setup a mail-server for this domain.

Thanks for your help

Gerald

Sure, you can definitely host a website within Virtualmin, but email at Google apps.

To do that, first go into "Edit Virtual Server", and uncheck "Mail for domain enabled" in the server features.

At that point, you just need to point the MX records to the Google apps server.

To do that, you can go into Servers -> DNS Domain, make sure you delete the "Mail Server" records pointing to your server, then add the ones Google apps tells you to use.
-Eric

Thanks Eric,

I thought I tried this before, but it didn’t work. I tried it today and it seems to work. Maybe the problem I had was fixed with one of the updates since my first try.

Gerald

I have an old “retired” domain that I use gmail for, just so I won’t have to deal with all the spam (which is 99% of the mail this old domain gets). It’s been running fine for years.

If you wanted to do this in a wholesale fashion–i.e., all of your domains having mail hosted by GMail–you could add the necessary MX records to the BIND Server Template, and disable mail by default. Also works fine. Several users do that because they have a dedicated mail server. (Some go one step further down the path to awesome, and use the "Command to run after…" features in Virtualmin to trigger automatic management of users on the mail server.)

andreychek wrote:

Sure, you can definitely host a website within Virtualmin, but email at Google apps.

To do that, first go into "Edit Virtual Server", and uncheck "Mail for domain enabled" in the server features.

At that point, you just need to point the MX records to the Google apps server.

To do that, you can go into Servers -> DNS Domain, make sure you delete the "Mail Server" records pointing to your server, then add the ones Google apps tells you to use.
-Eric

Hi,

If we follow the instructions above and use Google hosted apps email for our domain, will the applications running on the domain/server still be able to send out email? Do we have to make any other changes?

Cheers!

-SAM

If we follow the instructions above and use Google hosted apps email for our domain, will the applications running on the domain/server still be able to send out email?

Of course. Local SMTP service is wholly separate from incoming virtual mail, POP3/IMAP, etc. Just having Postfix running, with no configuration at all, will be able to send mail out, assuming you have your DNS and hostname configured correctly.

Sure, you can host mail on Google, but send email from your server.

One issue to watch out for is SPF records – where ever your DNS is being hosted, if there’s any SPF records being setup, just make sure both Google and your server’s IPs are setup as authorized to send mail for your domain.
-Eric

Hi all!

I admin a server below a University network, I removed the “mail for domain” and added the MX records.
How I can know if I have done correctly?
There’s no place to attach my account?
Sorry if the questions are a bit stupid, I’m a newbie.

The university serves me only if I ask specifically what I need.

Any help?

Howdy,

Edit: I think I answered the wrong question with my original post.

Are you trying to setup Gmail to accept email for your domain?

Or are you trying to relay outgoing email through Gmail?

-Eric

EDIT2: All problems solved, my server was blocked by the top network on port 25. Now I can send mails from the moodle platform.

EDIT: The name “mailbox” it’s simply a Google Account that delegates to other accounts.

My university has a convention with Google.
All our email accounts are gmail accounts administered by the university.
We have the option of having an account type that we call “mailbox”. In this mailbox you can link multiple personal email accounts. Thus, a department can have all workers linked to the account “mailbox” and work together.

Basically: I’m trying to configure outgoing e-mails from a moodle platform.

What I have:
a personal google account
access to “mailbox” google account

What I want:
moodle can send outgoing mails via that “mailbox” account

PS: I am also waiting for the university computer technicians give me a solution.