diff --git a/smtp-relay.sh b/smtp-relay.sh index 8632f6e..796b4ac 100755 --- a/smtp-relay.sh +++ b/smtp-relay.sh @@ -10,7 +10,7 @@ SMTP_TLS_SECURITY_LEVEL=${SMTP_TLS_SECURITY_LEVEL?Missing env var SMTP_TLS_SECUR # handle sasl -[ -w /etc/postfix/sasl_passwd ] && echo "${SMTP_RELAY_HOST} ${SMTP_RELAY_USERNAME}:${SMTP_RELAY_PASSWORD}" > /etc/postfix/sasl_passwd || exit 1 +[ -w /etc/postfix/sasl_passwd ] && echo "${SMTP_RELAY_HOST} ${SMTP_RELAY_USERNAME}:${SMTP_RELAY_PASSWORD}" > /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd || exit 1 postconf 'smtp_sasl_auth_enable = yes' || exit 1