X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ea0715b4be41a1d1600bba7a1f5d0b988708579f..a31229e5ab1291d79d14ac9bf4ad210db4895cea:/cookbooks/exim/recipes/default.rb diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index 099e047c6..1bbd084ee 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -144,11 +144,12 @@ else end end -firewall_rule "deny-outbound-smtp" do - action :reject - source "fw" - dest "net" - proto "tcp:syn" - dest_ports "smtp" - only_if { node[:exim][:smarthost_via] } +if node[:exim][:smarthost_via] # ~FC023 + firewall_rule "deny-outbound-smtp" do + action :reject + source "fw" + dest "net" + proto "tcp:syn" + dest_ports "smtp" + end end