Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

What creates the 'userdomains' file ?

Discussion in 'General Discussion' started by nyjimbo, Aug 6, 2007.

  1. nyjimbo

    nyjimbo Well-Known Member

    Jan 25, 2003
    Likes Received:
    Trophy Points:
    New York
    After much anguish trying to fix problems of a new migrate and upgrade we know the /etc/vmail folder is created by reading the /etc/userdomains file and it makes all the stuff needed for users to get email.

    One thing I dont know is how the userdomains file is made. It appears to be sorted alphanumerically so it wasnt created as we added accounts. My concern is whatever made it the last time it got screwed up, will create it again.

    Anybody know what makes it and when its done ?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKenneth

    cPanelKenneth cPanel Development Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    /scripts/updateuserdomains will rebuild /etc/userdomains for you. There are various processes that manipulate the file: account creation, addon domain creation, etc. Since various problems are traceable to a corrupt /etc/userdomains, we made that script available.

    Are you saying that everytime an account is created, the /etc/userdomains file is corrupted? Could you describe the corruption, or provide a sanitized version? Which version and build of cPanel are you using?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice