Update run.sh

This commit is contained in:
turboaaa 2019-01-16 12:39:55 -05:00 committed by GitHub
parent dff4a29a81
commit 423c51f9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
run.sh
View File

@ -56,16 +56,5 @@ fi
echo -e "/^MIME-Version:/i PREPEND RelayTag: $TAG\n/^Content-Transfer-Encoding:/i PREPEND RelayTag: $TAG" > /etc/postfix/header_tag echo -e "/^MIME-Version:/i PREPEND RelayTag: $TAG\n/^Content-Transfer-Encoding:/i PREPEND RelayTag: $TAG" > /etc/postfix/header_tag
echo "******** Header tag is $TAG *********" echo "******** Header tag is $TAG *********"
# 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
if [ $? -gt 0 ]; then
echo "Adding SASL authentication configuration"
echo "[${SMTP_SERVER}]:${SMTP_PORT} ${SMTP_USERNAME}:${SMTP_PASSWORD}" >> /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
fi
fi
#Start services #Start services
supervisord supervisord