mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-11-10 08:55:39 +08:00
added ca-certs and tls authentication (#9)
This commit is contained in:
parent
397c0ce838
commit
9254d5ef36
1 changed files with 2 additions and 0 deletions
2
run.sh
2
run.sh
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue