diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-06-27 06:15:20 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:55 +0200 |
commit | 52cbbe8ec23eba6f0fd95a20941fceef4518eb6a (patch) | |
tree | bbd7b31c6934cea8c2f7a43143850a455712a577 /roles | |
parent | 8d4605d6a5f39af107b5a832609944ba0aba6c5b (diff) |
Compress messages on the IMAP backend.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf | 2 | ||||
-rw-r--r-- | roles/IMAP/files/etc/dovecot/conf.d/90-plugin.conf | 4 |
2 files changed, 5 insertions, 1 deletions
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 } |