Dovecot quota via custom column
8 Nov
2014
8 Nov
'14
6:45 p.m.
Hello, we have multiple domains connected to single user account and we want to have quota counted via this column - called account_id. Users are stored in mysql database.
iterate_query = SELECT email AS user FROM mailboxes user_query=SELECT email, 501 AS uid, 501 AS gid, CONCAT('*:storage=',quota,'M') AS quota_rule FROM mailboxes AS m WHERE email='%u' password_query=SELECT email AS user, pw_hash AS password, CONCAT('*:storage=',quota,'M') AS userdb_quota_rule FROM mailboxes AS e WHERE email='%u'
We have quota stored in dovecot dictionary and as usable variables we found only - http://wiki2.dovecot.org/Variables.
Is there any way to do use account_id as quota username?
Thanks, Filip Bartmann
3670
Age (days ago)
3670
Last active (days ago)
0 comments
1 participants
participants (1)
-
Filip Bartmann