Update run.sh
This commit is contained in:
parent
25f561db6b
commit
132deee541
1 changed files with 0 additions and 2 deletions
2
run.sh
2
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue