From 6273790a63699ad7fe5554e54fb84d248281a425 Mon Sep 17 00:00:00 2001 From: grenagit <46225780+grenagit@users.noreply.github.com> Date: Sun, 31 Jan 2021 10:15:32 +0100 Subject: [PATCH] Update main.cf --- data/templates/postfix/main.cf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/templates/postfix/main.cf b/data/templates/postfix/main.cf index 13781881f..cdf6aaf96 100644 --- a/data/templates/postfix/main.cf +++ b/data/templates/postfix/main.cf @@ -54,7 +54,12 @@ smtpd_tls_loglevel=1 # -- TLS for outgoing connections # Use TLS if this is supported by the remote SMTP server, otherwise use plaintext. +{% if relay_port == "465" %} +smtp_tls_wrappermode = yes +smtp_tls_security_level = encrypt +{% else %} smtp_tls_security_level = may +{% endif %} smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_tls_exclude_ciphers = aNULL, MD5, DES, ADH, RC4, 3DES smtp_tls_mandatory_ciphers= high