Skip to content

Commit cb2d03f

Browse files
committed
Use opportunistic TLS for receiving emails
1 parent ef8fbad commit cb2d03f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

kolombo/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.1"
1+
__version__ = "0.4.0"

kolombo/docker/receiver/postfix.conf

+5-3
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ tls_ssl_options = NO_COMPRESSION, NO_RENEGOTIATION
5252
tls_high_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256
5353
tls_preempt_cipherlist = yes
5454
smtpd_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
55-
smtp_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
5655
smtpd_tls_mandatory_ciphers = high
5756
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
5857
smtpd_tls_exclude_ciphers = aNULL, SEED, CAMELLIA, RSA+AES
59-
smtp_tls_security_level = encrypt
60-
smtpd_tls_security_level = encrypt
58+
# Add TLS info to Received-header
59+
smtpd_tls_received_header = yes
60+
# Use opportunistic TLS to make sure most of emails are delivered
61+
# even when sender's server do not support TLS for some reason in 21th century
62+
smtpd_tls_security_level = may
6163
# Use generated self-signed cert files by default
6264
smtpd_tls_cert_file = /etc/postfix/tls.crt
6365
smtpd_tls_key_file = /etc/postfix/tls.key

kolombo/docker/sender/postfix.conf

+1
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ append_dot_mydomain = no
3939
smtp_tls_security_level = may
4040
smtp_tls_ciphers = medium
4141
smtp_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
42+
smtp_tls_session_cache_database = lmdb:${data_directory}/smtp_scache

0 commit comments

Comments
 (0)