From df2f74870c5338e94864f43891697fb4b2868304 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 3 Aug 2019 15:40:13 +0000 Subject: [PATCH] Log TLS information at each connection This is handy to verify wether a given mail was sent encrypted. --- postfix/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postfix/Dockerfile b/postfix/Dockerfile index 188fb80..cf86150 100644 --- a/postfix/Dockerfile +++ b/postfix/Dockerfile @@ -27,7 +27,7 @@ RUN echo '' > /etc/postfix/main.cf \ && postconf -e recipient_delimiter='+' \ && postconf -e smtpd_banner='$myhostname ESMTP $mail_name' \ && postconf -e smtpd_use_tls='yes' \ - && postconf -e smtpd_tls_loglevel='0' \ + && postconf -e smtpd_tls_loglevel='1' \ && postconf -e smtpd_tls_key_file='/tls/privkey' \ && postconf -e smtpd_tls_cert_file='/tls/fullchain' \ && postconf -e smtpd_tls_security_level='may' \ @@ -38,6 +38,7 @@ RUN echo '' > /etc/postfix/main.cf \ && postconf -e smtpd_tls_exclude_ciphers='aNULL' \ && postconf -e smtpd_tls_dh1024_param_file='/etc/postfix/dh-params/2048.pem' \ && postconf -e smtpd_tls_eecdh_grade='strong' \ + && postconf -e smtp_tls_loglevel='1' \ && postconf -e smtp_tls_security_level='may' \ && postconf -e smtp_tls_mandatory_ciphers='medium' \ && postconf -e tls_preempt_cipherlist='yes' \