From 7b9a6f52ca9e47854faa4ff313ee7a0571659e9c Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 16 Feb 2026 14:38:21 +0100 Subject: [PATCH] install_postfix_advanced.sh: add support for parameter 'smtpd_tls_eccert_file'. --- install_postfix_advanced.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index 832970c..37d1cd0 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -2146,9 +2146,24 @@ smtp_tls_security_level=dane smtpd_tls_loglevel = 1 smtp_tls_loglevel = 1 + +# TLS RSA keys path smtpd_tls_cert_file = $_TLS_CERT_FILE smtpd_tls_key_file = $_TLS_KEY_FILE +EOF + +if [[ -f "/etc/postfix/ssl/mailserver-ecdsa.crt" && + -f "/etc/postfix/ssl/mailserver-ecdsa.key" ]] ; then + cat <> /etc/postfix/main.cf +# TLS ECDSA keys path +smtpd_tls_eccert_file = /etc/postfix/ssl/mailserver-ecdsa.crt +smtpd_tls_eckey_file = /etc/postfix/ssl/mailserver-ecdsa.key + +EOF +fi + +cat <> /etc/postfix/main.cf ## - File with DH parameters that the Postfix SMTP server should use with EDH ciphers. ## -