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:
2018-04-15 11:37:25 -05:00
parent e8d670c2bf
commit c5abee997e
6 changed files with 809 additions and 0 deletions

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