mirror of
https://github.com/friendica/docker
synced 2025-02-19 10:39:09 +01:00
Runs update.sh
This commit is contained in:
parent
add76c08bd
commit
9fd34d469b
9 changed files with 45 additions and 45 deletions
10
2024.08/apache/setup_msmtp.sh
Normal file → Executable file
10
2024.08/apache/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2024.08/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
10
2024.08/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2024.08/fpm/setup_msmtp.sh
Normal file → Executable file
10
2024.08/fpm/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2024.12/apache/setup_msmtp.sh
Normal file → Executable file
10
2024.12/apache/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2024.12/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
10
2024.12/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2024.12/fpm/setup_msmtp.sh
Normal file → Executable file
10
2024.12/fpm/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2025.02-dev/apache/setup_msmtp.sh
Normal file → Executable file
10
2025.02-dev/apache/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2025.02-dev/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
10
2025.02-dev/fpm-alpine/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
10
2025.02-dev/fpm/setup_msmtp.sh
Normal file → Executable file
10
2025.02-dev/fpm/setup_msmtp.sh
Normal file → Executable file
|
@ -7,8 +7,8 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
|
|
||||||
smtp_from="${SMTP_FROM:=no-reply}"
|
smtp_from="${SMTP_FROM:=no-reply}"
|
||||||
smtp_auth="${SMTP_AUTH:=on}"
|
smtp_auth="${SMTP_AUTH:=on}"
|
||||||
# https://github.com/friendica/docker/issues/233
|
smtp_port="${SMTP_PORT:=587}"
|
||||||
smtp_starttls="${SMTP_STARTTLS:=on}"
|
smtp_tls="${SMTP_TLS:=on}"
|
||||||
|
|
||||||
# Setup MSMTP
|
# Setup MSMTP
|
||||||
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
usermod --comment "$(echo "$SITENAME" | tr -dc '[:print:]')" root
|
||||||
|
@ -24,11 +24,11 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
|
||||||
{
|
{
|
||||||
echo "account default"
|
echo "account default"
|
||||||
echo "host $SMTP"
|
echo "host $SMTP"
|
||||||
if [ -n "${SMTP_PORT+x}" ]; then echo "port $SMTP_PORT"; else echo "port 587"; fi
|
echo "port $smtp_port"
|
||||||
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
echo "from \"$smtp_from@$SMTP_DOMAIN\""
|
||||||
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
|
echo "tls $smtp_tls"
|
||||||
echo "tls_starttls $smtp_starttls";
|
if [ -n "${SMTP_STARTTLS+x}" ]; then echo "tls_starttls $SMTP_STARTTLS"; elif [ $smtp_port = "465" ]; then echo "tls_starttls off"; else echo "tls_starttls on"; fi
|
||||||
if [ -n "${SMTP_AUTH_USER+x}" ]; then echo "auth $smtp_auth"; 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
|
||||||
|
|
Loading…
Reference in a new issue