I activate compression plugin by set following on Dovecot:
# /etc/dovecot/conf.d/20-imap.conf
(...)
protocol imap {
mail_plugins = $mail_plugins zlib
}
# /etc/dovecot/conf.d/90-plugin.conf
(...)
plugin {
zlib_save_level = 6
zlib_save = gz
}
Restarted but maildir file seem not compressed :
# file 1578950990.12797_0.host.xxx.xxx:2,
1578950990.12797_0.host.xxx.xxx:2,: SMTP mail, ASCII text, with very long lines
- there is an error to use gzip compression on email ?
- how to compress existing emails from server ?
Found : https://gist.github.com/cviebrock/e37f80a3223dfee19051c936c5ebe509
Server : dovecot 2.2.33.2 Ubuntu 18LTS
Thanks for help