[Dovecot] [Dovecot 1.1.11] Dovecot cannot refresh the maildirsize
Thu NGUYEN
ntathu at tma.com.vn
Mon Mar 16 10:03:55 EET 2009
Dear all,
My problem is below:
- quota for user "Demo" is 3MB and Demo maildir is now 2.2MB
- then I sent an email with attachment (600KB) to demo@
- I relogin to account Demo but nothing changed (maildirsize in Maildir
still not changed)
- then I DELETE the maildirsize file and relogin, the maildirsize is now
updated.
---> however that's what not I expected as I should delete the maildirsize,
I wonder why the maildirsize file is not updated right after an incoming
email or after I relogin...?
Did I made something wrong?
Below is my dovecot config:
dovecot -n
# 1.1.11: /etc/dovecot.conf
# OS: Linux 2.6.18-92.el5 i686 CentOS release 5.2 (Final) ext3
log_path: /var/log/dovecot.log.quota.0313
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
mail_gid: 100
mail_location: maildir:/home/%u/Maildir
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
auth default:
verbose: yes
debug: yes
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
plugin:
quota: maildir:User quota
quota_rule: *:storage=5G
quota_warning: storage=80%% /usr/local/bin/quota-warning.sh 80
quota_warning2: storage=82%% /usr/local/bin/quota-warning.sh 82
quota_warning3: storage=84%% /usr/local/bin/quota-warning.sh 84
[root at smail Maildir]# grep -v '^ *\(#.*\)\?$' /etc/dovecot-ldap.conf
hosts = ldaphost.tma.com.vn
dn = cn=Administrator,dc=tma,dc=com,dc=vn
dnpass = secret
auth_bind = yes
auth_bind_userdn = uid=%u,ou=Users,dc=tma,dc=com,dc=vn
ldap_version = 3
base = ou=Users,dc=tma,dc=com,dc=vn
scope = subtree
user_attrs = homeDirectory=home,uid=uid,mailQuota=quota_rule=*:storage=%$M
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = CRYPT
Manipulation in Maildir
// there is nochange when login after receiving an email
[root at mail Maildir]# cat maildirsize
3145728S
2246642 149
//remove maildirsize
[root at mail Maildir]# rm maildirsize
[root at mail Maildir]# cat maildirsize
cat: maildirsize: No such file or directory
// relogin
[root at mail Maildir]# cat maildirsize
3145728S
2897371 152
Thanks for your response.
Regards,
Thu NGUYEN.
More information about the dovecot
mailing list