hi,
The following error message sometimes appears on my server log,it causes the mailbox to exceed the disk capacity limit.
May 9 09:54:11 imap dovecot: imap(hfh@cndns.com): Error: dict-client: Lookup 'priv/quota/storage' failed: Connection closed: read(size=8192) failed: Connection reset by peer (reply took 2.728 secs (2.729 in dict wait, 0.000 in other ioloops, 0.000 in locks))
dovecot -n
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.24 (124e06aa)
# OS: Linux 2.6.32-504.el6.x86_64 x86_64 CentOS release 6.6 (Final)
# Hostname: imap3bak.sh.chengmail.me
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
deliver_log_format = msgid=%m, subject=%s, from=%f, %$
dict {
acl = mysql:/etc/dovecot/dovecot-share-folder.conf
quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
disable_plaintext_auth = no
first_valid_uid = 2000
last_valid_uid = 2000
listen = *
mail_fsync = never
mail_gid = 2000
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_plugins = quota lazy_expunge zlib
mail_uid = 2000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
mmap_disable = yes
namespace {
list = children
location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
prefix = Shared/%%u/
separator = /
subscriptions = yes
type = shared
}
namespace {
hidden = yes
list = no
location = maildir:/var/vmail/backup/expunged/%d/%n
prefix = .DELETED/
separator = /
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-fallback-password-mysql.conf
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-fallback-mysql.conf
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-master-users-password
driver = passwd-file
master = yes
}
plugin {
acl = vfile:/etc/dovecot/dovecot-acl
acl_globals_only = yes
auth_socket_path = /var/run/dovecot/auth-master
lazy_expunge = .DELETED/
quota = dict:user::proxy::quotadict
quota_grace = 0%%
quota_max_mail_size = 70M
quota_rule = *:storage=1G
quota_rule2 = *:messages=0
quota_warning = storage=85%% quota-warning 85 %u
quota_warning2 = storage=90%% quota-warning 90 %u
quota_warning3 = storage=95%% quota-warning 95 %u
sieve = /%Lh/sieve/dovecot.sieve
sieve_default = /var/vmail/sieve/dovecot.sieve
sieve_default_name = managesieve
sieve_dir = /%Lh/sieve
}
protocols = pop3 imap sieve
service anvil {
client_limit = 20500
}
service auth {
client_limit = 20500
unix_listener /var/spool/postfix/dovecot-auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0666
user = vmail
}
unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
process_min_avail = 24
service_count = 0
vsz_limit = 2 G
}
service imap {
process_limit = 1024000
process_min_avail = 24
vsz_limit = 2 G
}
service pop3-login {
service_count = 0
}
service quota-warning {
executable = script /usr/local/bin/dovecot-quota-warning.sh
unix_listener quota-warning {
group = vmail
mode = 0660
user = vmail
}
}
ssl_ca = </etc/pki/tls/certs/cndns.com.ca-bundle
ssl_cert = </etc/pki/tls/certs/cndns.com.crt
ssl_key = # hidden, use -P to show it
syslog_facility = local6
userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
userdb {
args = /etc/dovecot/dovecot-fallback-user-mysql.conf
driver = sql
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
lda_mailbox_autocreate = yes
mail_fsync = optimized
mail_plugins = quota lazy_expunge zlib sieve
postmaster_address = root
syslog_facility = local6
}
protocol imap {
imap_client_workarounds = tb-extra-mailbox-sep
imap_id_send = NAME dovecot VERSION 2.1.17
mail_max_userip_connections = 20
mail_plugins = quota lazy_expunge zlib imap_quota mail_log imap_zlib notify
}
protocol pop3 {
mail_max_userip_connections = 20
mail_plugins = quota lazy_expunge zlib mail_log notify
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
}