mirror of
https://github.com/friendica/docker
synced 2025-03-30 03:37:07 +02:00
set /etc/msmtprc 'auth' parameter from SMTP_AUTH env
This commit is contained in:
parent
0db5a0278d
commit
88db303a9a
13 changed files with 26 additions and 13 deletions
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
|
@ -6,6 +6,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
echo "Setup MSMTP for '$SITENAME' with '$SMTP' ..."
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -26,7 +27,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
echo "tls_certcheck off" # No certcheck because of internal docker mail-hostnames
|
||||||
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
if [ -n "${SMTP_TLS+x}" ]; then echo "tls on"; fi
|
||||||
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth on"; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "user \"$SMTP_AUTH_USER\""; fi
|
||||||
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
if [ -n "${SMTP_AUTH_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi
|
||||||
echo "logfile /var/log/msmtp.log"
|
echo "logfile /var/log/msmtp.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue