[GH-ISSUE #3258] failed: Cached message size larger than expected #1820

Closed
opened 2026-02-27 11:19:18 +03:00 by kerem · 4 comments
Owner

Originally created by @hazho on GitHub (Jun 2, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3258

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

Originally created by @hazho on GitHub (Jun 2, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3258 # 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](https://github.com/modoboa/modoboa/assets/20362375/5c2c4a53-3c50-41a4-b46b-f00758183e05)
kerem 2026-02-27 11:19:18 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 5, 2024):

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

<!-- gh-comment-id:2149283631 --> @tonioo commented on GitHub (Jun 5, 2024): @hazho Have you enabled anything special in dovecot configuration? Or have you migrated from another system?
Author
Owner

@hazho commented on GitHub (Jun 6, 2024):

Not that I am aware of

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

<!-- gh-comment-id:2151157206 --> @hazho commented on GitHub (Jun 6, 2024): Not that I am aware of > @hazho Have you enabled anything special in dovecot configuration? Or have you migrated from another system?
Author
Owner

@tonioo commented on GitHub (Jun 6, 2024):

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/)

<!-- gh-comment-id:2152113335 --> @tonioo commented on GitHub (Jun 6, 2024): 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/)
Author
Owner

@stale[bot] commented on GitHub (Jan 31, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:2628548795 --> @stale[bot] commented on GitHub (Jan 31, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1820
No description provided.