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!

How to restore a specific mail box on the domain from a cpanel backup

Discussion in 'E-mail Discussion' started by techni, Jun 22, 2012.

  1. techni

    techni Member

    Joined:
    Jun 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Accidently deleted mail box of an email account , how can we retrieve that specific mail box of a email account as we have the daily backup from cpanel without disturbing the existing mails
    Please let me know how to retrieve it
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    407
    Likes Received:
    3
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Try the following steps,

    1. Extract the backup of the particular user and cd to the extracted folder ( tar -xvzf cpmove-user.tar.gz )

    2. There you can see a homedir.tar file; now untar it ( tar -xvf homedir.tar )

    3. When untar is over, you can see a "mail" directory.

    4. switch to it and you can see the domain.com directory; cd to it and list the files / directroies

    5. Now you can see your mail user's email box. Copy it and paste it to /home/user/mail/domain/.com/

    6. Make sue a symlink is created /home/user/mail/ to that email folder. You can refer other email account and see those symlinks for reference.

    6. Try to send a test mail.

    7. Done!

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. techni

    techni Member

    Joined:
    Jun 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    Let me just check as you posted and come back as domain is sizing around 40GB
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice