Question
How do I replace a user's missing mailbox?
Answer
A user's mailbox may become missing due to malicious activity, file system corruption, or accidental deletion. The user's mail folders can be recreated. However, lost messages must be restored from a backup.
Note: In the following procedure, $cpuser, $domain.tld, and $user must be replaced with the cPanel username, domain name, and email username, respectively.
- Access the server's command line as
rootvia SSH or Terminal in WHM. Create the email user's mail folder.
# mkdir /home/$cpuser/mail/$domain.tld/$user
Set the folder ownership.
# chown $cpuser. /home/$cpuser/mail/$domain.tld/$user
Set the folder permissions.
# chmod 751 /home/$cpuser/mail/$domain.tld/$user
Run the
mailpermscript to recreate the mailbox folders.# /usr/local/cpanel/scripts/mailperm $cpuser
Comments
0 comments
Article is closed for comments.