<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 15 October 2018 at 15:54 Christian Ejlertsen <
<a href="mailto:ce@lytzenit.dk">ce@lytzenit.dk</a>> wrote:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
On Mon, 2018-10-15 at 15:36 +0300, Aki Tuomi wrote:
</div>
<blockquote type="cite">
<blockquote type="cite">
<div>
It is :)
</div>
<div>
<br>
</div>
<blockquote type="cite">
<div>
protocol imap {
</div>
<div>
mail_max_userip_connections = 1000
</div>
<div>
mail_plugins = " quota notify replication imap_quota last_login
</div>
<div>
quota_clone"
</div>
<div>
}
</div>
</blockquote>
</blockquote>
<div>
But that will only affect imap protocol. You should add it globally,
</div>
<div>
otherwise quota updates do not happen for LMTP/LDA.
</div>
<div>
<br>
</div>
<div>
Aki
</div>
</blockquote>
<div>
Hello Aki
</div>
<div>
<br>
</div>
<div>
I tried it like the config suggests, in the global conttext, with same
</div>
<div>
result no updates in the database and no indication in the log that it
</div>
<div>
is trying to write or fails in any way.
</div>
<div>
<br>
</div>
<div>
- Christian
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
# 2.3.2.1 (0719df592): /etc/dovecot/dovecot.conf
</div>
<div>
# OS: Linux 3.10.0-862.11.6.el7.x86_64 x86_64 CentOS Linux release
</div>
<div>
7.5.1804 (Core) nfs4
</div>
<div>
# Hostname: imap01.ltmail.dk
</div>
<div>
auth_debug = yes
</div>
<div>
auth_verbose = yes
</div>
<div>
dict {
</div>
<div>
lastlogin = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
</div>
<div>
quotaclone = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
</div>
<div>
}
</div>
<div>
doveadm_password = # hidden, use -P to show it
</div>
<div>
lock_method = dotlock
</div>
<div>
login_trusted_networks = 192.168.100.11/32 192.168.100.16/32
</div>
<div>
mail_debug = yes
</div>
<div>
mail_fsync = always
</div>
<div>
mail_location = maildir:/storage/vmail/%d/%n
</div>
<div>
mail_nfs_index = yes
</div>
<div>
mail_nfs_storage = yes
</div>
<div>
mail_plugins = " quota quota_clone notify replication"
</div>
<div>
mmap_disable = yes
</div>
<div>
namespace inbox {
</div>
<div>
inbox = yes
</div>
<div>
location =
</div>
<div>
mailbox Drafts {
</div>
<div>
special_use = \Drafts
</div>
<div>
}
</div>
<div>
mailbox Junk {
</div>
<div>
special_use = \Junk
</div>
<div>
}
</div>
<div>
mailbox Sent {
</div>
<div>
special_use = \Sent
</div>
<div>
}
</div>
<div>
mailbox "Sent Messages" {
</div>
<div>
special_use = \Sent
</div>
<div>
}
</div>
<div>
mailbox Trash {
</div>
<div>
special_use = \Trash
</div>
<div>
}
</div>
<div>
prefix =
</div>
<div>
}
</div>
<div>
passdb {
</div>
<div>
args = /etc/dovecot/dovecot-sql.conf.ext
</div>
<div>
driver = sql
</div>
<div>
}
</div>
<div>
plugin {
</div>
<div>
last_login_dict = proxy::lastlogin
</div>
<div>
last_login_key = last-login/%u
</div>
<div>
mail_replica = tcp:imapb01.litmail.dk:12345
</div>
<div>
quota = maildir:User quota
</div>
<div>
quota_clone_dict = proxy::quotaclone
</div>
<div>
quota_grace = 10%%
</div>
<div>
quota_status_nouser = DUNNO
</div>
<div>
quota_status_overquota = 552 5.2.2 Mailbox is full
</div>
<div>
quota_status_success = DUNNO
</div>
<div>
}
</div>
<div>
protocols = imap
</div>
<div>
replication_max_conns = 100
</div>
<div>
service aggregator {
</div>
<div>
fifo_listener replication-notify-fifo {
</div>
<div>
mode = 0666
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
unix_listener replication-notify {
</div>
<div>
mode = 0666
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service auth-worker {
</div>
<div>
user = $default_internal_user
</div>
<div>
}
</div>
<div>
service auth {
</div>
<div>
unix_listener /var/spool/postfix/private/auth {
</div>
<div>
group = postfix
</div>
<div>
mode = 0666
</div>
<div>
user = postfix
</div>
<div>
}
</div>
<div>
unix_listener auth-userdb {
</div>
<div>
group = vmail
</div>
<div>
mode = 0666
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
user = $default_internal_user
</div>
<div>
}
</div>
<div>
service config {
</div>
<div>
unix_listener config {
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service dict {
</div>
<div>
unix_listener dict {
</div>
<div>
group = vmail
</div>
<div>
mode = 0600
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service doveadm {
</div>
<div>
group = vmail
</div>
<div>
inet_listener {
</div>
<div>
port = 12345
</div>
<div>
}
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
service imap-login {
</div>
<div>
inet_listener imap {
</div>
<div>
port = 143
</div>
<div>
}
</div>
<div>
process_min_avail = 10
</div>
<div>
service_count = 0
</div>
<div>
}
</div>
<div>
service quota-status {
</div>
<div>
client_limit = 1
</div>
<div>
executable = /usr/libexec/dovecot/quota-status -p postfix
</div>
<div>
inet_listener {
</div>
<div>
port = 12340
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service replicator {
</div>
<div>
process_min_avail = 1
</div>
<div>
unix_listener replicator-doveadm {
</div>
<div>
mode = 0666
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service stats {
</div>
<div>
unix_listener stats-writer {
</div>
<div>
mode = 0600
</div>
<div>
user = vmail
</div>
<div>
}
</div>
<div>
}
</div>
<div>
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
</div>
<div>
ssl_dh = # hidden, use -P to show it
</div>
<div>
ssl_key = # hidden, use -P to show it
</div>
<div>
userdb {
</div>
<div>
args = /etc/dovecot/dovecot-sql.conf.ext
</div>
<div>
driver = sql
</div>
<div>
}
</div>
<div>
protocol imap {
</div>
<div>
mail_max_userip_connections = 1000
</div>
<div>
mail_plugins = " quota quota_clone notify replication imap_quota
</div>
<div>
last_login"
</div>
<div>
}
</div>
<div>
protocol submission {
</div>
<div>
mail_max_userip_connections = 1000
</div>
<div>
}
</div>
</blockquote>
<div>
<br>
</div>
<div>
Did you remember to restart after config change? Also quota clone occurs when quota usage changes.
</div>
<div>
<br>
</div>
<div class="io-ox-signature">
---
<br>Aki Tuomi
</div>
</body>
</html>