From 5f9428fcf36c80c59699f4f6240e34b599cc4145 Mon Sep 17 00:00:00 2001 From: Erik Wramner Date: Tue, 24 Sep 2019 21:09:48 +0200 Subject: [PATCH] Set REPORT_RECIPIENT to postmaster when 0 --- target/start-mailserver.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 5dbb2595..0260002f 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -451,14 +451,14 @@ function _setup_default_vars() { # set PFLOGSUMM_TRIGGER here for backwards compatibility # when REPORT_RECIPIENT is on the old method should be used - if [ "$REPORT_RECIPIENT" != "0" ]; then - DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="logrotate"}" - else + if [ "$REPORT_RECIPIENT" == "0" ]; then DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="none"}" + else + DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="logrotate"}" fi # Expand address to simplify the rest of the script - if [ "$REPORT_RECIPIENT" == "1" ]; then + if [ "$REPORT_RECIPIENT" == "0" ] || [ "$REPORT_RECIPIENT" == "1" ]; then REPORT_RECIPIENT="$POSTMASTER_ADDRESS" DEFAULT_VARS["REPORT_RECIPIENT"]="${REPORT_RECIPIENT}" fi