From a8d7d1802b9d5cf35d8ec7c15dde9a43b45debb2 Mon Sep 17 00:00:00 2001 From: landergate Date: Tue, 23 Feb 2021 00:17:01 +0300 Subject: [PATCH] Fixed REPORT_RECIPIENT=1 behavior Condition never matched, so reports were sent to 1@ instead of postmaster@ --- target/scripts/start-mailserver.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/scripts/start-mailserver.sh b/target/scripts/start-mailserver.sh index f9eb0a84..79072f87 100755 --- a/target/scripts/start-mailserver.sh +++ b/target/scripts/start-mailserver.sh @@ -392,10 +392,9 @@ function _setup_default_vars fi # expand address to simplify the rest of the script - if [[ ${REPORT_RECIPIENT} == "0" ]] || [[ ${REPORT_RECIPIENT} == "0" ]] + if [[ ${REPORT_RECIPIENT} == "0" ]] || [[ ${REPORT_RECIPIENT} == "1" ]] then REPORT_RECIPIENT="${POSTMASTER_ADDRESS}" - REPORT_RECIPIENT="${REPORT_RECIPIENT}" fi PFLOGSUMM_RECIPIENT="${PFLOGSUMM_RECIPIENT:=${REPORT_RECIPIENT}}"