From cea40a56f39360ab342c3bfb1533e13c661596cd Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Sun, 5 Mar 2023 15:34:40 +0000 Subject: [PATCH] Make msmtp log to stdout to not show permission denied message --- 2023.01/apache/setup_msmtp.sh | 2 +- 2023.01/fpm-alpine/setup_msmtp.sh | 2 +- 2023.01/fpm/setup_msmtp.sh | 2 +- 2023.03-dev/apache/setup_msmtp.sh | 2 +- 2023.03-dev/fpm-alpine/setup_msmtp.sh | 2 +- 2023.03-dev/fpm/setup_msmtp.sh | 2 +- docker-setup_msmtp.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/2023.01/apache/setup_msmtp.sh b/2023.01/apache/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.01/apache/setup_msmtp.sh +++ b/2023.01/apache/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/2023.01/fpm-alpine/setup_msmtp.sh b/2023.01/fpm-alpine/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.01/fpm-alpine/setup_msmtp.sh +++ b/2023.01/fpm-alpine/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/2023.01/fpm/setup_msmtp.sh b/2023.01/fpm/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.01/fpm/setup_msmtp.sh +++ b/2023.01/fpm/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/2023.03-dev/apache/setup_msmtp.sh b/2023.03-dev/apache/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.03-dev/apache/setup_msmtp.sh +++ b/2023.03-dev/apache/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/2023.03-dev/fpm-alpine/setup_msmtp.sh b/2023.03-dev/fpm-alpine/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.03-dev/fpm-alpine/setup_msmtp.sh +++ b/2023.03-dev/fpm-alpine/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/2023.03-dev/fpm/setup_msmtp.sh b/2023.03-dev/fpm/setup_msmtp.sh index b90c42c..654883c 100644 --- a/2023.03-dev/fpm/setup_msmtp.sh +++ b/2023.03-dev/fpm/setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc diff --git a/docker-setup_msmtp.sh b/docker-setup_msmtp.sh index b90c42c..654883c 100644 --- a/docker-setup_msmtp.sh +++ b/docker-setup_msmtp.sh @@ -30,7 +30,7 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost" 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_PASS+x}" ]; then echo "password \"$SMTP_AUTH_PASS\""; fi - echo "logfile /var/log/msmtp.log" + echo "logfile -" echo "aliases /etc/aliases" } >/etc/msmtprc