[Dovecot] Dovecot 1.2, quota and LDAP
Hi!
I'm in the progress of upgrading from Dovecot 1.0.15 to 1.2.1. This has gone pretty smooth. I just have one question to check wether I have understood the documentation right.
I have both system users and virtual users. That's easy to do when using LDAP for userdb. The system users use filesystems quota, the virtual users use maildir quota. I achieved this using the following in LDAP: "fs:" (for system users, obviously) and "maildir:storage=2048000" for virtual users. This has worked fine for years.
But after reading the documentation, it seems I now have to use two ldap-fields to achieve the same thing? One "quota" and one "quota_rule"? Is this correct? It's of course not impossible, but it's kinda a hassle to hand craft a new schema, deploy, and update all the user's entries.
If my users didn't have two kind of quotas, it would be easy, but with two quota methods, I don't see any other way than to use two ldap-fields. Which I hope I don't have to :)
Thanks.
Regards, Stian
On Sat, 2009-07-25 at 23:45 +0200, Stian Jordet wrote:
But after reading the documentation, it seems I now have to use two ldap-fields to achieve the same thing? One "quota" and one "quota_rule"? Is this correct? It's of course not impossible, but it's kinda a hassle to hand craft a new schema, deploy, and update all the user's entries.
If my users didn't have two kind of quotas, it would be easy, but with two quota methods, I don't see any other way than to use two ldap-fields. Which I hope I don't have to :)
Well.. If your virtual users don't all have the same quota then yes, you'll have to use two fields. Otherwise you could kludge around it :)
plugin { quota_rule = *:storage=2G }
Then have LDAP return quota=fs:noenforcing or quota=maildir.
Or alternatively if your system users are also in /etc/passwd, or you're using nss_ldap or something, you could do something like:
userdb passwd { args = quota=fs:noenforcing } userdb ldap { args = .. } plugin { quota = maildir }
And return quota_rule from ldap.
participants (2)
-
Stian Jordet
-
Timo Sirainen