[Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'

Timo Sirainen tss at iki.fi
Wed Jun 26 18:59:26 EEST 2013


It crashes one specific IMAP/POP3 session, so others are unaffected. The potential problems:

 * It might cause the user's mbox to become crashing constantly. so first crash -> client reconnects -> client attempts the same operation -> crash again. Then again, this might not happen, it depends.

 * The mbox file would probably become slightly more corrupted than normally, because it doesn't finish moving data around. No data should get actually lost, but some parts could become duplicated (e.g. some headers or even mails, possibly causing UID renumbering = redownloading).

So not ideal in production, but shouldn't be too bad either, especially if you just wait for the first crash and then immediately switch to the old unpatched version.

On 26.6.2013, at 10.21, Dimos Alevizos <dalevizo at otenet.gr> wrote:

> Hi,
> 
> I haven't had the time to compile it yet, but a question just occurred.
> Given that it's so rare and we can't reproduce it on a dev server, how safe is this to use on a production server ?
> When you say "crash" you mean the whole dovecot server or that specific client's child ?
> 
> D.
> 
> -------- Original Message --------
> Subject: Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'
> From: dalevizo <dalevizo at otenet.gr>
> To: Timo Sirainen <tss at iki.fi>
> CC: dovecot at dovecot.org, Dimitris Paouris <dpaou at otenet.gr>
> Date: 24/06/2013 01:41 μμ
> 
>> Thanx I'll try the patch as soon as possible and I'll let you know.
>> It is indeed very rare. We're only seeing 4-5 corruptions in about 13
>> million logins per day.
>> I've been trying to convince our design team that we should move to
>> maildir, but the truth is that it's quite a change, and we're way too
>> busy to deal with everything else AND a migration from mbox to maildir.
>> 
>> D.
>> 
>> On Mon 24/06/2013 13:16, Timo Sirainen wrote:
>>> On 19.6.2013, at 16.00, Dimos Alevizos <dalevizo at otenet.gr> wrote:
>>> 
>>>> we're having some problems with our dovecot setup.
>>>> I've seen similar problems in the mailing list some years ago but alas wasn't able to find a solution.
>>>> 
>>>> Our setup is as follows :
>>>> An MX farm (postfix) sends mails via LMTP to a director farm (dovecot 2.1.12) which proxies pop3/imap/lmtp traffic to a dovecot farm (dovecot 2.1.16).
>>>> All mailboxes and indexes are on NFS and all servers are Centos.
>>>> 
>>>> The problem is that at times we see mailboxes (all of them are in mbox format) beginning with FFrom or FrFrom and of course dovecot says it's not a valid mbox file.
>>> 
>>> This is quite an old bug, but it happens rarely enough that I haven't been able to reproduce and fix it. Actually people hadn't complained about it for a long time now, so I had assumed it had somehow gotten fixed already.
>>> 
>>> With the attached debug patch it should crash instead of (completely) corrupting the mbox file. Debugging the resulting core file with gdb could be useful in figuring this out.
>>> 
>>> Although I wouldn't recommend mbox format for any big installation anyway..
>>> 
>> 
>> 
>>> 
>>> 
>> 
> 



More information about the dovecot mailing list