Symptoms
When attempting to view an email account's disk usage with "Email Disk Usage" in cPanel, you encounter an error similar to the following.
Error: “/usr/bin/doveadm” reported error code “68” when it ended: doveadm(emailuser@domain.tld): Error: Mailbox INBOX.Main: Failed to lookup mailbox status: Mailbox doesn't exist: INBOX.Main
When viewing the account in Roundcube, the mentioned folder is greyed out.
Description
This issue occurs when an IMAP client creates a subfolder on the server and the parent folder doesn't exist.
[root@server ~]cPs# ls -al |grep Main
drwxr-x--x 5 cpuser cpuser 135 Aug 25 10:34 .Main.submain
drwxr-x--x 5 cpuser cpuser 135 Aug 25 10:34 .Main.submain2
drwxr-x--x 5 cpuser cpuser 135 Aug 25 10:34 .Main.submain.subsubmain1
Unlike traditional directory structures, all mail folders and subfolders on a Dovecot system are folders in the email user's root directory. To correct the issue, the missing parent folder needs to be created.
Workaround
Please note that in the following procedure, "cpuser," "domain.tld," "emailuser," and "Main" must be replaced with the cPanel username, email account's domain name, email account's username, and the name of the missing folder, respectively.
- Access the server's command line as the cPanel user via SSH or "Terminal" in cPanel.
- Use the
mkdir
command to create the missing parent folder.mkdir /home/cpuser/mail/domain.tld/emailuser/.Main
- Use the
chmod
to set the folder's permissions.chmod 751 /home/cpuser/mail/domain.tld/emailuser/.Main
- Use the
chown
command to set the folder's ownership.chown cpuser. /home/cpuser/mail/domain.tld/emailuser/.Main