On 14.5.2013, at 12.41, Jonathan Dowland <j...@debian.org> wrote: > Since upgrading from squeeze → wheezy, I cannot connect to dovecot-imapd > and read my mail. It reads the inbox and then disconnects shortly afterwards. > I see the following in my mail.err: > >> May 14 10:20:26 bryant dovecot: imap(jon): Error: Cached message size >> smaller than expected (9703 < 9706) >> May 14 10:20:26 bryant dovecot: imap(jon): Error: Maildir filename has wrong >> S value, renamed the file from >> /home/jon/Maildir/cur/1327480683.M217409P17453.pris,S=9703,W=9933:2,ae to >> /home/jon/Maildir/cur/1327480683.M217409P17453.pris,S=9706:2,ae >> May 14 10:20:26 bryant dovecot: imap(jon): Error: Corrupted index cache file >> /home/jon/Maildir/dovecot.index.cache: Broken physical size for mail UID 8 >> May 14 10:20:26 bryant dovecot: imap(jon): Error: >> read(/home/jon/Maildir/cur/1327480683.M217409P17453.pris,S=9703,W=9933:2,ae) >> failed: Input/output error (FETCH for mailbox INBOX UID 8)
The maildir filename has wrong S=size value. Dovecot should fix this automatically, but since it does it only one failure at a time it can take a while.. Other solutions would be to either have Dovecot ignore the value with maildir_broken_filename_sizes=yes or run a script that fixes the filenames: http://www.dovecot.org/tools/maildir-size-fix.pl -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org