end
end
-if node[:exim][:smarthost_via]
- firewall_rule "deny-outbound-smtp" do
- action :reject
- source "fw"
- dest "net"
- proto "tcp:syn"
- dest_ports "smtp"
- 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] }
end