diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2 index 477190c5..cf430e2c 100644 --- a/iptables/templates/iptables-rules.v4.j2 +++ b/iptables/templates/iptables-rules.v4.j2 @@ -165,7 +165,7 @@ {% endif %} {% endif %} -{% if postfix_relay_server is defined and postfix_relay_server %} +{% if postfix_relay_server %} # # These are only needed on the machines that act as relay servers # @@ -179,7 +179,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 %} -{% if postfix_relay_server is defined and not postfix_relay_server %} +{% if not postfix_relay_server %} # # 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