add port option and fix static value
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-06-18 09:21:37 +02:00
parent c85b030352
commit da70c4bb76
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
---
postfix_relay_sasl_host: smtp.gmail.com
postfix_relay_sasl_port: 587
postfix_relay_sasl_user: user
postfix_relay_sasl_domain: gmail.com
postfix_relay_sasl_passwd: secure

View File

@ -325,7 +325,7 @@ mynetworks = 127.0.0.1
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
relayhost = [hamal.uberspace.de]:587
relayhost = [{{ postfix_relay_sasl_host }}]:{{ postfix_relay_sasl_port }}
# REJECTING UNKNOWN RELAY USERS
#

View File

@ -1,3 +1,3 @@
# {{ ansible_managed }}
{{ postfix_relay_sasl_host }} {{ postfix_relay_sasl_user }}@{{ postfix_relay_sasl_domain }}:{{ postfix_relay_sasl_passwd }}
[{{ postfix_relay_sasl_host }}]:{{ postfix_relay_sasl_port }} {{ postfix_relay_sasl_user }}@{{ postfix_relay_sasl_domain }}:{{ postfix_relay_sasl_passwd }}