[Dovecot] per user quota with lda
Hi List Anybody could tell me how to set per-user quota with dovecot-lda? Thank in advance.
Yes,
check this http://wiki.dovecot.org/moin.cgi/LDA
Sebastjan
On 22/08/05, Renzetti Federico f.renzetti@fabaris.it wrote:
Hi List Anybody could tell me how to set per-user quota with dovecot-lda? Thank in advance.
Ok. I use postfix with virtual_transport on dovecot Now I need per user quota and I don't understand this:
/"If you need per-user quota limits you'll need SQL or LDAP for user database, if you are happy with same quota limit for all users you can go with static userdb." / I have my dovecot.conf so:
/ passdb ldap { # Path for LDAP configuration file, see doc/dovecot-ldap.conf for example args = /usr/local/etc/dovecot-ldap.conf } userdb ldap { # Path for LDAP configuration file, see doc/dovecot-ldap.conf for example args = /usr/local/etc/dovecot-ldap.conf } /
Sebastjan Trepca wrote:
Yes,
check this http://wiki.dovecot.org/moin.cgi/LDA
On Mon, 2005-08-22 at 15:38 +0200, Renzetti Federico wrote:
Now I need per user quota and I don't understand this:
have you seen http://wiki.dovecot.org/moin.cgi/LDA#head-de783575628d0e78c0e594931f173493fd...
johannes
Ok again:
This is static:
# dovecot.conf
auth default { .. userdb static { args = uid=5000 gid=5000 home=/var/vmail/%d/%n quota=/var/vmail/%d/%n/mail:storage=10485760 } .. }
This is per-user: If you need per-user quota limits you'll need SQL or LDAP for user database, if you are happy with same quota limit for all users you can go with static userdb.
I have LDAP for user database, I don't understand (sorry) what are attributes to set or config file to change....
Johannes Berg wrote:
On Mon, 2005-08-22 at 15:38 +0200, Renzetti Federico wrote:
Now I need per user quota and I don't understand this:
have you seen http://wiki.dovecot.org/moin.cgi/LDA#head-de783575628d0e78c0e594931f173493fd...
johannes
-- Renzetti Federico
System/Network Administrator RedHat Certified Engineer
Fabaris S.r.l. Tel. +39 0765 22181 - Fax +39 0765 410100 Via G. Mameli, 90 02047 Poggio Mirteto (RI) Viale dell'Università , 25 00185 Roma (RM)
www.fabaris.it
On Mon, 2005-08-22 at 15:53 +0200, Renzetti Federico wrote:
This is per-user: If you need per-user quota limits you'll need SQL or LDAP for user database, if you are happy with same quota limit for all users you can go with static userdb.
I have LDAP for user database, I don't understand (sorry) what are attributes to set or config file to change....
Well, I'd say that just like you somehow return a home= attribute you'll have to return a quote= attribute.
johannes
On Mon, 2005-08-22 at 15:53 +0200, Renzetti Federico wrote:
This is per-user: If you need per-user quota limits you'll need SQL or LDAP for user database, if you are happy with same quota limit for all users you can go with static userdb.
I have LDAP for user database, I don't understand (sorry) what are attributes to set or config file to change....
I updated the wiki:
# quotaStorage must be in the format mentioned above # For example: /var/mail/user:storage=10485760 user_attrs = uid,homeDirectory,,,uidNumber,gidNumber,quotaStorage=quota
I think that should work, but haven't really tried myself.
participants (4)
-
Johannes Berg
-
Renzetti Federico
-
Sebastjan Trepca
-
Timo Sirainen