Corrupted index cache after migrating from maildir to mdbox
Tim
tim at bastelfreak.de
Tue Sep 30 13:41:24 UTC 2014
On 30.09.2014 11:24, Toni Mattila wrote:
> Hi,
>
> You have broken maildir files with wrong S= in them. Usually produced
> by maildrop or courier imap's tools. You can fix them with
> http://www.dovecot.org/tools/maildir-size-fix.pl
>
I migrated from maildir to mdbox. Seems like the tool only fixes maildir
format? possible to fix my mdbox? Also I never noticed any error
messages while using maildir.
> If you compare ls -la and S= in the files you will see the difference.
>
> Cheers,
> Toni
>
> On 30.9.2014 10:05, Tim wrote:
>> Hi guys,
>>
>> does nobody has any thoughts on this error?
>>
>>
>> On 28.09.2014 02:48, Tim wrote:
>>> Hi guys,
>>>
>>> I'm running dovecot/postfix on my Debian Jessie maschine:
>>>
>>> # dovecot --version
>>> 2.2.13
>>> doveconf -n output: http://p.bastelfreak.de/HsVwS/
>>>
>>> today I migrated from maildir(located at /var/vmail) to mdbox with
>>> these
>>> commands:
>>> rsync -av -f"+ */" -f"- *" /var/vmail/ /home/vmail/
>>> rm /home/vmail/*/*/Maildir -rf
>>> for i in $(doveadm user \*); do u=$(echo $i | cut -d@ -f1); d=$(echo $i
>>> |cut -d@ -f2); dsync -v -u $i mirror mdbox:/home/vmail/$d/$u/mdbox;
>>> done
>>>
>>> Then I changed the mail_location to mdbox:/home/vmail/%d/%n/mdbox and
>>> did the following commands:
>>>
>>> service dovecot restart
>>> for i in $(doveadm user \*); do u=$(echo $i | cut -d@ -f1); d=$(echo $i
>>> |cut -d@ -f2); dsync -v -u $i mirror maildir:/var/vmail/$d/$u/Mail;
>>> done
>>> doveadm index -A all INBOX
>>> for i in $(doveadm user \*); do doveadm -Dv fts rescan -u $i;done
>>>
>>> unfortunately I'm getting the following two kinds of error messages for
>>> all mail boxes in my mail.log:
>>>
>>> Error: Corrupted index cache file
>>> /home/vmail/%domain/%user/mdbox/mailboxes/%maildir/dbox-Mails/dovecot.index.cache:
>>>
>>> Broken virtual size for mail UID 2564
>>>
>>> and:
>>>
>>> Error: read(/home/vmail/%domain/%user/mdbox/storage/m.108
>>> ): FETCH BODY[] for mailbox %maildir UID 2564 got too little data: 2417
>>> vs 6319
>>>
>>> please let me know if you have any suggestions for fixing this issue or
>>> if you need more information.
>>>
>>> kind regards, Tim
>
More information about the dovecot
mailing list