Site in my server and E-mails in other server how to???

bsasninja

Well-Known Member
Sep 2, 2004
527
0
166
A customer is asking me, he wants the site on my server but he wants to keep their e-mails in his actual hosting.

I know it has to do with dns zones MX records but I dont know how to do it. Also I dont know if it must be setup in my server, the other server or both...

Waiting for help!

Thanks!
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
you would have to adjust the mx entry in his dns record to point to his other server. In your whm > dns functions > edit mx entry.
 

hostmedic

Well-Known Member
Apr 30, 2003
543
0
166
Washington Court House, Ohio, United States
cPanel Access Level
DataCenter Provider
also

Yup - but you should also edit the localdomains file and remove the entry there
and place in the domain in the
remotedomains file


PHP:
pico /etc/remotedomains

add the domain on a new line 

somedomain.com

Control X to exit - choose y to save and overwrite
then

PHP:
pico /etc/localdomains

remove the domain you want to use an external MX

somedomain.com

Control X to exit - choose y to save and overwrite
Note - vi or nano might be the editor you need to choose depending upon your OS.

vi you would need to hit the escape key and then type wq at the : prompt.


Hope that helps.


** Now **
The reason for doing this is so on an update - or when someone runs a check on local domains the domain does not have the mx automatically changed back.


Best wishes.