15 Apr
2013
15 Apr
'13
9:18 p.m.
2013/4/15 Timo Sirainen <tss@iki.fi>
You can't have both static userdb and sql userdb. Create just one sql userdb, which returns something like:
select quota_rule, 123 uid, 123 as gid, '/home/%u' as home from quota_limits where username = '%u'
Ok. I didn't know it was possible to use variables into sql lookup results. Good to know :)
I don't really understand what sql dict vs maildir backend has to do with it. Both of them get the limits from the same quota_rule the same way (although with maildir if you don't return a quota_rule, it gets the limits from the maildirsize file, maybe you were seeing this).
I think you're right, the quota limit should come from the maildirsize file.
Thanks for your help !
Antoine