浏览代码

Enable maildir compression

Currently the plugin is loaded, but actual compression is not enabled.

https://wiki.dovecot.org/Plugins/Zlib
eXtremeSHOK 7 年之前
父节点
当前提交
1e40472017
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      data/conf/dovecot/dovecot.conf

+ 4 - 0
data/conf/dovecot/dovecot.conf

@@ -280,7 +280,11 @@ plugin {
   #mail_crypt_global_private_key = </mail_crypt/ecprivkey.pem
   #mail_crypt_global_private_key = </mail_crypt/ecprivkey.pem
   #mail_crypt_global_public_key = </mail_crypt/ecpubkey.pem
   #mail_crypt_global_public_key = </mail_crypt/ecpubkey.pem
   #mail_crypt_save_version = 2
   #mail_crypt_save_version = 2
+  # Enable compression while saving, lz4 Dovecot v2.2.11+
+  zlib_save_level = 9
+  zlib_save = lz4
 }
 }
+
 dict {
 dict {
   sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf
   sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf
   sieve_after = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-sieve_after.conf
   sieve_after = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-sieve_after.conf