summaryrefslogtreecommitdiffstats
path: root/roles/out
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-07-09 23:46:21 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-07-10 01:07:39 +0200
commitb441dd4a7c3ce72008968d324a12e5c342d164a3 (patch)
tree8375a25dfb8a91d3d16cf426851cd1049bb508b3 /roles/out
parent418b3303f17776e64341f990d13e98ce6f662bf5 (diff)
Route SMTP traffic from the webmail through IPsec.
Diffstat (limited to 'roles/out')
-rw-r--r--roles/out/templates/etc/postfix/main.cf.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/out/templates/etc/postfix/main.cf.j2 b/roles/out/templates/etc/postfix/main.cf.j2
index ddd46d5..34ac84e 100644
--- a/roles/out/templates/etc/postfix/main.cf.j2
+++ b/roles/out/templates/etc/postfix/main.cf.j2
@@ -27,8 +27,11 @@ multi_instance_group = {{ postfix_instance[inst].group | default('') }}
multi_instance_name = postfix-{{ postfix_instance[inst].name }}
multi_instance_enable = yes
-mynetworks_style = host
-inet_interfaces = all
+mynetworks = 127.0.0.0/8, [::1]/128
+{%- if groups.all | length > 1 -%}
+ , {{ ipsec_subnet }}
+{% endif %}
+inet_interfaces = all
# No local delivery
mydestination =