[Dovecot] signal 11 crash, sometimes, during mbox bz2 decompression

Mike Brown mike at skew.org
Mon Sep 12 11:55:22 EEST 2011


On 8/23/2011 11:47 AM, Timo Sirainen wrote:
> On Tue, 2011-08-16 at 05:00 -0600, Mike Brown wrote:
>
>> I'm running dovecot 1.2.16 from the ports collection on FreeBSD 8.1-STABLE,
>> amd64.
> ..

Thanks for the reply. Since you recommended updating to dovecot2, I'm 
now testing dovecot 2.0.14 from the ports collection on a different 
machine. Hopefully I got the configuration right.

# dovecot -n
# 2.0.14: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 8.2-RELEASE-p2 i386
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_plugins = " zlib"
passdb {
   args = %s
   driver = pam
}
plugin {
   zlib_save = bz2
   zlib_save_level = 9
}
protocols = imap
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
   driver = passwd
}
protocol imap {
   mail_plugins = " zlib imap_zlib"
}

On this system, I have the same setup with bz2-compressed mbox files. 
They're still inaccessible from Thunderbird, but dovecot isn't crashing 
with signal 11 anymore. Instead, the maillog says this for every 
compressed box it tries to check:

Sep 12 02:37:14 chilled dovecot: imap(mike): Error: 
read(/home/mike/mail/old/sent-1999-07.bz2) failed: Invalid argument (uid=2)
Sep 12 02:37:14 chilled dovecot: imap(mike): Disconnected: Internal 
error occurred. Refer to server log for more information. [2011-09-12 
02:37:14] bytes=5492/2664368
Sep 12 02:37:14 chilled dovecot: imap(mike): Error: Next message 
unexpectedly lost from mbox file /home/mike/mail/old/sent-1999-07.bz2 at 
536 (cached)

Did I misconfigure something?



More information about the dovecot mailing list