Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Restoring mail folder issue after server crash

Discussion in 'E-mail Discussion' started by krusty, Feb 25, 2018.

  1. krusty

    krusty Active Member

    Joined:
    Apr 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    151
    I had an issue with my vps after a crash, which meant reinstalling the os and cpanel. I had back ups that day so there is no issue on that front.

    I had left exim running once the server was back up (and before i realised there was an issue and had to do a reinstall) so I tar'd the mail directories of each account.

    upon restoring each account. i've done a mv mail old.mail and untared the mail folder in its place

    did a repair mail permsions but now each email account is showing zero emails.

    help
     
  2. krusty

    krusty Active Member

    Joined:
    Apr 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    151
    update
    fixed by running

    /scripts/generate_maildirsize --confirm --allaccounts --verbose
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
     
Loading...

Share This Page