How to change MX to use google email

salvatore333

Well-Known Member
Mar 27, 2003
233
0
166
Customer wants us as a web host but use google as his email host.

I ask him to give me google's mx settings and he gives me this:


Mail Server Priority Value:

ASPMX.L.GOOGLE.COM. 10
ALT1.ASPMX.L.GOOGLE.COM. 20
ALT2.ASPMX.L.GOOGLE.COM. 30
ASPMX2.GOOGLEMAIL.COM. 40
ASPMX3.GOOGLEMAIL.COM. 50


Would somebody be kind enough to please give me a step by step on how to edit his DNS Zone in WHM to get this to properly work. Not sure if I also have to remove it from localdomains and add it to remotedomains and restart bind. Instructions would be very appreciated,

Thanks again, Sal
 

salvatore333

Well-Known Member
Mar 27, 2003
233
0
166
After making the first change via the customers cpanel I think I figured the rest out. Do I still need to delete it from /etc/localdomains and add it to /etc/remotedomains?

Thanks alot, Sal
 

Lyttek

Well-Known Member
Jan 2, 2004
776
4
168
If I'm understanding what you're trying to do, that's not going to work.

What you've done is basically say 'send emails destined for [email protected] to google'... their servers aren't going to know anything about domain.com and so they'll refuse it.

What you need to do is either setup his entire domain to forward all email to his google email address, or just setup all email addresses on his domain to forward to his google account.
 

Almighty

Member
Apr 20, 2003
20
0
151
What you've done is basically say 'send emails destined for [email protected] to google'... their servers aren't going to know anything about domain.com and so they'll refuse it.
Actually they will, as I assume the customer is using Gmail Hosted which lets you use gmail for your domain.
 

Lyttek

Well-Known Member
Jan 2, 2004
776
4
168
Almighty said:
Actually they will, as I assume the customer is using Gmail Hosted which lets you use gmail for your domain.

One thing I've learned... never 'assume' ;)

I've had people ask for things like "can I get an email address that ends in microsoft.com?"... so I have a tendency to think the worst :D
 

Lyttek

Well-Known Member
Jan 2, 2004
776
4
168
salvatore333 said:
Do I still need to delete it from /etc/localdomains and add it to /etc/remotedomains?

Nope. Just set your MX entries accordingly.

Where the localdomains/remotedomains comes into play is when you're setting up a secondary server in case the primary goes down.
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
156
Lyttek said:
Nope. Just set your MX entries accordingly.

Where the localdomains/remotedomains comes into play is when you're setting up a secondary server in case the primary goes down.

No, you still need to remove it from localdomains. If the customer puts a form on their website to be emailed to [email protected] and that domain is in the localdomains file exim won't look for an MX record, it will just try and deliver the message. Same is true if people try and send email to domain using your box as their outgoing SMTP server.
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
156
If you used the change MX function from cpanel it would have taken it out of localdomains for you. It when people edit the zone directly that they have to manually do this task.
 

Norman

Well-Known Member
Sep 20, 2004
88
0
156
This owrked for me too.. When I changed the MX via Cpanel it didn't remove it and I was having issues routing.. but this seemed to work perfectly

Thanks guys
 

satu

Registered
Oct 8, 2006
1
0
151
Am a customer who requested help from my host to change the mx records. They were kind enough to send me a screen shot of the changes made but google still said that there was error in the settings.

Is there anything I need to do on my part? I've changed the "managed MX records under email settings" but no help. My host asked me to contact google. Which email in google do i send to? :D

Maybe i should send my hosting company here to read the forums a bit more :lol:
 

levelsupport

Well-Known Member
Oct 7, 2006
47
0
156
salvatore333 said:
Customer wants us as a web host but use google as his email host.

I ask him to give me google's mx settings and he gives me this:


Mail Server Priority Value:

ASPMX.L.GOOGLE.COM. 10
ALT1.ASPMX.L.GOOGLE.COM. 20
ALT2.ASPMX.L.GOOGLE.COM. 30
ASPMX2.GOOGLEMAIL.COM. 40
ASPMX3.GOOGLEMAIL.COM. 50


Would somebody be kind enough to please give me a step by step on how to edit his DNS Zone in WHM to get this to properly work. Not sure if I also have to remove it from localdomains and add it to remotedomains and restart bind. Instructions would be very appreciated,

Thanks again, Sal
As far as it has tested and worked for me, you just have to do the following simple things.
say your domain is email.com
goto whm > edit dns zone > email.com
their you will see your mx with priority 0 and value email.com.
change it to
priority 10 and value ASPMX.L.GOOGLE.COM.
and same way create new mx records

check the screenshots i am attaching.
 

Attachments

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
should be removed from localdomain too

hi,
as said earlier i think the domain name which is using goolge mail services should be removed from localdomain and added to remotedomains so mails originating from your server are able to reach this domain.

see ya,
mohit