Introduction
An email inbox may become corrupted, preventing some emails from being viewable in Webmail. Rebuilding the UID list or repairing the mailbox will resolve this problem. This article describes how to repair a broken mailbox in the event that all emails are not displayed.
Procedure
Utilize the "doveadm" utility to force resync the inbox.
doveadm force-resync -u user@emaildomain.com INBOX
Please note that you must replace "user@emaildomain.com" with the broken mailbox user.
If needed, you can instead rebuild all email accounts for the cPanel account with the following command.
uapi --output=json --user=cpaneluser Email list_pops | jq -r '.result.data[].email' | while read email; do doveadm force-resync -u "$email" INBOX ; done
Please note that you must replace "cpaneluser" with the desired cPanel account username.
Comments
0 comments
Article is closed for comments.