From 478dba36c08707e87e7f272a3f7246b513a1ed48 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 12 Oct 2015 11:13:53 +0200 Subject: [PATCH] dnet-openaire/group_vars/parthenos_mapping_dev/mapping.yml: Do not setup the SMTP relay iptables rules --- iptables/templates/iptables-rules.v4.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2 index cf430e2c..63c099d6 100644 --- a/iptables/templates/iptables-rules.v4.j2 +++ b/iptables/templates/iptables-rules.v4.j2 @@ -180,6 +180,7 @@ -A OUTPUT -p tcp -m multiport --dports 25,587,465 -j DROP {% endif %} {% if not postfix_relay_server %} +{% if postfix_relay_client %} # # When we are not a relay server but we want send email using our relay -A OUTPUT -p tcp -m multiport --dports 25,587,465 -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT @@ -187,6 +188,7 @@ -A OUTPUT -p tcp -m multiport --dports 25,587,465 -m state --state NEW -j LOG --log-prefix "LOCAL_DROPPED_SPAM " --log-uid -A OUTPUT -p tcp -m multiport --dports 25,587,465 -j DROP {% endif %} +{% endif %} {% if iptables is defined %} {% if iptables.tcp_rules is defined and iptables.tcp_rules %}