mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Disable service stats
for Dovecot explicitly (#2292)
Co-authored-by: Casper <casperklein@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
c568e09e60
commit
a4095a7d48
25
target/dovecot/60-stats.conf
Normal file
25
target/dovecot/60-stats.conf
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Disable Dovecot's stats feature
|
||||
#
|
||||
# According to https://doc.dovecot.org/configuration_manual/service_configuration/
|
||||
# setting mode to 0 disables the socket entirely.
|
||||
|
||||
service stats {
|
||||
unix_listener stats-reader {
|
||||
mode = 0
|
||||
}
|
||||
unix_listener stats-writer {
|
||||
mode = 0
|
||||
}
|
||||
}
|
||||
|
||||
service old-stats {
|
||||
fifo_listener old-stats-mail {
|
||||
mode = 0
|
||||
}
|
||||
fifo_listener old-stats-user {
|
||||
mode = 0
|
||||
}
|
||||
unix_listener old-stats {
|
||||
mode = 0
|
||||
}
|
||||
}
|
|
@ -186,6 +186,11 @@ function _setup_dovecot
|
|||
sed -i -e 's|#ssl = yes|ssl = required|g' /etc/dovecot/conf.d/10-ssl.conf
|
||||
sed -i 's|^postmaster_address = .*$|postmaster_address = '"${POSTMASTER_ADDRESS}"'|g' /etc/dovecot/conf.d/15-lda.conf
|
||||
|
||||
if ! grep -q -E '^stats_writer_socket_path=' /etc/dovecot/dovecot.conf
|
||||
then
|
||||
printf '\nstats_writer_socket_path=\n' >>/etc/dovecot/dovecot.conf
|
||||
fi
|
||||
|
||||
# set mail_location according to mailbox format
|
||||
case "${DOVECOT_MAILBOX_FORMAT}" in
|
||||
"sdbox" | "mdbox" )
|
||||
|
|
Loading…
Reference in a new issue