Question
How do you fix mailbox permissions from the command line?
Answer
Occasionally, your users' mailbox permissions may be incorrect after a migration from another server. This can cause issues with sending and/or receiving email. cPanel includes the mailperm script that can be used to correct permissions on mail files within an account.
- Access the server's command line as the
rootuser via SSH or Terminal in WHM -
Run the
mailpermscript for the user:# /usr/local/cpanel/scripts/mailperm --verbose $user
Note: "$user" must be replaced with the cPanel account's username.
This procedure will only work if the user's files are not owned by root. If the user's mail files are owned by root, you will need to follow the instructions in this article:
Mailbox permissions for user@domain.com are broken and can't be fixed
Comments
0 comments
Article is closed for comments.