added ca-certs and tls authentication (#9)

This commit is contained in:
Florian Probst 2019-01-02 09:50:52 +01:00 committed by Boky
parent 397c0ce838
commit 9254d5ef36

2
run.sh
View file

@ -47,6 +47,8 @@ if [ ! -z "$RELAYHOST" ]; then
postmap hash:/etc/postfix/sasl_passwd
postconf -e "smtp_sasl_auth_enable=yes"
postconf -e "smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd"
postconf -e "smtp_tls_CAfile=/etc/ssl/certs/ca-certificates.crt"
postconf -e "smtp_enforce_tls=yes"
postconf -e "smtp_sasl_security_options=noanonymous"
else
echo " without any authentication. Make sure your server is configured to accept emails coming from this IP."