markus79

Member
Apr 4, 2006
17
0
151
Hi,

I'm hosting a website for a client but not their email. I've gone into /etc/localdomains and commented out their domain name so the server knows its not a local address and sends it out to their correct email server.

It seems it only keeps for so long and every once in a while I'll go back in and its kept my commented line but adds a normal line for the domain at the end of the file. Is there a cpanel script that would cause it to keep adding it? Anything I can do so it won't do this again?

Thanks
Mark
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
I've noticed that whenever people attempt to edit how mail is routed on a cPanel server without going through cPanel, the customizations seem to generally become neutralized or blatantly overwritten.

How about editing the MX Entry for this client? If you edit it to point to their mail server then your mail server should no longer handle their e-mail.
 

randomuser

Well-Known Member
Jun 25, 2005
147
0
166
Don't comment the domain out in /etc/localdomains - remove it. Then add it to /etc/remotedomains

Fixing up the MX entry should be done as well.