Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to configure MX settings for using Google Apps email service
#1
Hey Guys,

I am trying to configure MX settings for my domain and here are the settings that google asked to change on my server. While this has been easy to do till now on Plesk, I have not managed to get it working after several attempts to update the Apache and DNS settings.

ASPMX.L.GOOGLE.COM. 10
ALT1.ASPMX.L.GOOGLE.COM. 20
ALT2.ASPMX.L.GOOGLE.COM. 20
ASPMX2.GOOGLEMAIL.COM. 30
ASPMX3.GOOGLEMAIL.COM. 30
ASPMX4.GOOGLEMAIL.COM. 30
ASPMX5.GOOGLEMAIL.COM. 30


Any thoughts on where I should add these settings and whether to add them as it is or some more information will be needed.

cheers,
Asif

Restored from old drupal forum, for user uid:3176 username:monsterk
You may reset your password to access your new account here.
Reply
#2
Alright I didn't mean to post this twice, but it seemed the site wasn't responding for a while and resulted in submitting the post twice.

Restored from old drupal forum, for user uid:3176 username:monsterk
You may reset your password to access your new account here.
Reply
#3
go to that domain, in ehcp,
then, click "edit dns template for domain."
then, insert those lines below the template.

it should work this way.

delete any other mx record from that template.


Restored from old drupal forum, for user uid:3176 username:monsterk
You may reset your password to access your new account here.
Reply
#4
Have been busy with other stuff, but tried this a week back and it doesn't work. Any other options or suggestions?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#5
Trying to configure mail is a nightmare with ehcp, no bash on the developers everything else is great and thanks for the free software, but yeah I'm sure one day this will be fixed.

Is it impossible to configure google apps with ehcp or what? I've done everything that I normally do in every other webhosing company I've ever been with and I get nothing, I have all of googles mx records in my dns list and the mx servers will not resolve with google, is there something I'm missing? I really want to use google apps with my domain. Thanks!

Restored from old drupal forum, for user uid:3176 username:monsterk
You may reset your password to access your new account here.
Reply
#6
I use google domain services. The only thing i changed was at my domain registar i had to put googles mx info there. On the ehcp side I haven't done anything. This could be why email from the local host to the email addresses hosted at google can't email. But that's a separate issue.

Restored from old drupal forum, for user uid:3801 username:iconus
You may reset your password to access your new account here.
Reply
#7
in fact, it should not be a nightmare,
just you need to know very little to configure things.

the idea is this:
configuring google mx or apps needs you to define mx/dns records.
editing dns records in ehcp is this way: choose your domain, then, click "edit dns template"
then, change it by obeying bind dns config rules.

for ex, for mx record:
in mx 10 bla.bla.bla.gmail.com

or similar things.
save it,
it is done.

if something goes wrong, you need to test, and need to know to test.
in a normal system, which is installed using ehcp from a clean ubuntu install, it should work.

if not work, then, test your dns resolution; on server,test if bind working etc.

by the way, email is already the hardest (relative to others) part of a hosting business. so, expecting it to work like a click is almost an imagination. in fact, with ehcp, as I said above, email works like a click if installed on a clean ubuntu system.

Restored from old drupal forum, for user uid:3246 username:Stone1555
You may reset your password to access your new account here.
Reply
#8
I've already posted a blog regarding this issue, but I wanted to put it in here as well. So here it is:

I'm very pleased to be able to finally bring a how to guide to adding Google Apps email to your amazing and free EHCP software. Hopefully this will make it even better.

1. Go to /var/www/new/ehcp and find the apachetemplate file. Open the file in your favorite text editor.

2. Delete this whole section:

Virtual Host>
ServerName webmail.yourdomain.com
ServerAlias mail.yourdomain.com
ServerAlias email.yourdomain.com

DocumentRoot {ehcpdir}/webmail

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir {ehcpdir}/webmail
php_admin_value upload_tmp_dir {ehcpdir}/webmail/data
php_admin_value session.save_path {ehcpdir}/webmail/data
/Virtualhost>

Yep that's right delete this entire section as it interferes with the google cname you'll be entering a little later (I found this out by accident). Save the file and upload to server.

3. Go to your EHCP control panel and click on "edit dns template for this domain".

4. Take out everything that has an mx in it inside your dns template, and add this:

mail.yourdomain.com. IN CNAME ghs.google.com.
yourdomain.com. IN TXT "v=spf1 include:_spf.google.com ~all"
@ IN MX 1 ASPMX.L.GOOGLE.COM.
yourdomain.com. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
yourdomain.com. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
yourdomain.com. IN MX 10 ASPMX2.GOOGLEMAIL.COM.
yourdomain.com. IN MX 10 ASPMX3.GOOGLEMAIL.COM.
yourdomain.com. IN MX 20 ASPMX4.GOOGLEMAIL.COM.
yourdomain.com. IN MX 20 ASPMX5.GOOGLEMAIL.COM.

Of course replace yourdomain with, well, your domain, and if you don't want mail. to be your address add whatever you want there, such as: webmail.yourdomain.com IN CNAME ghs.google.com.

5. That's it, and it might actually take up to 48 hours to propagate with google so be patient, it took mine about a day and a half to propagate.

6. This last one is a tip, after your email has propagated with google, you can add custom web addresses for Calendar, Docs, etc., by simply adding another cname record in your dns template, like so: docs.yourdomain.com. IN CNAME ghs.google.com.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#9
Hello

i setup google apps and i can receive emails but email from the local host to the email addresses that i made on google apps wont works.
I have couple of emails made in google apps like info@mysite.com and they works but from localhost to them wont works.
Not sure what im missing

my dns info:

$TTL 86400
@ IN SOA ns.mysite.com. {dnsemail} (
{serial} ; Serial, this is www.ehcp.net dns zone template file..
10800 ; Refresh
1200 ; Retry
86400 ; Expire
86400 ) ; Minimum

mysite.com. IN NS ns.mysite.com.
ns.mysite.com. IN A {dnsip}
ns1.mysite.com. IN A {dnsip}
ns2.mysite.com. IN A {dnsip}
dns.mysite.com. IN A {dnsip}
dns1.mysite.com. IN A {dnsip}
dns2.mysite.com. IN A {dnsip}
mysite.com. IN A {webip}
ftp.mysite.com. IN CNAME mysite.com.
www.mysite.com. IN CNAME mysite.com.
mail.mysite.com. IN CNAME ghs.google.com.
mysite.com.com. IN TXT "v=spf1 include:_spf.google.com ~all"
@ IN MX 1 ASPMX.L.GOOGLE.COM.
mysite.com. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
mysite.com. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
mysite.com. IN MX 10 ASPMX2.GOOGLEMAIL.COM.
mysite.com. IN MX 10 ASPMX3.GOOGLEMAIL.COM.
mysite.com. IN MX 20 ASPMX4.GOOGLEMAIL.COM.
mysite.com. IN MX 20 ASPMX5.GOOGLEMAIL.COM.
mysite.com. IN TXT "v=spf1 a mx"

{customdns}

* IN A {webip}


Anyone can help?

Restored from old drupal forum, for user uid:3801 username:iconus
You may reset your password to access your new account here.
Reply
#10
I think you may need to remove mysite.com. IN TXT "v=spf1 a mx" as it was replaced by mysite.com IN TXT="v=spf1 include:_spf.google.com ~all"

You also have mysite.com.com, which should be just mysite.com

Restored from old drupal forum, for user uid:3855 username:mariusse
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping