diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-07-09 23:46:21 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-07-10 01:07:39 +0200 |
commit | b441dd4a7c3ce72008968d324a12e5c342d164a3 (patch) | |
tree | 8375a25dfb8a91d3d16cf426851cd1049bb508b3 /roles/out/templates/etc | |
parent | 418b3303f17776e64341f990d13e98ce6f662bf5 (diff) |
Route SMTP traffic from the webmail through IPsec.
Diffstat (limited to 'roles/out/templates/etc')
-rw-r--r-- | roles/out/templates/etc/postfix/main.cf.j2 | 7 |
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 = |