Update to 2020-05-19 16:00

master
Daniel Berteaud 5 years ago
parent 2a002a40d3
commit ec1b1ece11
  1. 2
      roles/postfix/defaults/main.yml
  2. 6
      roles/postfix/templates/main.cf.j2

@ -7,7 +7,7 @@
# postfix_relay_host: 'smtp.example.com'
# postfix_relay_user: 'account'
# postfix_relay_pass: 'p@ssw0rd'
# postfix_relay_use_tls: true
# postfix_relay_transport: plain | tls | starttls (default is starttls)
# postfix_relay_ca_path: '/etc/pki/tls/certs'
#
# If set, outgoing email will be rewritten

@ -33,8 +33,12 @@ relayhost = {{ postfix_relay_host }}
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_auth
{% endif %}
{% if postfix_relay_use_tls | default(True) %}
{% if postfix_relay_transport | default('starttls') == 'starttls' or postfix_relay_transport | default('starttls') == 'tls' %}
{% if postfix_relay_transport | default('starttls') == 'starttls' %}
smtp_use_tls = yes
{% elif postfix_relay_transport | default('starttls') == 'tls' %}
smtp_tls_wrappermode = yes
{% endif %}
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes

Loading…
Cancel
Save