Helge Milde
2011-Sep-20 13:58 UTC
[Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)
Hi! I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib to try to make Dovecot gzip incomming mails, but it doesn't seem to work. I've made pop/imap read gzipped files, and this seems to work perfectly, but LDA is still saving incomming mails in plain text. There's not too much information out there regarding the zlib module, so I'm not sure where to start debugging the problem, and was hoping someone could point me in the right direction. The only mention of zlib when LDA is delivering a file: Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded: /usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so The most relevant lines from dovecot.conf: mail_debug = yes protocols = imap pop3 imaps pop3s mail_location = maildir:~/Maildir mail_privileged_group = mail max_mail_processes = 1024 mail_process_size = 512 protocol imap { mail_max_userip_connections = 50 mail_plugins = fts fts_squat zlib } protocol pop3 { pop3_uidl_format = %08Xu%08Xv mail_max_userip_connections = 50 mail_plugins = zlib } protocol lda { postmaster_address = postmaster at monsternett.no mail_plugins = sieve zlib mail_plugin_dir = /usr/lib/dovecot/modules/lda sieve_global_dir = /etc/dovecot/sieve/ sieve_global_path = /etc/dovecot/sieve/default.sieve } plugin { zlib_save_level = 6 zlib_save = gz fts = squat sieve = ~/dovecot.sieve sieve_dir = ~/ } -- Helge Milde, 69701808 www.monsternett.no
Patrick Domack
2011-Sep-20 15:54 UTC
[Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)
I thinking your mail_plugin_dir is not needed, I don't have it configured, and that path doesn't even exist on my system, maybe hangover from 1.x config? Quoting Helge Milde <helge at monsternett.no>:> Hi! > I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib to > try to make Dovecot gzip incomming mails, but it doesn't seem to work. > I've made pop/imap read gzipped files, and this seems to work > perfectly, but LDA is still saving incomming mails in plain text. > There's not too much information out there regarding the zlib > module, so I'm not sure where to start debugging the problem, and > was hoping someone could point me in the right direction. > > The only mention of zlib when LDA is delivering a file: > Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded: > /usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so The most > relevant lines from dovecot.conf: > mail_debug = yes > protocols = imap pop3 imaps pop3s > mail_location = maildir:~/Maildir > mail_privileged_group = mail > max_mail_processes = 1024 > mail_process_size = 512 > > protocol imap { > mail_max_userip_connections = 50 > mail_plugins = fts fts_squat zlib > } > > protocol pop3 { > pop3_uidl_format = %08Xu%08Xv > mail_max_userip_connections = 50 > mail_plugins = zlib > } > > protocol lda { > postmaster_address = postmaster at monsternett.no > mail_plugins = sieve zlib > mail_plugin_dir = /usr/lib/dovecot/modules/lda > sieve_global_dir = /etc/dovecot/sieve/ > sieve_global_path = /etc/dovecot/sieve/default.sieve > } > > plugin { > zlib_save_level = 6 > zlib_save = gz > fts = squat > sieve = ~/dovecot.sieve > sieve_dir = ~/ > } > > -- > Helge Milde, 69701808 > www.monsternett.no
Timo Sirainen
2011-Sep-22 13:45 UTC
[Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)
On 20.9.2011, at 16.58, Helge Milde wrote:> plugin { > zlib_save_level = 6 > zlib_save = gzThese are enough. You don't mention your Dovecot version. My guess is that your Dovecot version is too old and doesn't support saving mails with zlib.
Possibly Parallel Threads
- Renaming maildir files, UIDs and mail clients
- Generating .R and .Rd files with Sweave/noweb?
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- disable zlib via config to allow per mailbox compression level