Commit 58d3e727 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

postfix: add configuration variable for my_networks

parent 496917d4
...@@ -41,3 +41,5 @@ postfix_transport_maps: [] ...@@ -41,3 +41,5 @@ postfix_transport_maps: []
# port: 2025 # port: 2025
# protocol: smtp # protocol: smtp
# use_mx: true # use_mx: true
postfix_my_networks: []
...@@ -5,7 +5,7 @@ inet_protocols = all ...@@ -5,7 +5,7 @@ inet_protocols = all
myhostname = {{ ansible_fqdn }} myhostname = {{ ansible_fqdn }}
myorigin = /etc/mailname myorigin = /etc/mailname
mydestination = $myhostname localhost {{ postfix_domains | join(" ") }} mydestination = $myhostname localhost {{ postfix_domains | join(" ") }}
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 {{ postfix_my_networks|join(" ") }}
relayhost = {{ postfix_relay_host }} relayhost = {{ postfix_relay_host }}
{% if postfix_transport_maps|bool %} {% if postfix_transport_maps|bool %}
transport_maps = cdb:/etc/postfix/transport transport_maps = cdb:/etc/postfix/transport
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment