Correct sasl_passwd file creation method
This commit is contained in:
parent
222d3fad72
commit
f831f935b9
2
run.sh
2
run.sh
@ -54,7 +54,7 @@ if [ ! -f /etc/postfix/sasl_passwd -a ! -z "${SMTP_USERNAME}" ]; then
|
|||||||
grep -q "${SMTP_SERVER}" /etc/postfix/sasl_passwd > /dev/null 2>&1
|
grep -q "${SMTP_SERVER}" /etc/postfix/sasl_passwd > /dev/null 2>&1
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
echo "Adding SASL authentication configuration"
|
echo "Adding SASL authentication configuration"
|
||||||
echo "[${SMTP_SERVER}]:${SMTP_PORT} ${SMTP_USERNAME}@${DESTINATION:-localhost}:${SMTP_PASSWORD}" >> /etc/postfix/sasl_passwd
|
echo "[${SMTP_SERVER}]:${SMTP_PORT} ${SMTP_USERNAME}:${SMTP_PASSWORD}" >> /etc/postfix/sasl_passwd
|
||||||
postmap /etc/postfix/sasl_passwd
|
postmap /etc/postfix/sasl_passwd
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user