The *postfix* role installs and configures the Postfix MTA. It currently supports a number of modes, including direct transfer and relay. Relay mode supports STARTTLS security and PLAIN authentication.
6 lines
202 B
Django/Jinja
6 lines
202 B
Django/Jinja
{% if smtp.mode == 'relay' %}
|
|
{% if smtp.auth|d('none') != 'none' and smtp.username is defined %}
|
|
[{{ smtp.host }}]:{{ smtp.port|d(25) }} {{ smtp.username }}:{{ smtp.password }}
|
|
{% endif %}
|
|
{% endif %}
|