From 34ba3c2a5b0f709a1680a779fda3da338535a063 Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 17 Oct 2021 18:18:56 +0200 Subject: [PATCH] Add warnings when Amavis is disabled. (#2251) Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- target/scripts/startup/setup-stack.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/scripts/startup/setup-stack.sh b/target/scripts/startup/setup-stack.sh index f8306af2..98b6463c 100644 --- a/target/scripts/startup/setup-stack.sh +++ b/target/scripts/startup/setup-stack.sh @@ -137,6 +137,8 @@ function _setup_amavis else _notify 'task' 'Remove Amavis from postfix configuration' sed -i 's|content_filter =.*|content_filter =|' /etc/postfix/main.cf + [[ ${ENABLE_CLAMAV} -eq 1 ]] && _notify 'warn' 'ClamAV will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.' + [[ ${ENABLE_SPAMASSASSIN} -eq 1 ]] && _notify 'warn' 'Spamassassin will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.' fi }