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.

URGENT: Moved Account and email accounts missing

Discussion in 'E-mail Discussions' started by jsteel, Dec 20, 2002.

  1. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  2. auyongtc

    auyongtc Member

    Joined:
    Aug 13, 2001
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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 :)
     
  3. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  4. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    Just had the same problem, but for some reason both copies of the passwd file were zero bytes.
     
  5. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
    I can't speak about the past, but currently those duplicate files are actually hardlinks to the files in /home/username/etc.
     
  6. gpan

    gpan Member
    PartnerNOC

    Joined:
    Feb 6, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  7. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  8. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    Sorry, should have mentioned that the best and easiest solution is to restore the mail configuration from backup through the WHM interface.
     
  9. gpan

    gpan Member
    PartnerNOC

    Joined:
    Feb 6, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    The server does not have backup. Is there any way to regenerate the default (primary) account details (UID/GID) passwd, shadow files?
     
  10. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  11. albertg

    albertg Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Thanks mate, the above solution solved the problem.
     
  12. useradmin

    useradmin Well-Known Member

    Joined:
    Oct 8, 2004
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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...
     
Loading...

Share This Page