Fixed REPORT_RECIPIENT=1 behavior

Condition never matched, so reports were sent to 1@ instead of postmaster@
This commit is contained in:
landergate 2021-02-23 00:17:01 +03:00 committed by GitHub
parent c1a6bd9d3d
commit a8d7d1802b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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}}"