diff --git a/install_update_dovecot-2.4.sh b/install_update_dovecot-2.4.sh index fd0aee5..9f7378c 100755 --- a/install_update_dovecot-2.4.sh +++ b/install_update_dovecot-2.4.sh @@ -9746,6 +9746,9 @@ fi # Dovecot 2.4+ quota_clone ## --- ## --- Every line carries the prefix imap(); the ## --- session id links it to the imap-login line (rip=, login time). +## --- +## --- Enabled for imap, pop3 and lmtp only - not for doveadm, otherwise +## --- cron jobs running "doveadm expunge" print a line per message. ## ----------------------------------------------------------------- if [[ $dovecot_major_version -gt 2 ]] \ @@ -9767,16 +9770,37 @@ if [[ $dovecot_major_version -gt 2 ]] \ ## -> the session=<...> of the matching imap-login line gives ## client IP (rip=) and login time. ## +## Only enabled for imap, pop3 and lmtp (client actions and sieve +## filing). NOT for doveadm: doveadm writes log lines to stderr, so +## cron jobs like "doveadm expunge ..." would produce output (mail) +## for every expunged message. +## ## see also: https://doc.dovecot.org/${_version}/core/plugins/mail_log.html ## -mail_plugins { - notify = yes - mail_log = yes -} - mail_log_events = ${mail_log_events} mail_log_fields = ${mail_log_fields} + +protocol imap { + mail_plugins { + notify = yes + mail_log = yes + } +} + +protocol pop3 { + mail_plugins { + notify = yes + mail_log = yes + } +} + +protocol lmtp { + mail_plugins { + notify = yes + mail_log = yes + } +} EOF if [ "$?" = 0 ]; then echo -e "$rc_done"