Configuring Plesk to Support an External Email Server (like Gmail)

In: Plesk| Services

24 Mar 2009

Although a Virtual Private Server can handle quite a bit of load, one of my favorite tricks is to use an external mail server such as Google Apps for business to handle emails. The user gets about 7GB of space, great POP and IMAP support and an excellent anti-spam filter to boot. Signing up for the basic service is free, and they’ll provide step by step instructions on how to configure your DNS to them.

google-dns1

Click to enlarge

In Plesk, its quite simple to do it. Go to the DNS zone management (Read about the “missing” DNS zone management in Plesk 9) and configure it like the image on the right. You might have to delete the primary MX entry first, then add them all again from 10 to 30. Google recommends a higher setting, but I’ve found 10 to 30 works fine.

Next is an important part of this configuration – turning off emails so that your VPS knows you’re using an external email server. If you don’t, your users will face problems emailing each other within the same domain (or server if you have other domains that email this user). Its also important when you have a form mail installed or even any other script that sends emails from a web-based form so that it does try to deliver your email locally.

So, here’s a Plesk tip – go to Mail Accounts > Mail Settings and  uncheck the box next to “Activate mail service on domain”. This will tell Plesk to not use the local mail service.

10 Responses to Configuring Plesk to Support an External Email Server (like Gmail)

Avatar

Scott Henson

March 25th, 2009 at 2:03 am

That’s a good trick. I’ve been thinking of playing around Google Apps. I really like the idea.

Thanks for the tip

Scott Henson
http://www.formmailhosting.com

Avatar

DPC

August 26th, 2009 at 6:32 pm

Excellent tip! In general what’s the impact on resources when hosting your own email on your VPS? How about when reselling on a VPS (say hosting 10 site, each with their own email)?

Can your configuration also be applied to cPanel?

Avatar

admin

August 27th, 2009 at 8:46 pm

DPC,

I can’t give specific resource usage, but if you have 10 websites with an average of 5 emails, that’ll be 50 emails that’ll requires SpamAssassin + Qmail processing. An external service like Gmail would mean that emails totally bypass the server, leaving the resource for stuff like Apache and MySQL.

I’m not sure about cPanel, but I’ll try and put up a similar guide soon.

Avatar

mike

October 10th, 2009 at 9:42 am

i have to say you made my day…. thanks

Avatar

admin

October 11th, 2009 at 9:12 pm

You’re welcome!

Avatar

mark

October 15th, 2009 at 1:16 am

Dude! what a great idea.

I have over 300 domains, each and every single day i get calls from clients asking about mail, delivery delays, over quota, SPAM, lost messages etc etc

Now i can offer the “AWESOMENESS” of Google, divert my risk and then simply support the certainty Google provides.

Nice one.

Avatar

Edward Lewis

October 25th, 2009 at 6:47 pm

I can find the Mail Accounts > Mail Settings in Plesk :(

Avatar

Guruprasad

October 30th, 2009 at 12:31 pm

Hi, Im using Plesk 9.0 provided by my hosting provider(Shared Hosting). My domain cannot send or recieve emails from my web application. My domains are certansia.com and gsglobale.com, i’d setup my Mail servers and its working quite perfect when i use mail.domain.com but its not getting integrated with the plesk c-panel 9 and 8.4 for the 2 domains! Plz help me!

Avatar

admin

November 17th, 2009 at 11:40 pm

@mark – glad you like it!

Avatar

tayfun

January 30th, 2010 at 11:29 am

thanks for the hint. I have been searching this dns stuff and i was about to get crazy :)

Comment Form

About VPS Guides

I've been using Virtual Private Servers for the past 11 years. I'd like to share these experiences here, so I'll be writing Tips, Tutorials, Guides and other helpful hints...

» VPS Hosting Comparison Chart «

  • admin: Haha... yes. I think I might have published this one a little too early, I've been compiling but hav [...]
  • unmetered vps: So uhm.. where is the comparison? [...]
  • tayfun: thanks for the hint. I have been searching this dns stuff and i was about to get crazy :) [...]
  • Infrenion: Nice post, I would recommend using WHMCS Billing system (http://www.whmcs.com) and Vision Helpdesk S [...]
  • michael: Thanks. This helped me. You know how frustrating these simple things can be!! [...]
DNS Made Easy

Partner Sites