From 96fb3a84dce24eca02010da893a92621da1f9ba6 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 13 Apr 2016 08:59:45 +0200 Subject: [PATCH] Allow mail relay from trusted servers, enable ipv6. --- group_vars/all | 1 + roles/mail/templates/postfix/main.cf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/group_vars/all b/group_vars/all index 62bddc4..2774a0a 100644 --- a/group_vars/all +++ b/group_vars/all @@ -20,6 +20,7 @@ mail_domains: - ccc-regensburg.de mail_server: mail.binary-kitchen.de mailman_domain: lists.binary-kitchen.de +mail_trusted: 213.166.246.0/28 2a02:958:0:f6::/124 mail_aliases: - "info@binary-kitchen.de vorstand@binary-kitchen.de" - "lebercast@binary-kitchen.de anti@binary-kitchen.de,dragonchaser@binary-kitchen.de,moepman@binary-kitchen.de,philmacfly@binary-kitchen.de,ralf@binary-kitchen.de" diff --git a/roles/mail/templates/postfix/main.cf.j2 b/roles/mail/templates/postfix/main.cf.j2 index 6e4839b..79ff6b0 100644 --- a/roles/mail/templates/postfix/main.cf.j2 +++ b/roles/mail/templates/postfix/main.cf.j2 @@ -12,7 +12,7 @@ append_dot_mydomain = no readme_directory = no inet_interfaces = all -inet_protocols = ipv4 +inet_protocols = all message_size_limit = 50000000 recipient_delimiter = + @@ -21,7 +21,7 @@ mydomain = {{ mail_domain }} myhostname = {{ ansible_fqdn }} myorigin = {{ ansible_fqdn }} mydestination = localhost.{{ mail_domain }}, localhost -mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 +mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 {{ mail_trusted }} alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases