#564633 dovecot bug: Next message unexpectedly corrupted in mbox file

Package:
dovecot-imapd
Source:
dovecot
Description:
secure POP3/IMAP server - IMAP daemon
Submitter:
Justin Piszcz
Date:
2010-09-19 19:27:07 UTC
Severity:
normal
#564633#5
Date:
2010-01-10 20:16:09 UTC
From:
To:
Problem: See below.

..

Looking further I found this (which is when the problem began to appear in
the logs):

First time:
Jan  2 09:33:25 l1 dovecot: IMAP(user): Next message unexpectedly
corrupted in mbox file /home/user/Mailbox at 10599

Due to:

2010-01-02 05:00:29 configure dovecot-common 1:1.2.9-1 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status unpacked dovecot-common 1:1.2.9-1
2010-01-02 05:00:29 status half-configured dovecot-common 1:1.2.9-1
2010-01-02 05:00:31 status installed dovecot-common 1:1.2.9-1

2010-01-02 05:00:38 configure dovecot-imapd 1:1.2.9-1 1:1.2.9-1
2010-01-02 05:00:38 status unpacked dovecot-imapd 1:1.2.9-1
2010-01-02 05:00:38 status half-configured dovecot-imapd 1:1.2.9-1
2010-01-02 05:00:38 status installed dovecot-imapd 1:1.2.9-1

During an apt-get dist-upgrade..

Did dovecot 1.2.9 include this patch:
http://www.dovecot.org/list/dovecot-cvs/2009-December/015177.html

So now one sees the message, whereas before, no message was shown?
Nothing to be concerned about?

Justin.
t> I am seeing this on one of my servers:

#564633#10
Date:
2010-02-05 18:14:32 UTC
From:
To:
Justin Piszcz ha scritto:

Hi Justin,
Does the problem persist?
Does it cause glitches for the user?
Does it cause some corruptions or it's just a line in your log?
Is it reproducible?

I think it is some kind of corruption of the mailbox, but I found weird
it persists after the deletion of all email. May be you should expunge
deleted messages from the mailbox.

Kind regards,
Marco

#564633#15
Date:
2010-02-05 18:17:27 UTC
From:
To:
Hi,

I believe it is due to a lock/race condition with the Mailbox format, when you
have alpine open (accessing the Mailbox) and an external client, e.g. Outlook
or thunderbird.  Yes, when both clients access the mailbox it usually locks
up Outlook or alpine..  I suppose the maildir format may be the better option
but alpine has issue with that format.?

Justin.

#564633#20
Date:
2010-02-08 09:25:52 UTC
From:
To:
via Dovecot? Then you have to stop doing so and configure Pine to use
IMAP, too, or configure Dovecot to use the same locking mechanism, which
probably does not work with shared filesystems.

See: http://wiki.dovecot.org/MboxLocking

Alpine does not support local access to Maildir.

If you prefer local access to the mailbox, switch to mutt, which supports
Maildir. There is no locking problem with Maildir.

Regards,

#564633#25
Date:
2010-09-19 19:24:53 UTC
From:
To:
Same errors here. I am using Alpine and Icedove as mail client.
I have not noticed any actual "corruption". Icedove is running
all the time in the machine, seems these errors appear when I have used
Alpine to read my home mail remotely like from work.

Sep 14 17:19:54 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /home/laardi/mail/Koulu at 63368
Sep 14 17:19:54 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 7120799
Sep 14 18:02:12 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 5155056
Sep 14 18:11:32 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 5150779
Sep 14 18:12:53 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /home/laardi/mail/Kuitit at 43600375
Sep 14 18:56:20 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 5147340
Sep 14 21:02:16 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /home/laardi/mail/Trash at 26581265
Sep 16 13:35:54 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 6637069
Sep 16 14:02:08 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /home/laardi/mail/Trash at 26922986
Sep 17 01:11:05 lrdlnx dovecot: IMAP(laardi): Next message unexpectedly
corrupted in mbox file /var/mail/laardi at 6754872