diff --git a/data/templates/postfix/main.cf b/data/templates/postfix/main.cf index 43151e672..4d27498c4 100644 --- a/data/templates/postfix/main.cf +++ b/data/templates/postfix/main.cf @@ -52,7 +52,7 @@ smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_tls_loglevel=1 # -- TLS for outgoing connections -{% if smtp_relayhost %} +{% if relay_host != "" %} smtp_tls_security_level = encrypt {% else %} # Use TLS if this is supported by the remote SMTP server, otherwise use plaintext.