[Dovecot] [DOVECOT] quota_warning threshold from ldap

Timo Sirainen tss at iki.fi
Mon Sep 14 03:38:46 EEST 2009


On Thu, 2009-09-10 at 17:42 +0200, Emmanuel Gonzalez wrote:
> quota_warning  = storage=95%% /usr/local/bin/quota-warning.sh 95
> quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
> quota_warning3 = storage=70%% /usr/local/bin/quota-warning.sh 70
> 
> reading the values 95, 80 and 70 from ldap.
> 
> I tried to do this in my dovecot-ldap.conf
> 
> user_attrs = 
> mailMessageStore=mail=maildir:/maildirs/%$,maildirquota=quota_rule=*:backend, 
> *maildirwarn1*=quota_warning = storage=*maildirwarn1%% 
> */usr/local/bin/quota-warning.sh *maildirwarn1%%*

What are those extra "*" characters? Anyway I think something like this
should work:

user_attrs = mailMessageStore=mail=maildir:/maildirs/%$, \
  maildirquota=quota_rule=*:backend, \
  maildirwarn1=quota_warning=storage=%$%% /usr/local/bin/quota-warning.sh %$

The point being that %$ is expanded to maildirwarn1's value.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090913/9b1d5600/attachment.bin 


More information about the dovecot mailing list