Skip to content

Commit

Permalink
seems to finally be working
Browse files Browse the repository at this point in the history
  • Loading branch information
acul009 committed Aug 31, 2024
1 parent 734c58e commit fc650c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mail_sender_router/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ fi

if [ -n "$REPLACE_EMPTY_WITH" ]; then
echo "replacing empty sender with $REPLACE_EMPTY_WITH"
# postconf -e "smtp_header_checks = regexp:/etc/postfix/header_check"
# postconf -e "local_header_rewrite_clients = static:all"
# echo "/From: <>/ REPLACE From: $REPLACE_EMPTY_WITH" > /etc/postfix/header_check

postconf -e "sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps"
postconf -e "canonical_classes = envelope_sender, header_sender"
echo "/^.*$/ $REPLACE_EMPTY_WITH" > /etc/postfix/sender_canonical_maps
echo "/^[^@]*$/ $REPLACE_EMPTY_WITH" > /etc/postfix/sender_canonical_maps
fi

while [ -n "$(eval echo \$EMAIL_${counter})" ]; do
Expand Down

0 comments on commit fc650c2

Please sign in to comment.