Skip to content

Commit

Permalink
Fix missing snakeoil cert when client_tls not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Jul 8, 2022
1 parent c6e0285 commit af4bc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s6/postfix/run
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ echo "postfix >> Setting smtpd_use_tls to ${USE_TLS}"
postconf -e smtpd_use_tls="${USE_TLS}"

if [ "${USE_TLS}" == "yes" ]; then
if [ "${TLS_KEY}" == "/etc/ssl/private/ssl-cert-snakeoil.key" ]; then
if [ "${TLS_KEY}" == "/etc/ssl/private/ssl-cert-snakeoil.key" ] || [ "${CLIENT_TLS_KEY}" == "/etc/ssl/private/ssl-cert-snakeoil.key" ]; then
echo "postfix >> Generating snakeoil SSL cert"
dpkg-reconfigure -f noninteractive ssl-cert
fi
Expand Down

0 comments on commit af4bc2c

Please sign in to comment.