From 1c7b22ea1ac145cdac84563594c58bcd7c400c44 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 28 Nov 2016 14:03:49 +0000 Subject: [PATCH] Control exim logging --- src/freedombone-logging | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-logging b/src/freedombone-logging index 3d63b3f1..d7691deb 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -124,6 +124,7 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then if [ ! -d /var/log/exim4 ]; then mkdir /var/log/exim4 fi + sed -i 's|MAIN_LOG_SELECTOR = .*|MAIN_LOG_SELECTOR = +tls_peerdn|g' /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs sed -i 's|MAIN_LOG_SELECTOR = .*|MAIN_LOG_SELECTOR = +tls_peerdn|g' /etc/exim4/exim4.conf.template sed -i 's|log_selector =.*|log_selector = MAIN_LOG_SELECTOR|g' /etc/exim4/conf.d/main/90_exim4-config_log_selector fi @@ -184,6 +185,7 @@ else rm -rf /var/log/prosody fi if [ -d /etc/exim4 ]; then + sed -i 's|MAIN_LOG_SELECTOR = .*|MAIN_LOG_SELECTOR = -all|g' /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs sed -i 's|MAIN_LOG_SELECTOR = .*|MAIN_LOG_SELECTOR = -all|g' /etc/exim4/exim4.conf.template sed -i 's|log_selector =.*|log_selector = -all|g' /etc/exim4/conf.d/main/90_exim4-config_log_selector shred -zu /var/log/exim4/*