From 6bc21869129b37b7c4fbd3d63a5338fb770e3a58 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 26 Jan 2024 19:45:53 +0000 Subject: [PATCH] postfix: set tls_preempt_cipherlist --- cmdeploy/src/cmdeploy/postfix/main.cf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 index 690cc661..e5a02dd9 100644 --- a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 +++ b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 @@ -26,6 +26,14 @@ smtp_tls_policy_maps = socketmap:inet:127.0.0.1:8461:postfix smtpd_tls_protocols = >=TLSv1.2 smtpd_tls_exclude_ciphers = ECDHE-RSA-RC4-SHA, RC4, aNULL, DES-CBC3-SHA, ECDHE-RSA-DES-CBC3-SHA, EDH-RSA-DES-CBC3-SHA +# Override client's preference order. +# +# +# This is mostly to ensure cipher suites with forward secrecy +# are preferred over non cipher suites without forward secrecy. +# See . +tls_preempt_cipherlist = yes + smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = {{ config.mail_domain }} alias_maps = hash:/etc/aliases