From 1a09d1f78d657d84eb9ab718aa48823c5f141e14 Mon Sep 17 00:00:00 2001 From: Antoine DUPRAT Date: Thu, 21 Oct 2021 10:45:16 +0200 Subject: [PATCH 1/3] Upgrade base image to latest Ubuntu --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5395bf5..c1c039f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -From ubuntu:trusty +From ubuntu:latest MAINTAINER Elliott Ye # Set noninteractive mode for apt-get From 53293484f833fac748163c48c5cb1a8592abed6d Mon Sep 17 00:00:00 2001 From: Antoine DUPRAT Date: Thu, 21 Oct 2021 10:46:48 +0200 Subject: [PATCH 2/3] Add logs for TLS negotiation --- assets/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/install.sh b/assets/install.sh index 0b2aaff..bcc3ec9 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -58,6 +58,7 @@ if [[ -n "$(find /etc/postfix/certs -iname *.crt)" && -n "$(find /etc/postfix/ce # /etc/postfix/main.cf postconf -e smtpd_tls_cert_file=$(find /etc/postfix/certs -iname *.crt) postconf -e smtpd_tls_key_file=$(find /etc/postfix/certs -iname *.key) + postconf -e smtpd_tls_loglevel=2 chmod 400 /etc/postfix/certs/*.* # /etc/postfix/master.cf postconf -M submission/inet="submission inet n - n - - smtpd" From 2c58370f3ef5c4599625a44c4fe32a38b105ea7c Mon Sep 17 00:00:00 2001 From: Antoine DUPRAT Date: Thu, 21 Oct 2021 11:03:03 +0200 Subject: [PATCH 3/3] Turn off unknown local recipient --- assets/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/install.sh b/assets/install.sh index bcc3ec9..140222a 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -27,6 +27,7 @@ tail -f /var/log/mail.log EOF chmod +x /opt/postfix.sh postconf -e myhostname=$maildomain +postconf -e local_recipient_maps= postconf -F '*/*/chroot = n' ############