The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/etc/localdomains

Discussion in 'General Discussion' started by markus79, Nov 30, 2006.

  1. markus79

    markus79 Member

    Joined:
    Apr 4, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    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.
     
  3. randomuser

    randomuser Well-Known Member

    Joined:
    Jun 25, 2005
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
Loading...

Share This Page