From 5384acd90d9405a70c89b1b266e1df6c4a12613b Mon Sep 17 00:00:00 2001 From: Jim Circadian Date: Sun, 11 Oct 2020 01:05:19 +0100 Subject: [PATCH] Allow direct delivery to internet with TLS --- templates/main.cf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 33e2b4c..4c0afa4 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -58,10 +58,10 @@ relayhost = [{{ postfix_relayhost }}]:{{ postfix_relayhost_port }} smtp_sasl_auth_enable = {{ 'yes' if postfix_sasl_auth_enable else 'no' }} smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = {{ postfix_sasl_security_options }} +{% endif %} +{% endif %} {% if postfix_relaytls %} smtp_use_tls = yes smtp_tls_security_level = encrypt smtp_tls_note_starttls_offer = yes {% endif %} -{% endif %} -{% endif %} \ No newline at end of file