mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
fix order (#3082)
This commit is contained in:
parent
ac1df91181
commit
26861ddf92
|
@ -634,16 +634,8 @@ function _setup_SRS
|
|||
|
||||
function _setup_dkim_dmarc
|
||||
{
|
||||
if [[ ${ENABLE_OPENDMARC} -eq 1 ]]
|
||||
if [[ ${ENABLE_OPENDKIM} -eq 1 ]]
|
||||
then
|
||||
_log 'trace' "Adding OpenDMARC to Postfix's milters"
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
sed -i -E 's|^(smtpd_milters =.*)|\1 \$dmarc_milter|g' /etc/postfix/main.cf
|
||||
fi
|
||||
|
||||
[[ ${ENABLE_OPENDKIM} -eq 1 ]] || return 0
|
||||
|
||||
_log 'debug' 'Setting up DKIM'
|
||||
|
||||
mkdir -p /etc/opendkim/keys/
|
||||
|
@ -680,6 +672,15 @@ function _setup_dkim_dmarc
|
|||
|
||||
_log 'trace' "Nameservers added to '/etc/opendkim.conf'"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${ENABLE_OPENDMARC} -eq 1 ]]
|
||||
then
|
||||
_log 'trace' "Adding OpenDMARC to Postfix's milters"
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
sed -i -E 's|^(smtpd_milters =.*)|\1 \$dmarc_milter|g' /etc/postfix/main.cf
|
||||
fi
|
||||
}
|
||||
|
||||
function _setup_postfix_vhost
|
||||
|
|
Loading…
Reference in a new issue