mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Set REPORT_RECIPIENT to postmaster when 0
This commit is contained in:
parent
fe3f747c72
commit
5f9428fcf3
|
@ -451,14 +451,14 @@ function _setup_default_vars() {
|
||||||
|
|
||||||
# set PFLOGSUMM_TRIGGER here for backwards compatibility
|
# set PFLOGSUMM_TRIGGER here for backwards compatibility
|
||||||
# when REPORT_RECIPIENT is on the old method should be used
|
# when REPORT_RECIPIENT is on the old method should be used
|
||||||
if [ "$REPORT_RECIPIENT" != "0" ]; then
|
if [ "$REPORT_RECIPIENT" == "0" ]; then
|
||||||
DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="logrotate"}"
|
|
||||||
else
|
|
||||||
DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="none"}"
|
DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="none"}"
|
||||||
|
else
|
||||||
|
DEFAULT_VARS["PFLOGSUMM_TRIGGER"]="${PFLOGSUMM_TRIGGER:="logrotate"}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Expand address to simplify the rest of the script
|
# 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"
|
REPORT_RECIPIENT="$POSTMASTER_ADDRESS"
|
||||||
DEFAULT_VARS["REPORT_RECIPIENT"]="${REPORT_RECIPIENT}"
|
DEFAULT_VARS["REPORT_RECIPIENT"]="${REPORT_RECIPIENT}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue