Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1176214

Summary: RFE: Compile dovecot zlib plugin with xz support
Product: Red Hat Enterprise Linux 7 Reporter: Orion Poplawski <orion>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.0CC: bugzilla, fsumsal, jscotka, ovasik
Target Milestone: rcKeywords: EasyFix, FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dovecot-2.2.10-7.el7 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 07:22:09 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 Orion Poplawski 2014-12-19 17:21:24 UTC
Description of problem:

Trying to enable xz compression in dovecot:

Error: zlib_save: Support not compiled in for handler: xz

Version-Release number of selected component (if applicable):
dovecot-2.2.10-4.el7_0.1.x86_64

Updating to 2.2.11 would allow the use of lz4 as well.

Comment 4 Michal Hlavinka 2016-06-09 11:40:11 UTC
*** Bug 1208937 has been marked as a duplicate of this bug. ***

Comment 6 Frantisek Sumsal 2016-09-26 08:14:01 UTC
Verified with dovecot-2.2.10-7.el7.

Old package:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: BZ#1176214 zlib plugin xz support
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   INFO   ] :: using '/var/tmp/beakerlib-3729001/backup' as backup destination
:: [   PASS   ] :: Command '> /var/log/maillog' (Expected 0, got 0)
:: [   PASS   ] :: Command 'echo ' mail_plugins = $mail_plugins zlib  plugin {     zlib_save_level = 6     zlib_save = xz }' >> /etc/dovecot/conf.d/10-mail.conf' (Expected 0, got 0)
:: [   LOG    ] :: rlServiceStart: Service dovecot started successfully
:: [   PASS   ] :: Command 'rlServiceStart dovecot' (Expected 0, got 0)
:: [   PASS   ] :: Command 'useradd dovecot1176214' (Expected 0, got 0)
:: [   PASS   ] :: Command 'passwd dovecot1176214 --stdin <<< 'dovecot'' (Expected 0, got 0)
:: [   PASS   ] :: Command 'timeout 10s openssl s_client -connect localhost:imaps -ign_eof <<< '1 LOGIN dovecot1176214 dovecot'' (Expected 0-255, got 0)
:: [   FAIL   ] :: File '/var/log/maillog' should not contain 'zlib_save.*not compiled.*xz' 
:: [   PASS   ] :: Command 'userdel -f -r dovecot1176214' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 7 good, 1 bad
:: [   FAIL   ] :: RESULT: BZ#1176214 zlib plugin xz support

New package:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: BZ#1176214 zlib plugin xz support
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   INFO   ] :: using '/var/tmp/beakerlib-24266003/backup' as backup destination
:: [   PASS   ] :: Command '> /var/log/maillog' (Expected 0, got 0)
:: [   PASS   ] :: Command 'echo ' mail_plugins = $mail_plugins zlib  plugin {     zlib_save_level = 6     zlib_save = xz }' >> /etc/dovecot/conf.d/10-mail.conf' (Expected 0, got 0)
:: [   LOG    ] :: rlServiceStart: Service dovecot already running, stopping first.
:: [   LOG    ] :: rlServiceStart: Service dovecot started successfully
:: [   PASS   ] :: Command 'rlServiceStart dovecot' (Expected 0, got 0)
:: [   PASS   ] :: Command 'useradd dovecot1176214' (Expected 0, got 0)
:: [   PASS   ] :: Command 'passwd dovecot1176214 --stdin <<< 'dovecot'' (Expected 0, got 0)
:: [   PASS   ] :: Command 'timeout 10s openssl s_client -connect localhost:imaps -ign_eof <<< '1 LOGIN dovecot1176214 dovecot'' (Expected 0-255, got 0)
:: [   PASS   ] :: File '/var/log/maillog' should not contain 'zlib_save.*not compiled.*xz' 
:: [   PASS   ] :: Command 'userdel -f -r dovecot1176214' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 8 good, 0 bad
:: [   PASS   ] :: RESULT: BZ#1176214 zlib plugin xz support

Comment 8 errata-xmlrpc 2016-11-04 07:22:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2477.html