[Dovecot] Corrupted mailboxes

Timo Sirainen tss at iki.fi
Sun Jan 30 09:44:10 EET 2005


On 27.1.2005, at 18:39, Vincent Jaussaud wrote:

> Now, we are seeing strange errors in our dovecot logfiles. It seems to
> happen randomely, but always on the same mailboxes.
>
> The following error is logged:
>
> pop3(username): Jan 27 17:26:46 Error: Error syncing mbox
> file /var/spool/mail/szameitatd: LF not found where expected
..
> We tried to remove completely the mailbox file, waiting for procmail to
> create a new, but after a few minutes, the problem happens again. We
> cannot reproduce the bug with a particular mail; it seems the problem
> come from nowhere. Verbosing procmail didn't helped either.

Is procmail using same file locking mechanisms as Dovecot? procmail -v 
and mbox_file_locks in dovecot.conf should show it.

> The only way to fix it when this happens, is to manually edit the file,
> and remove the first line feed at the very beginning of the mailbox
> file.

Is it always the first LF?

Anyway, 0.99.x's mbox support isn't very good. If you can't get it to 
work I'd suggest using 1.0-test61.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050130/6f9c158e/attachment-0001.bin>


More information about the dovecot mailing list