configpolicy/roles/postfix/templates/sasl_passwd.j2

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 %}