1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-08 23:06:49 +02:00

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

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