roles/postfix: Deploy Postfix MTA
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.
This commit is contained in:
5
roles/postfix/templates/sasl_passwd.j2
Normal file
5
roles/postfix/templates/sasl_passwd.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user