[Dovecot] disable zlib via config to allow per mailbox compression level
Kui Zhang
kuizhang at gmail.com
Sun Oct 10 21:26:28 EEST 2010
Thank you for the reply.
Sorry, my post should have been more clear... I got the dynamic
compression part. I dont know how to turn it off, for accounts that
does not need/want it.
I tried setting the compression level to 0, dovecot does not appear to like it.
Error: zlib_save_level: Level must be between 1..9
KuiZ
On Sat, Oct 9, 2010 at 2:56 PM, Jerrale G
<jerralegayle at sheltoncomputers.com> wrote:
> On 10/9/2010 12:45 AM, Kui Zhang wrote:
>>
>> Hello
>>
>> Dovecot v2.0.5
>>
>> zlib_save_level = 6 # 1..9
>> zlib_save = gz # or bz2
>>
>> Is there a config option to disable zlib, even if above config are in
>> place? If so please provide an example.
>>
>> If no, would it be possible to add one? Like if zlib_save_level = 0
>> disable zlib. So one can configure per mailbox compression level via
>> sql database.
>>
>> KuiZ
>>
>> Thanks
>
> --
> Yes, with all dovecot "Plugin" parameters, like zlib_save_level, they can be
> dynamically set by your user_query for instance, on mysql, "SELECT
> CONCAT('/home/mail', mailboxes.domain, '/', mailboxes.username) AS home,
> mailboxes.compression AS zlib_save_level, ........ WHERE...."
>
> Mailboxes.compression would be the table.field where the compression level
> for the user would be set. I know a value of "0" for zlib_save_level would
> be no compression.
>
> Hope this helps! Remember, any setting that goes under "Plugin{}" can be
> dynamically set in your userdb_query for LDAP, Mysql, or w/e storage plugin
> you use. I have sieve_dir and quota_rule2 set by my userdb_query so that
> some people can have quotas and others don't have an limit.
>
> Jerrale G.
> SC Senior Admin
>
More information about the dovecot
mailing list