Skip to main content

Broken virtual size in mailbox

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! Can you try running the following commands to see if that clears the issue? This moves the dovecot indexes for the user out of the way and then restarts the mail server, but they can easily be put back if something goes wrong: mv /home/username/mail/dovecot.index{,.bak-`date +%Y%m%d`} mv /home/username/mail/dovecot.index.cache{,.bak-`date +%Y%m%d`} mv /home/username/mail/dovecot.index.log{,.bak-`date +%Y%m%d`} /scripts/restartsrv_dovecot
    0
  • gRobertsTVW
    Hi cPRex, Thanks for getting back to me. I have been through all dovecot.index files for the affected mailbox (trash etc is affected too) and renamed them as described and restarted dovecot and unfortunately, we're still seeing the same errors. Jun 9 13:31:21 NEW_SERVER dovecot: imap(orders@redacted.com)<24456>: Error: Mailbox INBOX.Junk: Deleting corrupted cache record uid=82925: UID 82925: Broken virtual size in mailbox INBOX.Junk: read(/home/redacted/mail/redacted.com/orders/.Junk/cur/1685426319.M614856P24704.OLD_SERVER.co.uk,S=10148,W=10178:2,): FETCH BODY[] got too little data: 10177 vs 10178
    Strangely other mailboxes on the same account are fine and this mailbox on the original server was fine also, but we had to move it and now experiencing issues?
    0
  • vanessa
    I've seen this issue before, and for me, deleting the "maildirsize" files corrected the issue. There's a file in each account so if you want to be bold about it: rm -fv /home/*/mail/$domain/$user/maildirsize then run: /scripts/generate_maildirsize --allaccounts
    0
  • gRobertsTVW
    Thanks Vanessa, Unfortunately that had no effect either :( Jun 9 14:39:49 NEW_SERVER dovecot: imap(orders@redacted.com)<4358>: Error: Mailbox INBOX.Junk: Deleting corrupted cache record uid=82925: UID 82925: Broken virtual size in mailbox INBOX.Junk: read(/home/redacted/mail/redacted.com/orders/.Junk/cur/1685426319.M614856P24704.OLD_SERVER.co.uk,S=10148,W=10178:2,): FETCH BODY[] got too little data: 10177 vs 10178
    Note, there are multiple errors in varying folders across the account. I was contemplating deleting the erroneous files but this would be deleting customers emails .
    0
  • cPRex Jurassic Moderator
    Sounds like it's time to create a ticket for this one.
    0
  • vanessa
    Maybe try this too, according to cpanel docs (which might be similar to what cprex was offering) /scripts/remove_dovecot_index_files --user user
    0
  • gRobertsTVW
    Thanks Vanessa, we have already tried this and unfortunately this didn't resolve the issue. I'll escalate this and will let you know the outcome.
    0
  • gRobertsTVW
    Maybe try this too, according to cpanel docs (which might be similar to what cprex was offering) /scripts/remove_dovecot_index_files --user user

    Sounds like it's time to create a ticket for this one.

    Hi Both, Just thought I'd update you on this. Turns out that a number of emails were corrupt and coming back as data (using file) which caused issues. After removing these, it appears the issue was resolved. Thanks again for your help
    0

Please sign in to leave a comment.