modoboa/modoboa

failed: Cached message size larger than expected

hazho opened this issue · 3 comments

Impacted versions

  • OS Type: Debian/Ubuntu,
  • OS Version: ubuntu 22+
  • Database Type: PostgreSQL
  • Database version: X.y
  • Modoboa: 2.2.0
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

deleting large number of mailboxes, caused the following error to be raised, but only when the user scroll down the inbox (the query parameters: ?action=listmailbox&mbox=INBOX&scroll=true&page=2):

Jun 2 20:01:15 mail dovecot: imap(user4@maildomain.com)<791373><gnlzAOwZKOR/AAAB>: Disconnected: FETCH failed: Mailbox INBOX: UID=13: read(/srv/vmail/maildomain.com/user4/Maildir/cur/1708450224.M924417P472542.mail.maildomain.com,S=1749,W=1787:2,) failed: Cached message size larger than expected (1749 > 1744, box=INBOX, UID=13) (read reason=) in=816 out=28076 deleted=0 expunged=0 trashed=0 hdr_count=40 hdr_bytes=7926 body_count=0 body_bytes=0

Expected behavior

simply load the mailbox inboxes

Video/Screenshot link (optional)

getting the following
image

@hazho Have you enabled anything special in dovecot configuration? Or have you migrated from another system?

Not that I am aware of

@hazho Have you enabled anything special in dovecot configuration? Or have you migrated from another system?

Ok. It could be useful to understand how it happened but in the meantime, you can try to remove the corresponding cache file. (like explained here: https://www.plesk.com/kb/support/empty-inbox-is-shown-in-webmail-on-a-plesk-server-cached-message-size-larger-than-expected/)