[Dovecot] ldap , quotes, upgrade from dovecot-1.0.14 (q2.0)
razor razor
razor.ua at ua.fm
Fri Jun 19 11:14:10 EEST 2009
> On Thu, 2009-06-18 at 09:53 +0300, razor razor wrote:
> > plugin {
> > #########quota = maildir:storage=20240
> > quota = maildir:User quota
> > quota_rule = maildir:storage=500000K
>quota_rule = *:storage=500000k
>> user_attrs =
> >
> homeDirectory=home,uidNumber=uid,gidNumber=gid,boxQuota=quote_rule=maildir:storage=%$K,status
> > user_filter = (&(objectClass=posixAccount)(uid=%u))
>boxQuota=quota_rule=*:storage=%$k
>> pass_attrs =
> >
> uid=user,,,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid,boxQuota=userdb_quota=maildir:storage=%$K,userPassword=password,status=userdb_status
> > pass_filter = (&(objectClass=posixAccount)(uid=%u))
>boxQuota=userdb_quota_rule=*:storage=%$k
>And remove the extra commas after uid=user.
thanks for your answer! but it seems that it still doesnt take data from
ldap :(
now:
plugin {
quota_rule = *:storage=500000K
}
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,boxQuota=quote_rule=*:storage=%$k,status
pass_attrs =
uid=user,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid,boxQuota=userdb_quota=maildir:stora
ge=%$K,userPassword=password,status=userdb_status
=================
but in log :
> sudo /usr/local/etc/rc.d/dovecot start
Starting dovecot.
ILoading modules from directory: /usr/local/lib/dovecot/imap
IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so
IModule loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
IEffective uid=65534, gid=65534, home=/tmp
Iquota: No quota setting - plugin disabled <------------
dovecot: Jun 19 10:58:56 Info: IMAP(test): Loading modules from directory:
/usr/local/lib/dovecot/imap
dovecot: Jun 19 10:58:56 Info: IMAP(test): Module loaded:
/usr/local/lib/dovecot/imap/lib10_quota_plugin.so
dovecot: Jun 19 10:58:56 Info: IMAP(test): Module loaded:
/usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
dovecot: Jun 19 10:58:56 Info: IMAP(test): Effective uid=26, gid=6,
home=/nonexistent
dovecot: Jun 19 10:58:56 Info: IMAP(test): Quota root: name=storage=1000K
backend=maildir args= <------------
dovecot: Jun 19 10:58:56 Info: IMAP(test): Quota rule: root=storage=1000K
mailbox=* bytes=512000000 messages=0 <------------
dovecot: Jun 19 10:58:56 Info: IMAP(test): Namespace: type=private,
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscripti
ons=yes
dovecot: Jun 19 10:58:56 Info: IMAP(test): maildir:
data=/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir
dovecot: Jun 19 10:58:56 Info: IMAP(test): maildir++:
root=/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir, index=, control=,
inbox=/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir
dovecot: Jun 19 10:58:56 Info: IMAP(test): Disconnected: Logged out
bytes=131/492
deliver(test): Jun 19 10:53:46 Info: Loading modules from directory:
/usr/local/lib/dovecot/lda
deliver(test): Jun 19 10:53:46 Info: Module loaded:
/usr/local/lib/dovecot/lda/lib10_quota_plugin.so
deliver(test): Jun 19 10:53:46 Info: auth input: uid=26
deliver(test): Jun 19 10:53:46 Info: auth input: gid=6
deliver(test): Jun 19 10:53:46 Info: auth input: home=/nonexistent
deliver(test): Jun 19 10:53:46 Info: auth input: status=true
deliver(test): Jun 19 10:53:46 Info: auth input:
quote_rule=*:storage=1000k <------------
deliver(test): Jun 19 10:53:46 Info: Home dir not found: /nonexistent
deliver(test): Jun 19 10:53:46 Info: quota: No quota setting - plugin
disabled <------------
deliver(test): Jun 19 10:53:46 Info: Namespace: type=private, prefix=,
sep=, inbox=yes, hidden=no, list=yes, subscriptions=ye
s
deliver(test): Jun 19 10:53:46 Info: maildir:
data=/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir
deliver(test): Jun 19 10:53:46 Info: maildir++:
root=/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir, index=, control=,
inbox=
/data/vmail/data/XXXXXXXXXXXXXXXXXXXX/test/Maildir
deliver(test): Jun 19 10:53:46 Info: msgid=<op.uvrhtvdgwnsbdb at lg54>: saved
mail to INBOX
and in maildirsize - 512000000S but not 1000K :(
and when i login to box via squirelmail with plugin quota it show "1.6% of
488.3MB"
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the dovecot
mailing list