Update run.sh

This commit is contained in:
turboaaa 2019-02-17 12:50:55 -05:00 committed by GitHub
parent 25f561db6b
commit 132deee541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
run.sh
View file

@ -13,7 +13,6 @@ function add_config_value() {
postconf -e "${key} = ${value}"
}
[ -z "${SMTP_SERVER}" ] && echo "SMTP_SERVER is not set" && exit 1
[ -z "${SMTP_USERNAME}" ] && echo "SMTP_USERNAME is not set" && exit 1
[ -z "${SMTP_PASSWORD}" ] && echo "SMTP_PASSWORD is not set" && exit 1
@ -35,7 +34,6 @@ add_config_value "smtp_sasl_auth_enable" "yes"
add_config_value "smtp_sasl_password_maps" "hash:\/etc\/postfix\/sasl_passwd"
add_config_value "smtp_sasl_security_options" "noanonymous"
# Create sasl_passwd file with auth credentials
if [ ! -f /etc/postfix/sasl_passwd ]; then
grep -q "${SMTP_SERVER}" /etc/postfix/sasl_passwd > /dev/null 2>&1