added support for custom mydomain
This commit is contained in:
parent
e2bbc1db5e
commit
68526bcbfc
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||||
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
||||||
|
|
||||||
myhostname = {{ inventory_hostname }}
|
myhostname = {{ inventory_hostname }}
|
||||||
mydomain = {{ ansible_domain }}
|
mydomain = {{ postfix.mydomain|d(ansible_domain) }}
|
||||||
myorigin = $mydomain
|
myorigin = $mydomain
|
||||||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 {{ postfix.mynetworks|d([])|join(' ') }}
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 {{ postfix.mynetworks|d([])|join(' ') }}
|
||||||
mydestination = {{ inventory_hostname_short }} {{ inventory_hostname }} localhost {{ postfix.mydestination|d([])|join(' ') }}
|
mydestination = {{ inventory_hostname_short }} {{ inventory_hostname }} localhost {{ postfix.mydestination|d([])|join(' ') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue