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.

Domains disappearing from /etc/localdomains

Discussion in 'General Discussion' started by dreamwiz, Feb 8, 2011.

  1. dreamwiz

    dreamwiz Well-Known Member

    Joined:
    Aug 28, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Hi there,

    I have noticed that some domains seem to randomly disappear from /etc/localdomains for no apparent reason. This has been going on multiple servers for more than a year. Have you experienced the same thing and cPanel folks, do you have an explanation for this?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello dreamwiz,

    There are only four possible reasons I could see this happening:

    1. The domain is in /etc/remotedomains file

    2. The domain has the /var/cpanel/users/username file (where username is the cPanel username) set to remote for the MX check such as:

    Code:
    MXCHECK-domain.com=remote
    3. The domain isn't properly owned by the cPanel user but by system or nobody, so whenever mail permissions are fixed (by running /scripts/mailperm), the domain disappears from /etc/localdomains

    4. Someone is periodically editing the file to remove the domain. While this isn't likely, if you have other users with root access on the system, another person manually removing it cannot be discounted as a possible reason.

    Thanks.
     
  3. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    In cPanel, if you change the Email Rounting from local Mail Exchanger to Remote Mail Exchanger, the domain will be removed from /etc/localdomains and added to /etc/remotedomains
     
Loading...

Share This Page