[Dovecot] Dovecot 2.0 zlib and dbox
Hello,
As per wiki instructions, I tried to enable zlib compression of mails by adding/modifying the following snippets of configuration: plugin { zlib_save_level = 6 zlib_save = gz }
and
protocol imap { mail_plugins = fts fts_squat autocreate zlib imap_zlib imap_id_log = * }
I am using dbox format and delivering the mails via dovecot deliver, however mails don't seem compressed at all. It is not very clear if compression is available for something else than maildir and mbox, so is compression available with dbox format?
I am using dovecot-2-0-aefa279e2c70 from hg.
Best Regards
On 03/30/2010 12:01 AM Renaud Allard wrote:
Hello,
As per wiki instructions, I tried to enable zlib compression of mails by adding/modifying the following snippets of configuration: plugin { zlib_save_level = 6 Default value ^^^^ zlib_save = gz }
and
protocol imap { mail_plugins = fts fts_squat autocreate zlib imap_zlib imap_id_log = * }
I am using dbox format and delivering the mails via dovecot deliver, however mails don't seem compressed at all. It is not very clear if compression is available for something else than maildir and mbox, so is compression available with dbox format?
I am using dovecot-2-0-aefa279e2c70 from hg.
Yes, the zlib plugin works also with dbox storage. I've delivered five mails, zlib plugin enabled, to user jane and the same 5 mails w/o zlib plugin to user james. # du -hs /tmp/ja* 92K /tmp/james 68K /tmp/jane
# ls -l /tmp/ja*/dbox/mailboxes/INBOX/dbox-Mails/u.* | awk '{print $5" "$8}' 11028 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.1 8326 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.2 4404 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.3 4744 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.4 4430 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.5 6465 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.1 3813 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.2 1964 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.3 2137 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.4 2035 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.5
dovecot --version -> 2.0.beta4 (dbb05e38295a) protocol lda { mail_plugins = sieve zlib }
Regards, Pascal
The trapper recommends today: cafefeed.1008901@localdomain.org
On 30/03/2010 02:10, Pascal Volk wrote:
plugin { zlib_save_level = 6 Default value ^^^^
I prefer putting the default values in my config file, so I know I can tweak this parameter later if needed.
protocol lda { mail_plugins = sieve zlib }
Thanks, that part made the difference. I did not think of enabling zlib in the lda. This should have been somewhat obvious. Maybe that should go in the wiki because I feel I will not be alone.
On 30/03/2010 07:19, Renaud Allard wrote:
On 30/03/2010 02:10, Pascal Volk wrote:
plugin { zlib_save_level = 6 Default value ^^^^
On the same idea, is there a way to convert existing mails to compressed format and conversely (ie using dsync convert)? dbox mails should clearly be rewritten here, there is no easy way to convert with gzip.
participants (2)
-
Pascal Volk
-
Renaud Allard