[Dovecot] ldap quota dovecot
Mathieu BALCERAK
mathieu.balcerak at 4dconcept.fr
Sun Sep 27 17:25:50 EEST 2009
Timo Sirainen a écrit :
> On Thu, 2009-09-10 at 12:55 +0300, Justinas Samas wrote:
>
>> user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,telephoneNumber=quota_rule=*:storage=%$M
>>
> ..
>
>> Imap shows correct quota, but dovecot lda doesn't reject mail and it
>> gets overquota, maildirsize:
>>
>
> I guess this is caused by two things:
>
> 1) You're not calling deliver with -d parameter, so it never does the
> LDAP lookup to find out quota_rule.
>
> 2) Bug in v1.2 that I just fixed:
> http://hg.dovecot.org/dovecot-1.2/rev/fe063e0d7109
>
> Note that if you fix this by applying the patch (or waiting for v1.2.5
> which I hope comes today) deliver will use those quota limits that are
> in maildirsize file. So if you change user's quota he/she needs to log
> in with imap/pop before the change is written to maildirsize and visible
> to deliver.
>
Hello,
I have the same issue, when i upgrade to 1.2.5
the quota per user work only if i remove the directive
quota_rule=*:storage=2G
I set this rules as default for all my users except for 3 users.
The imap_quota report perfectly the quota but dovecot lda take the
quota_rule, per user quota
not apply.
/dovecot -n /:
# 1.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.22-2-686 i686 Debian squeeze/sid
log_path: /var/log/dovecot.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve
listen(default): *:143
listen(imap): *:143
listen(managesieve): *:2000
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(managesieve):
ssl_cert_file: /etc/ssl/CA/imapcert.pem
ssl_key_file: /etc/ssl/CA/imapkey.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
login_process_size: 32
login_processes_count: 1
login_max_processes_count: 256
mail_access_groups: mail
mail_location: maildir:~/Maildir
mail_debug: yes
maildir_copy_preserve_filename: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota zlib fts fts_squat
mail_plugins(imap): quota imap_quota zlib fts fts_squat
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
lda:
postmaster_address: mail at mydomain.com
mail_plugins: sieve quota
auth default:
mechanisms: plain login
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: prefetch
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 384
plugin:
quota: maildir:User Quota
##(quota_rule=*:storage=2G) --> don't work
sieve: ~/.dovecot.sieve
sieve_dir: ~/sieve
sieve_extensions: +imapflags
fts: squat
fts_squat: partial=4 full=10
//etc/dovecot/dovecot-ldap.conf/
hosts = localhost
auth_bind = yes
ldap_version = 3
base = ou=people,dc=example,dc=com
scope = subtree
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailuserquota=quota_rule=*:storage=%$
user_filter = (&(objectClass=posixAccount)(mailenable=OK)(uid=%u))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(mailenable=OK)(uid=%u))
default_pass_scheme = CRYPT
More information about the dovecot
mailing list