Multiple quota rules from LDAP userdb?
Hello,
I'm just asking myself, how I get multiple quota rules into the LDAP userdb.
Dovecot is 2.2.9
userdb_attrs = … fooQuotaRule=quota_rule=%$
which allows me to have an user db entry as
fooQuotaRule: *:storage=1000:messages=50
fooQuotaRule: Trash:storage=500
But, if I'd like to have another quota rule for a submailbox of that user?
doveadm user returns the first field only
field value
uid 500
gid 500
home /volumes/dovecot/home/4b/heiko
mail maildir:~:INBOX=/volumes/dovecot/inbox/4b/heiko:INDEX=/volumes/dovecot/cache/4b/heiko
quota_rule *:storage=1000:messages=50
Inventing additional LDAP attributs fooQuotaRule2, ... doesn't scale well.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
-- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 12 Feb 2016, Heiko Schlittermann wrote:
But, if I'd like to have another quota rule for a submailbox of that user?
Inventing additional LDAP attributs fooQuotaRule2, ... doesn't scale well.
But that's how the config file work as well. Would you suggest the {#} approach OpenLDAP uses for its configuation?
However, there is the generic User Extra Field:
userdb_import
http://wiki2.dovecot.org/UserDatabase/ExtraFields?highlight=%28userdb_impor%...
That's way you can add several settings in one LDAP attribute.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVr2e/Hz1H7kL/d9rAQJymgf+NFQz+VtBvloFkfMBxCAp0p4UEDPaBa2N SEHfc+QiGzQnmppVC99W6ZZD1+mP6rMAv6JlXHqPMSzxYnMSnlvL/hhcV/lm5ECm O3DwQ4AEtywMorf08l93lJWi/aRnPI4KYlrFaQrauxeN24FHJNpdr9XnIyOJFqYM hTHWrgfAaU5iDAfu+bxS38bdoN00f4XnNJbaFQp2Su26GrIzKO+1L287+ZyG94Oc a3+rSScG5EQndN1gaBxZBOIvCF5eh+qYAEl82xIJ00q680ooaWW2xpJ6TiNTTDsG dkfwuxRK35wvE8g8lCrIBPhr1tnGWKZEbi/L6HrGREWXUOHUe13KEg== =Wosc -----END PGP SIGNATURE-----
Steffen Kaiser skdovecot@smail.inf.fh-brs.de (Fr 12 Feb 2016 09:59:40 CET):
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 12 Feb 2016, Heiko Schlittermann wrote:
But, if I'd like to have another quota rule for a submailbox of that user?
Inventing additional LDAP attributs fooQuotaRule2, ... doesn't scale well.
But that's how the config file work as well. Would you suggest the {#} approach OpenLDAP uses for its configuation?
Yes. It was the approach I tested, but it didn't work. Even w/o the {#}, dovecot seems to ignore all but the first attribute.
The {#} would be useful if Dovecot reads all attributes AND if the order of the attribute's values matters.
However, there is the generic User Extra Field: userdb_import
Hm, thank you. I can try this as a work around.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
-- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
participants (2)
-
Heiko Schlittermann
-
Steffen Kaiser