# Instals msmtp if a SMTP_HOST var was configured if test -n "${SMTP_HOST}"; then apk add --no-cache msmtp; if test -z "${SMTP_PORT:-}"; then if test "${SMTP_TLS:-on}" = "off"; then SMTP_PORT=25; elif test "${SMTP_TLS:-on}" = "starttls"; then SMTP_PORT=587; else SMTP_PORT=465; fi fi echo "**** SMTP_AUTH=${SMTP_AUTH:-}"; if test "${SMTP_AUTH:-on}" = "off"; then SMTP_TLS="off"; fi cat > /etc/msmtprc <> /etc/msmtprc; fi if test -n "${SMTP_USER}"; then echo "user ${SMTP_USER}" >> /etc/msmtprc; fi if test -n "${SMTP_PASSWORD}"; then echo password ${SMTP_PASSWORD} >> /etc/msmtprc; fi cat > /usr/local/etc/php/conf.d/99-mail.ini <