automatische QutoaBerechnung
Michael Grundmann
michael at linuxfox.de
Mi Feb 13 13:09:32 CET 2019
Hallo an alle,
ich habe ein Problem, dass sich die Quota nicht dauerhaft neu berechnet
und absolut keine Ahnung wo ich jetzt noch weiter schrauben muss.
Bei Testmails an mich, habe ich gesehen, dass die mysql-Tabelle
aktualisiert wird. Dann habe ich immer wieder Benutzer, bei denen ich
Hand anlegen muss. Vllt. habt Ihr Ideen dazu:
root at mail1:~# doveadm quota get -u user at beispiel.de
Quota name Type Value Limit %
User quota STORAGE 3347395 3072000 108
User quota MESSAGE 1273 - 0
root at mail1:~# doveadm quota recalc -u user at beispiel.de
root at mail1:~# doveadm quota get -u user at beispiel.de
Quota name Type Value Limit %
User quota STORAGE 2888107 3072000 94
User quota MESSAGE 1076 - 0
root at mail1:~#
dovecot -n
# 2.3.4.1 (3c0b8769e): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 (60b0f48d)
# OS: Linux 4.4.0-142-generic x86_64 Ubuntu 16.04.5 LTS zfs
auth_mechanisms = plain login
default_client_limit = 10000
default_process_limit = 1000
dict {
expire = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
disable_plaintext_auth = no
doveadm_password = # hidden, use -P to show it
doveadm_port = 12345
first_valid_uid = 150
hostname = mail1.xxxxxxxx.de
last_valid_uid = 150
listen = *
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = quota replication notify
mail_uid = vmail
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 ihave duplicate
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
}
mailbox eMailArchiv {
auto = subscribe
special_use = \Archive
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename
mail_log_fields = uid box msgid size
mail_replica = tcp:192.168.110.225
quota = dict:User quota::proxy::quotadict
quota_rule2 = Trash:storage=+10%
quota_warning = storage=66%% quota-warning 66 %u
quota_warning2 = storage=80%% quota-warning 80 %u
quota_warning3 = storage=95%% quota-warning 95 %u
sieve = /var/vmail/%d/%n/sieve/.dovecot.sieve
sieve_dir = /var/vmail/%d/%n/sieve
sieve_max_actions = 300
sieve_max_redirects = 300
sieve_max_script_size = 4M
}
postmaster_address = ich at xxxxxxx.de
protocols = imap sieve
service aggregator {
fifo_listener replication-notify-fifo {
mode = 0666
user = vmail
}
unix_listener replication-notify {
mode = 0666
user = vmail
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
group = mail
mode = 0600
user = vmail
}
}
service dict {
unix_listener dict {
mode = 0600
user = vmail
}
}
service doveadm {
inet_listener {
port = 12345
}
}
service imap {
process_limit = 2048
}
service managesieve-login {
inet_listener sieve {
port = 4190
ssl = no
}
}
service quota-status {
client_limit = 1
executable = quota-status -p postfix
inet_listener {
port = 12340
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
group = vmail
mode = 0660
user = vmail
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
group = vmail
mode = 0666
}
}
service stats {
fifo_listener stats-mail {
mode = 0600
user = vmail
}
}
ssl_ca = </etc/postfix/ssl-key/cert.cabundle
ssl_cert = </etc/postfix/ssl-key/xxxxxx.de.crt
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lda {
mail_plugins = quota replication notify sieve
}
protocol imap {
mail_plugins = replication quota imap_quota mail_log notify
}
protocol sieve {
managesieve_implementation_string = Cyrus timsieved v2.2.13
managesieve_logout_format = bytes=%i/%o
}
--
Gruß Michael
Wenn du verstehst, was du tust, wirst du nichts lernen
BTW: Produktionsbremsen sind immer die Bürokraten
Mehr Informationen über die Mailingliste Dovecot