Skip to content

Commit

Permalink
allow to change port used for SMTP egress
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasse Hagen Johansen committed Jun 6, 2023
1 parent d2a03d8 commit 6a76ac7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ if [ "$MAILNAME" ]; then
echo "$MAILNAME" > /etc/mailname
fi

if [ "SMTPPORTOUT" ]; then
awk -v port_var="${SMTPPORTOUT}" '/remote_smtp:/{ n=NR+2 } NR==n{ $0=" driver = smtp\n port = "port_var }1' /etc/exim4/exim4.conf.template > /etc/exim4/exim4.conf.temp
mv /etc/exim4/exim4.conf.temp /etc/exim4/exim4.conf.template
fi

if [ "$KEY_PATH" ] && [ "$CERTIFICATE_PATH" ]; then
if [ "$MAILNAME" ]; then
echo "MAIN_TLS_ENABLE = yes" >> /etc/exim4/exim4.conf.localmacros
Expand Down

0 comments on commit 6a76ac7

Please sign in to comment.