Bug 1906324

Summary: dovecot crashes accessing compressed mbox
Product: Red Hat Enterprise Linux 8 Reporter: Oliver Paukstadt <pstadt>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED WONTFIX QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3   
Target Milestone: rc   
Target Release: 8.0   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-10 07:27:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oliver Paukstadt 2020-12-10 09:32:57 UTC
Description of problem:
dovecot crashes while reading compressed mbox.

Version-Release number of selected component (if applicable):
dovecot-2.3.8-4.el8.x86_64

How reproducible:
Create a mbox file and compress it with xz
Enable compressed mbox feature in dovecot:
https://doc.dovecot.org/configuration_manual/zlib_plugin/

Actual results:
cannot access compressed mailboxes

Expected results:
access compress mailboxes (readonly)

Additional info:
looks like this is fixed upstream:
https://github.com/dovecot/core/commit/9fd62ffaa5ac4a8ec5dee08fdd4bdcc65d582448

Comment 1 Michal Hlavinka 2021-03-24 11:33:57 UTC
Could you provide more information how to reproduce this?

NOTE: In latest dovecot release, they decided to drop XZ support. ATM for writing, in future releases for reading too.
https://github.com/dovecot/core/blob/2.3.14/NEWS

Comment 2 Oliver Paukstadt 2021-03-24 12:17:49 UTC
The problem is not related to xz, I only mentioned it as an example.
The bug occures with bzip2 and gz as well.

How to reproduce:
in conf.d/10-mail.conf add
mail_plugins = $mail_plugins zlib

Then activate an mbox archive space:
namespace archive {
  inbox = no
  list = children
  location = mbox:~/Archive:LAYOUT=fs
  prefix = "Archive/"
  separator = /
  subscriptions = yes
  type = private
}

Now create a mbox file in ~/Archive and compress it with gzip.
Daemon dies when accessing the compressed mbox.

NOTE to XZ deprecation:
This is only a XZ problem, other compression libraries are still supported.
https://github.com/dovecot/core/commit/6e5ae5ef0f0f31acd7bde0db53980a708c81eced

Comment 4 RHEL Program Management 2022-06-10 07:27:23 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.