From d4ece33bcedc44bf810656213e9cd14060e11961 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 3 Nov 2023 11:36:22 +0100 Subject: [PATCH] remove: OVERWRITE_FROM --- .env.example | 3 --- run.sh | 7 ------- 2 files changed, 10 deletions(-) diff --git a/.env.example b/.env.example index 10e74dc..5314f59 100644 --- a/.env.example +++ b/.env.example @@ -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" - # Optional: This will use allow you to set a custom $mydestination value. Default is localhost. #DESTINATION= diff --git a/run.sh b/run.sh index 4206801..874c99e 100644 --- a/run.sh +++ b/run.sh @@ -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}"