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/vmail

Discussion in 'E-mail Discussions' started by ahmedeg, Jul 2, 2007.

  1. ahmedeg

    ahmedeg Registered

    Joined:
    Oct 28, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    we have removed /etc/vmail by error
    what is the best way to return it back?
    any one know
     
  2. midPeer

    midPeer Registered

    Joined:
    Jan 17, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Do you have a full backup of your server...?
     
  3. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Be careful what you delete! Fortunately for you, there is an easy fix this time...

    This command will rebuild your entire vmail folder:

    /scripts/updateuserdomains
     
  4. uneedawebsite

    uneedawebsite Active Member

    Joined:
    Apr 14, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I ran /scripts/updateuserdomains and got the following error:

    touch: creating `etc/secondarymx': No such file or directory
    touch: creating `etc/secondarymx': No such file or directory
    root@secure [/scripts]#

    There is a file called /etc/secondarymx which is empty. I tried moving it out of etc to let the script create it, but it did not, so I moved it back.

    I got the same error in all cases.

    Any help out there?

    Mark
     
  5. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Not to be snarky, but is vmail the only thing you removed ?

    Seriously, if you did some kind of wildcard removal or anything other than specifically killing the vmail subdirectory you might be seeing an error due to another missing file or folder.

    updateuserdomains needs other files to work properly so something might be missing.
     
Loading...

Share This Page