feat: Allow disabling SMTPUTF8

This commit is contained in:
Nico Weichbrodt
2021-11-19 10:31:40 +01:00
committed by Juan Luis Baptiste
parent f280c00f87
commit a80ceca118
3 changed files with 11 additions and 0 deletions

6
run.sh
View File

@@ -86,6 +86,12 @@ if [ ! -z "${SMTP_NETWORKS}" ]; then
fi
add_config_value "mynetworks" "${nets}"
# Set SMTPUTF8
if [ ! -z "${SMTPUTF8_ENABLE}" ]; then
postconf -e "smtputf8_enable = ${SMTPUTF8_ENABLE}"
echo "Setting configuration option smtputf8_enable with value: ${SMTPUTF8_ENABLE}"
fi
if [ ! -z "${OVERWRITE_FROM}" ]; then
echo -e "/^From:.*$/ REPLACE From: $OVERWRITE_FROM" > /etc/postfix/smtp_header_checks
postmap /etc/postfix/smtp_header_checks