log: adjust level and message(s) slightly for four messages (#2532)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
a9305a073f
commit
c7b16a599c
|
@ -351,7 +351,7 @@ function _setup_ssl
|
||||||
;;
|
;;
|
||||||
|
|
||||||
( '' ) # No SSL/TLS certificate used/required, plaintext auth permitted over insecure connections
|
( '' ) # No SSL/TLS certificate used/required, plaintext auth permitted over insecure connections
|
||||||
_log 'warn' "(INSECURE!) SSL configured with plain text access. DO NOT USE FOR PRODUCTION DEPLOYMENT."
|
_log 'warn' '!! INSECURE !! SSL configured with plain text access - DO NOT USE FOR PRODUCTION DEPLOYMENT'
|
||||||
# Untested. Not officially supported.
|
# Untested. Not officially supported.
|
||||||
|
|
||||||
# Postfix configuration:
|
# Postfix configuration:
|
||||||
|
|
|
@ -881,11 +881,11 @@ function _setup_security_stack
|
||||||
# SpamAssassin
|
# SpamAssassin
|
||||||
if [[ ${ENABLE_SPAMASSASSIN} -eq 0 ]]
|
if [[ ${ENABLE_SPAMASSASSIN} -eq 0 ]]
|
||||||
then
|
then
|
||||||
_log 'warn' "Spamassassin is disabled. You can enable it with 'ENABLE_SPAMASSASSIN=1'"
|
_log 'debug' 'SpamAssassin is disabled'
|
||||||
echo "@bypass_spam_checks_maps = (1);" >>"${DMS_AMAVIS_FILE}"
|
echo "@bypass_spam_checks_maps = (1);" >>"${DMS_AMAVIS_FILE}"
|
||||||
elif [[ ${ENABLE_SPAMASSASSIN} -eq 1 ]]
|
elif [[ ${ENABLE_SPAMASSASSIN} -eq 1 ]]
|
||||||
then
|
then
|
||||||
_log 'debug' "Enabling and configuring spamassassin"
|
_log 'debug' 'Enabling and configuring SpamAssassin'
|
||||||
|
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
sed -i -r 's|^\$sa_tag_level_deflt (.*);|\$sa_tag_level_deflt = '"${SA_TAG}"';|g' /etc/amavis/conf.d/20-debian_defaults
|
sed -i -r 's|^\$sa_tag_level_deflt (.*);|\$sa_tag_level_deflt = '"${SA_TAG}"';|g' /etc/amavis/conf.d/20-debian_defaults
|
||||||
|
@ -969,7 +969,7 @@ EOM
|
||||||
# ClamAV
|
# ClamAV
|
||||||
if [[ ${ENABLE_CLAMAV} -eq 0 ]]
|
if [[ ${ENABLE_CLAMAV} -eq 0 ]]
|
||||||
then
|
then
|
||||||
_log 'info' "ClamAV is disabled"
|
_log 'debug' 'ClamAV is disabled'
|
||||||
echo '@bypass_virus_checks_maps = (1);' >>"${DMS_AMAVIS_FILE}"
|
echo '@bypass_virus_checks_maps = (1);' >>"${DMS_AMAVIS_FILE}"
|
||||||
elif [[ ${ENABLE_CLAMAV} -eq 1 ]]
|
elif [[ ${ENABLE_CLAMAV} -eq 1 ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue