Introduction
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.
Procedure
Please note that 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 via 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
mailperm
script to recreate the mailbox folders./usr/local/cpanel/scripts/mailperm $cpuser
Comments
0 comments
Article is closed for comments.