Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-01-10 16:38:05 -08:00
parent dbf5c31724
commit c40d4241a1
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -30,7 +30,7 @@ fi
if [ "$SASL_AUTH" ]; then
# setup tls
echo -e "smtp_tls_security_level = encrypt\nsmtp_sasl_auth_enable = yes\nsmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd\nsmtp_sasl_security_options = noanonymous" >> /etc/postfix/main.cf
echo -e "smtp_sasl_auth_enable = yes\nsmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd\nsmtp_sasl_security_options = noanonymous\nsmtp_use_tls = yes" >> /etc/postfix/main.cf
# generate the SASL password map
cat > /etc/postfix/sasl_passwd <<- EOF
$RELAY $SASL_AUTH