From 52cbbe8ec23eba6f0fd95a20941fceef4518eb6a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 27 Jun 2014 06:15:20 +0200 Subject: Compress messages on the IMAP backend. --- roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf | 2 +- roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'roles/IMAP/files') diff --git a/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf b/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf index 9c24645..d91a166 100644 --- a/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf +++ b/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf @@ -210,7 +210,7 @@ mail_gid = vmail # Space separated list of plugins to load for all services. Plugins specific to # IMAP, LDA, etc. are added to this list in their own .conf files. -mail_plugins = virtual +mail_plugins = virtual zlib ## ## Mailbox handling optimizations diff --git a/roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf b/roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf index aed06c0..b205c20 100644 --- a/roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf +++ b/roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf @@ -18,4 +18,8 @@ plugin { # These two tokens MUST be present in the template! antispam_spool2dir_spam = /home/mail/spamspool/%u-%%10lu-%%06lu.spam antispam_spool2dir_notspam = /home/mail/spamspool/%u-%%10lu-%%06lu.ham + + + zlib_save = gz + zlib_save_level = 6 } -- cgit v1.2.3