mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Force encrypt if we are using an smtp relay
Thanks to @khimaros for this suggestion
This commit is contained in:
parent
a5ecf52c30
commit
ce9689e0ef
1 changed files with 5 additions and 1 deletions
|
@ -52,8 +52,12 @@ smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
|||
smtpd_tls_loglevel=1
|
||||
|
||||
# -- TLS for outgoing connections
|
||||
{% if smtp_relayhost %}
|
||||
smtp_tls_security_level = encrypt
|
||||
{% else %}
|
||||
# Use TLS if this is supported by the remote SMTP server, otherwise use plaintext.
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue