URGENT: Moved Account and email accounts missing

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
I moved a customer's account last night and all but two of his user's email accounts are missing from CPanel, yet the individual user's directories are still under the /mail subdirectory in his home directory, including the respective inbox files.

How can get those accounts listed back in the CPanel or did the move somehow delete their accounts within exim' s configs?

Jaz
 

auyongtc

Member
Aug 13, 2001
15
0
301
I've been into the same problem - and how did I rectify it?

Simple... prior to the move, on the old server, double up the diskspace quota for that account (to ensure no problem with diskspace while making backup to move over)

And then just do the backup as usual. It should complete flawlessly.

It's just that during the compilation of data to move, it hit the quota limit and that was the cause of it :)
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
Appreciate the reply, but that wasn't the problem. I found it to be that the passwd file for that customer (in /home/username/etc) didn't have any of the entries for their users (even though the quota and shadow files did). Fortunately WHM/CP does this crazy thing were they duplicate those files in a subdirectory with the name of the domain name (/home/username/etc/domainname), so a simple copy of the other passwd file (which had the entries) remedied the situation.
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
I've found that this is usually related to quotas as stated earlier. My suggestion is to temporarily disable quotas on the destination server during the transfer.
Fortunately WHM/CP does this crazy thing were they duplicate those files in a subdirectory with the name of the domain name (/home/username/etc/domainname)
I can't speak about the past, but currently those duplicate files are actually hardlinks to the files in /home/username/etc.
 

gpan

Member
PartnerNOC
Feb 6, 2003
9
0
151
Does anyone have a suggestion for fixing the missing passwd file issue (they are all zero bytes)

Have a couple of domains these just dissappeared on from in 9.3

Thanks in advance.
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
If you have a valid shadow file, then back it up. Use the accounts listed in it to recreate the missing accounts in the user's cPanel interface. Afterwards, copy the old shadow file over the new one. Since the other files are hardlinked to it, I think the safest thing is to do the copy like like this:
Code:
# cat /dev/null > shadow
# cat shadow.BAK > shadow
I'm not sure that's perfect, but you get the idea.
 

gpan

Member
PartnerNOC
Feb 6, 2003
9
0
151
The server does not have backup. Is there any way to regenerate the default (primary) account details (UID/GID) passwd, shadow files?
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
I'm not buying that it's a quota issue as the zero byte issue just came up on an account with a 200MB quota and that was using only 46MB. Even taking into account a doubling of the space for the backup, there's plenty of room left over. There's another issue going on here.
 

albertg

Well-Known Member
PartnerNOC
Sep 4, 2002
61
0
156
jsteel said:
Appreciate the reply, but that wasn't the problem. I found it to be that the passwd file for that customer (in /home/username/etc) didn't have any of the entries for their users (even though the quota and shadow files did). Fortunately WHM/CP does this crazy thing were they duplicate those files in a subdirectory with the name of the domain name (/home/username/etc/domainname), so a simple copy of the other passwd file (which had the entries) remedied the situation.
Thanks mate, the above solution solved the problem.
 

useradmin

Well-Known Member
Oct 8, 2004
107
0
166
INDIA
missing email account.

HI.


as per my condition.


i have transfered data from one server to another.
all entries are there but still email missing from cpanel.
only one thing i observ is few files are missing from mail folder which is started from .
let me know the solution...