Webmail error failed: Cached message size larger than expected

mr.ken84

Verified User
Joined
Apr 21, 2022
Messages
16
i can't check inbox on webmail Roudcube, Dovecot generates errors similar to the following in the /var/log/maillog file:
Dec 9 17:11:22 host108 dovecot[1427]: imap([email protected])<715920><25UBltMoiMNxoA0k>: Error: Mailbox INBOX.Nguyet KT: UID=1992: read(/home/user/imap/domain.com/ha.nt/Maildir/.INBOX.Nguyet KT/cur/1706867343.M973974P15842.mail11.domain.net,S=3423897,W=3468499:2,S) failed: Cached message size larger than expected (3423897 > 12078, box=INBOX.Nguyet KT, UID=1992) (FETCH BODY[])
The account may also not be able to sync with email clients such as Roundcube or Outlook.
please help me
 
Hello,

Did you rename files? Or compressed/uncompressed them recently?

You will need to rename files, e.g:

- /home/user/imap/domain.com/ha.nt/Maildir/.INBOX.Nguyet KT/cur/1706867343.M973974P15842.mail11.domain.net,S=3423897,W=3468499:2,S

to

- /home/user/imap/domain.com/ha.nt/Maildir/.INBOX.Nguyet KT/cur/1706867343.M973974P15842.mail11.domain.net

More reading: https://doc.dovecot.org/2.3/admin_manual/mailbox_formats/maildir/

Dovecot supports reading a few fields from the <base filename>:

,S=<size>: <size> contains the file size. Getting the size from the filename avoids doing a system stat() call, which may improve the performance. This is especially useful with Quota Backend: maildir.

,W=<vsize>: <vsize> contains the file’s RFC822.SIZE, i.e., the file size with linefeeds being CR+LF characters. If the message was stored with CR+LF linefeeds, <size> and <vsize> are the same. Setting this may give a small speedup because now Dovecot doesn’t need to calculate the size itself.
 
Back
Top