Skip to content

Commit

Permalink
Fix #267 use postconf
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Fröhle committed Sep 28, 2021
1 parent ec07231 commit fec96dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ if [ "$1" == "/usr/bin/supervisord" ]; then
cp /opt/setup/sshd_config /etc/ssh/sshd_config

echo "Starting Postfix for report delivery by email"
sed -i "s/^relayhost.*$/relayhost = ${RELAYHOST}:${SMTPPORT}/" /etc/postfix/main.cf
#sed -i "s/^relayhost.*$/relayhost = ${RELAYHOST}:${SMTPPORT}/" /etc/postfix/main.cf
postconf -e "relayhost = ${RELAYHOST}:${SMTPPORT}"
/usr/sbin/postfix -c /etc/postfix start

# exec /start.sh
Expand Down

0 comments on commit fec96dc

Please sign in to comment.