From a888dfa023ec5942507d12314eeaa8be8448f772 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Sat, 2 Aug 2025 13:54:34 +0200 Subject: [PATCH] fix: remove deprecated configuration from Postfix Error as posted by Postfix: ```txt postconf: warning: /etc/postfix/main.cf: support for parameter "smtpd_tls_dh1024_param_file" will be removed; instead, do not specify (leave at default) ``` Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- Dockerfile | 1 - target/postfix/main.cf | 1 - target/scripts/startup/setup.d/postfix.sh | 3 --- 3 files changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4064e4d7..fc91b11b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -190,7 +190,6 @@ COPY target/postfix/main.cf target/postfix/master.cf /etc/postfix/ # DH parameters for DHE cipher suites, ffdhe4096 is the official standard 4096-bit DH params now part of TLS 1.3 # This file is for TLS <1.3 handshakes that rely on DHE cipher suites # Handled at build to avoid failures by doveadm validating ssl_dh filepath in 10-ssl.auth (eg generate-accounts) -COPY target/shared/ffdhe4096.pem /etc/postfix/dhparams.pem COPY target/shared/ffdhe4096.pem /etc/dovecot/dh.pem COPY \ diff --git a/target/postfix/main.cf b/target/postfix/main.cf index 518e2dc5..569dc1a9 100644 --- a/target/postfix/main.cf +++ b/target/postfix/main.cf @@ -45,7 +45,6 @@ smtp_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1 smtpd_tls_mandatory_ciphers = high smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1 smtpd_tls_exclude_ciphers = aNULL, SEED, CAMELLIA, RSA+AES, SHA1 -smtpd_tls_dh1024_param_file = /etc/postfix/dhparams.pem smtpd_tls_CApath = /etc/ssl/certs smtp_tls_CApath = /etc/ssl/certs diff --git a/target/scripts/startup/setup.d/postfix.sh b/target/scripts/startup/setup.d/postfix.sh index ac9c23e7..eaa29273 100644 --- a/target/scripts/startup/setup.d/postfix.sh +++ b/target/scripts/startup/setup.d/postfix.sh @@ -49,9 +49,6 @@ EOF __postfix__log 'trace' 'Setting up Postfix vhost' _create_postfix_vhost - __postfix__log 'trace' 'Setting up DH Parameters' - _setup_dhparam 'Postfix' '/etc/postfix/dhparams.pem' - __postfix__log 'trace' "Configuring message size limit to '${POSTFIX_MESSAGE_SIZE_LIMIT}'" postconf "message_size_limit = ${POSTFIX_MESSAGE_SIZE_LIMIT}"