diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-04-04 16:20:03 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-06-09 00:29:09 +0200 |
commit | 4a841439606768e8b8783f4a1bd32096a7bbcd9c (patch) | |
tree | 4f193ca90e8446daf8ff2a9a5402b4c17535bcf5 /group_vars/all.yml | |
parent | 3e41d6be4551f9f5b995e892d0103112a47df86c (diff) |
Harden anti spam on the MX:es.
Diffstat (limited to 'group_vars/all.yml')
-rw-r--r-- | group_vars/all.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml index 236527e..0406a7e 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -18,32 +18,32 @@ ipsec: elefant: 172.16.0.4 giraff: 172.16.0.5 mistral: 172.16.0.6 postfix_instance: # The keys are the group names associated with a Postfix role, and the # values are the name and group (optional) of the instance dedicated # to that role. # For internal services, we also specify its (non-routable) IP address # and port. # XXX it's unfortunate that we can only specify a single address, and # therefore have to limit the number of outgoing SMTP proxy and # IMAP server to one. Since hosts(5) files cannot map and IP # address to multiple hostnames, a workaround would be to use # round-robin DNS, but we can't rely on DNS as long as our zone is # unsigned. IMAP: { name: mda , addr: "{{ (groups.all | length > 1) | ternary( ipsec[ hostvars[groups.IMAP[0]].inventory_hostname_short ], '127.0.0.1') }}" , port: 2526 } - MX: { name: mx, group: mta, backup: mx3.fripost.org } + MX: { name: mx, group: mta } out: { name: out, group: mta , addr: "{{ (groups.all | length > 1) | ternary( ipsec[ hostvars[groups.out[0]].inventory_hostname_short ], '127.0.0.1') }}" , port: 2525 } MSA: { name: msa , addr: "{{ (groups.all | length > 1) | ternary( ipsec[ hostvars[groups.MSA[0]].inventory_hostname_short ], '127.0.0.1') }}" , port: 2587 } lists: { name: lists , addr: "{{ (groups.all | length > 1) | ternary( ipsec[ hostvars[groups.lists[0]].inventory_hostname_short ], '127.0.0.1') }}" , port: 2527 } imapsvr_addr: "{{ postfix_instance.IMAP.addr | ipaddr }}" |