bundles/postfix: allow configuring mynetworks
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-03-15 11:41:35 +01:00
parent 52cab71fec
commit 3fcd81960e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 14 additions and 2 deletions

View file

@ -6,7 +6,7 @@ compatibility_level = 2
myhostname = ${node.metadata.get('postfix/myhostname', node.metadata['hostname'])}
myorigin = /etc/mailname
mydestination = $myhostname, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = ${' '.join(sorted(node.metadata.get('postfix/mynetworks')))}
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = all
@ -18,7 +18,7 @@ alias_maps = hash:/etc/aliases
relayhost = ${node.metadata['postfix']['relayhost']}
% endif
% if node.has_bundle('postfixadmin'):
% if node.has_bundle('postfixadmin') or node.has_bundle('iptables'):
inet_interfaces = all
% else:
inet_interfaces = 127.0.0.1