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.

What creates the 'userdomains' file ?

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

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    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 ?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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?
     
Loading...
Similar Threads - creates 'userdomains' file
  1. Erik Ellsinger
    Replies:
    5
    Views:
    649

Share This Page