|
|
|
@ -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 |
|
|
|
|