Hello,
i'm using dict quota stored in mysql (/etc/dovecot/dovecot-dict-quota.conf):
connect = host=localhost dbname=vmail user=dovecot password
# CREATE TABLE quota (
# username varchar(100) not null,
# bytes bigint not null default 0,
# messages integer not null default 0,
# primary key (username)
# );
map {
pattern = priv/quota/storage
table = quota
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota
username_field = username
value_field = messages
}
-----------------------
from dovecot.conf (quota rule is get from passdb sql + prefetch):
dict {
quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
quota = dict:user::proxy::quotadict
quota_warning = storage=99%% /etc/dovecot/quota-warning.sh 99
quota_warning2 = storage=95%% /etc/dovecot/quota-warning.sh 95
quota_warning3 = storage=80%% /etc/dovecot/quota-warning.sh 80
But how to add another quota for Trash folder ?
It seeems that will be needed another table something like quota2 but
how to map it using map {}
--
Lampa