Am 2019-08-02 11:05, schrieb Thomas Krause:
Thomas, please keep the discussion on list. There is zero need to copy
send any list discussion to my personal address.
# diff dovecot.conf dovecot.conf-ok
5c5
< mail_plugins = quota mailbox_alias acl zlib expire
---
mail_plugins = quota mailbox_alias acl zlib #expire
170c170
< expire = mysql:/etc/dovecot/dovecot-expire.conf
---
#expire = mysql:/etc/dovecot/dovecot-expire.conf
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
doveconf: Warning: NOTE: You can get a new clean config file with:
doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:16:
ssl_dh_parameters_length is no longer needed
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:17:
ssl_protocols has been replaced by ssl_min_protocol
doveconf: Warning: NOTE: You can get a new clean config file with:
doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:16:
ssl_dh_parameters_length is no longer needed
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:17:
ssl_protocols has been replaced by ssl_min_protocol
Fix those obvious things.
# OS: Linux 4.19.0-5-amd64 x86_64 Debian 10.0
# Hostname: mail.example.org
auth_mechanisms = PLAIN LOGIN
dict {
acl = mysql:/etc/dovecot/dovecot-share-folder.conf
expire = mysql:/etc/dovecot/dovecot-expire.conf
quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
first_valid_uid = 1001
last_valid_uid = 1001
login_log_format_elements = user=<%u> rip=%r mpid=%e
session=<%{session}>
mail_gid = 1001
mail_plugins = quota mailbox_alias acl zlib expire
The expire plugin enabled under mail_plugins, but no configuration in
the plugins { } section. So it has zeor function as you have not defined
the mailboxes to track.
mail_uid = 1001
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
namespace {
inbox = yes
location =
mailbox Archive {
auto = no
special_use = \Archive
}
mailbox Archives {
auto = no
special_use = \Archive
}
mailbox "Deleted Messages" {
auto = no
special_use = \Trash
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox "Junk E-mail" {
auto = no
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Items" {
auto = no
special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox Spam {
auto = no
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
separator = /
type = private
}
passdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = proxy::acl
auth_socket_path = /var/run/dovecot/auth-master
mailbox_alias_new = Sent Messages
mailbox_alias_new2 = Sent Items
mailbox_alias_old = Sent
mailbox_alias_old2 = Sent
quota = dict:user::proxy::quotadict
quota_grace = 10%%
quota_rule = *:storage=1G
quota_warning = storage=100%% quota-warning 100 %u
quota_warning2 = storage=95%% quota-warning 95 %u
quota_warning3 = storage=90%% quota-warning 90 %u
quota_warning4 = storage=85%% quota-warning 85 %u
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
sieve_max_redirects = 30
zlib_save = gz
zlib_save_level = 6
}
Above not expire configuration. See
https://wiki.dovecot.org/Plugins/Expire
And you should consider migrating to the autoexpunge settings.
protocols = pop3 imap sieve lmtp
service anvil {
client_limit = 1203
}
service auth {
client_limit = 1400
unix_listener /var/spool/postfix/private/dovecot-auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-client {
group = www-data
mode = 0660
}
unix_listener auth-master {
group = vmail
mode = 0666
user = vmail
}
unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
}
}
service dict {
process_limit = 150
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
process_limit = 500
service_count = 1
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
user = vmail
}
service pop3-login {
process_limit = 500
service_count = 1
}
service quota-warning {
executable = script /usr/local/bin/dovecot-quota-warning.sh
unix_listener quota-warning {
group = vmail
mode = 0660
user = vmail
}
}
ssl = required
ssl_cert = </etc/ssl/ssl.crt/mail.example.org.pem
ssl_cipher_list =
EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_plugins = quota mailbox_alias acl zlib expire sieve
postmaster_address = root
}
protocol lmtp {
lmtp_save_to_detail_mailbox = yes
mail_plugins = quota mailbox_alias acl zlib expire sieve
postmaster_address = postmaster
recipient_delimiter = +
}
protocol imap {
imap_client_workarounds = tb-extra-mailbox-sep
mail_max_userip_connections = 30
mail_plugins = quota mailbox_alias acl zlib expire imap_quota
imap_acl
}
protocol pop3 {
mail_max_userip_connections = 30
mail_plugins = quota mailbox_alias acl zlib expire
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
Alexander