ahmedeg

Registered
Oct 28, 2006
3
0
151
we have removed /etc/vmail by error
what is the best way to return it back?
any one know
 

jandafields

Well-Known Member
May 6, 2004
436
6
168
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
 

uneedawebsite

Active Member
Apr 14, 2003
27
0
151
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
[email protected] [/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
 

nyjimbo

Well-Known Member
Jan 25, 2003
1,135
1
168
New York
we have removed /etc/vmail by error
what is the best way to return it back?
any one know
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.