Corrupted index cache after migrating from maildir to mdbox

Tim tim at bastelfreak.de
Sun Oct 12 22:52:32 UTC 2014


Hi,

I mv'ed all dovecot.index.cache files for one mailbox away but I still
get error messages:

Oct 12 22:47:12 mail01 dovecot: imap(foobar at example.com): Error:
read(/home/vmail/example.com/foobar/mdbox/storage/m.1):
 FETCH BODY[] for mailbox INBOX UID 3 got too little data: 738 vs 1543
                                                                Oct 12
22:47:12 mail01 dovecot: imap(foobar at example.com): Error: Corrupted
index cache file
/home/vmail/example.com/foobar/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache:
Broken virtual size for mail UID 3

So dovecot recreates the cache file but they are instant broken again?
Any thoughts here?


On 12.10.2014 14:54, Daniel Parthey wrote:
> I think you could try to simply delete dovecot.index.cache file and have dovecot automatically recreate it on the next delivery or login. And then see if the error messages go away for this mailbox.
> 
> With mdbox the dovecot.index file must not be deleted however, you would otherwise lose "seen" flags.
> 
> Anyway, better have a backup prepared, before deleting any files ;)
> 
> Regards
> Daniel
> 


More information about the dovecot mailing list