diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2017-06-01 19:12:37 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2017-06-02 10:03:45 +0200 |
commit | 22aca135a5d1658b0d753e85cc7db8342fd96730 (patch) | |
tree | 1aa445756594ce68b20edb5e29ca03fcd0769a5f /roles/MSA/templates/etc | |
parent | 8cfd584400a9852c4bd7c4b3d50ff0cacc8ec019 (diff) |
postfix: don't rate-limit our IPsec subnet.
Diffstat (limited to 'roles/MSA/templates/etc')
-rw-r--r-- | roles/MSA/templates/etc/postfix/main.cf.j2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/MSA/templates/etc/postfix/main.cf.j2 b/roles/MSA/templates/etc/postfix/main.cf.j2 index ec6b242..45a47c6 100644 --- a/roles/MSA/templates/etc/postfix/main.cf.j2 +++ b/roles/MSA/templates/etc/postfix/main.cf.j2 @@ -17,7 +17,10 @@ myhostname = smtp{{ msano | default('') }}.$mydomain mydomain = fripost.org append_dot_mydomain = no -mynetworks_style = host +mynetworks = 127.0.0.0/8, [::1]/128 +{%- for h in groups.webmail | difference([inventory_hostname]) | sort -%} + , {{ ipsec[ hostvars[h].inventory_hostname_short ] | ipaddr }} +{% endfor %} queue_directory = /var/spool/postfix-{{ postfix_instance[inst].name }} data_directory = /var/lib/postfix-{{ postfix_instance[inst].name }} |