Quota and ldap
Jean-François Sénéchal
jean-francois.senechal at ac.marche.be
Mon Mar 2 10:43:44 UTC 2015
Hello
I try to install quota per usr, everything seems fine but the quota is
not working
Dovecot : 2.2.13
dovecot-ldap.conf.ext
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,gosaMailQuota=quota_rule=*:bytes=%$
10-mail.conf
mail_location = maildir:~/Maildir:LAYOUT=fs
mail_plugins = $mail_plugins quota
/10-master.conf
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
20-imapd.conf
protocol imap {
mail_plugins = $mail_plugins imap_quota
}
20-lmtp.conf
protocol lmtp {
mail_plugins = $mail_plugins quota
}
90-quota.conf
plugin {
quota_rule = *:storage=150M
quota_rule2 = Trash:storage=+100M
quota_grace = 10%%
}
plugin {
quota = maildir:User quota
}
Command doveadm quota recalc
return nothing (no error)
My log
Mar 2 11:41:58 domaine dovecot: imap-login: Login: user=<siroco>,
method=PLAIN, rip=::1, lip=::1, mpid=3695, secured,
session=<X+Yi3ksQdAAAAAAAAAAAAAAAAAAAAAAB>
Mar 2 11:41:58 domaine dovecot: imap: Debug: Loading modules from
directory: /usr/lib/dovecot/modules
Mar 2 11:41:58 domaine dovecot: imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib10_quota_plugin.so
Mar 2 11:41:58 domaine dovecot: imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting:
plugin/quota_rule=*:bytes=0
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Effective
uid=5000, gid=5000, home=/var/spool/dovecot/mail/s/siroco
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota root:
name=User quota backend=maildir args=
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota rule:
root=User quota mailbox=* bytes=0 messages=0
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota rule:
root=User quota mailbox=Trash bytes=+104857600 messages=0
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota grace:
root=User quota bytes=0 (10%)
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: Namespace inbox:
type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=maildir:~/Maildir:LAYOUT=fs
Mar 2 11:41:58 domaine dovecot: imap(siroco): Debug: fs:
root=/var/spool/dovecot/mail/s/siroco/Maildir, index=, indexpvt=,
control=, inbox=/var/spool/dovecot/mail/s/siroco/Maildir,
More information about the dovecot
mailing list