Symptoms
Dovecot generates errors similar to the following in the /var/log/maillog
file:
dovecot: imap(user@domain.tld)<782><R+lKIYC32qB/AAAB>: Error: Corrupted record in index cache file /home/user/mail/domain.tld/user/dovecot.index.cache: UID 1001: Broken physical size in mailbox INBOX: read(/home/user/mail/domain.tld/user/cur/1509799350.M592274P32540.server.hostname.tld,S=314477,W=318606:2,S) failed: Cached message size larger than expected (314477 > 2305, box=INBOX, UID=7137)
The account may also not be able to sync with email clients such as Roundcube or Outlook.
Description
This is often caused by the Dovecot index for the user or the referenced file being corrupted.
Workaround
- Verify if the file contains valid data:
cat /home/user/mail/domain.tld/user/cur/1509799350.M592274P32540.server.hostname.tld,S=314477,W=318606:2,S
- If it does not, delete the file or move it to a different directory, otherwise continue.
- Remove the index for the user so that it will be rebuilt:
/scripts/remove_dovecot_index_files --user user
Comments
0 comments
Article is closed for comments.