From a831ea065ff340e34e31ba6a649e62279c4ca213 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 11 Oct 2019 13:59:35 +0200 Subject: [PATCH] install_update_dovecot.sh: Cconfigure stats service (10-master.conf). --- install_update_dovecot.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/install_update_dovecot.sh b/install_update_dovecot.sh index b04618d..5ddd8af 100755 --- a/install_update_dovecot.sh +++ b/install_update_dovecot.sh @@ -2964,6 +2964,41 @@ EOF fi +## - configure stats service (10-master.conf) +## - +echononl "\tConfigure stats service (10-master.conf)" +cat <> /usr/local/dovecot-${_version}/etc/dovecot/conf.d/10-master.conf + +service stats { + + fifo_listener stats-mail { + user = vmail + group = dovecot + mode = 0660 + } + + unix_listener stats-reader { + user = vmail + group = dovecot + mode = 0660 + } + + unix_listener stats-writer { + user = vmail + group = dovecot + mode = 0660 + } +} +EOF +if [[ $? -gt 0 ]] ; then + echo -e "$rc_failed" + error "Configure stats service (10-master.conf) failed!" +else + echo -e "$rc_done" +fi + + + ## - configure post-login service (10-master.conf) ## - ## - see also: https://wiki.dovecot.org/PostLoginScripting