[Dovecot] Dovecot 1.0.3: LDA + quota plugin
Przemek Grądzki
przemek.gradzki at gmail.com
Fri Aug 17 19:29:23 EEST 2007
I have problem with quota limit settings for "deliver" - global plugin
settings overrides userdb quota setting !!!
imap and pop3 works fine.
Quota limit for user is set to "quota=maildir:ignore=Kosz:storage=512".
And "maildirsize" file in user's mail_location contains "524288S" line -
good.
But when I set:
----------------
plugin {
quota = maildir:ignore=Kosz:storage=102400
}
----------------
in "/etc/dovecot.conf", quota limit is set to "104857600S" in "maildirsize"
file - BAD.
Local delivery is configured as in http://wiki.dovecot.org/LDA, quota plugin
is set in /etc/dovecot.conf:
----------------
protocol lda {
......
mail_plugins = cmusieve quota
#mail_plugin_dir = /usr/lib/dovecot/lda
.....
}
----------------
Per-user quota is configured like this (from LDAP):
----------------
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailQuotaSize=quota=maildir:ignore=Kosz:storage
pass_attrs =
uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid,mailQuotaSize
=userdb_quota=maildir:ignore=Kosz:storage
----------------
"mailQuotaSize" attribute contains quota limit in kilobytes.
/etc/dovecot.conf:
----------------------------
# 1.0.3: /etc/dovecot.conf
log_path: /dev/stderr
protocols: imap imaps pop3s managesieve
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
first_valid_uid: 8
first_valid_gid: 12
mail_location: maildir:%h/Maildir
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/managesieve
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
auth default:
mechanisms: plain login gssapi
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: prefetch
userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 438
plugin:
quota: maildir:ignore=Kosz:storage=102400
-----------------
PS. Sorry for my english.
More information about the dovecot
mailing list