remove: OVERWRITE_FROM

This commit is contained in:
Michael Grote 2023-11-03 11:36:22 +01:00
parent 14aac69ece
commit d4ece33bce
2 changed files with 0 additions and 10 deletions

View File

@ -26,9 +26,6 @@
# Optional: Set this to yes to always add missing From:, To:, Date: or Message-ID: headers.
#ALWAYS_ADD_MISSING_HEADERS=yes
# Optional: This will rewrite the from address overwriting it with the specified address for all email being relayed.
#OVERWRITE_FROM="Your Name" <email@company.com>
# Optional: This will use allow you to set a custom $mydestination value. Default is localhost.
#DESTINATION=

7
run.sh
View File

@ -112,13 +112,6 @@ if [ ! -z "${SMTPUTF8_ENABLE}" ]; then
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
postconf -e 'smtp_header_checks = regexp:/etc/postfix/smtp_header_checks'
echo "Setting configuration option OVERWRITE_FROM with value: ${OVERWRITE_FROM}"
fi
# Set message_size_limit
if [ ! -z "${MESSAGE_SIZE_LIMIT}" ]; then
postconf -e "message_size_limit = ${MESSAGE_SIZE_LIMIT}"