]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/exim/recipes/default.rb
Only add a domein to relay_to_domains if we are really relaying to it
[chef.git] / cookbooks / exim / recipes / default.rb
index 06bc08540733da1397f06e95ef333b39b54a4693..1e333b42cc34ac39f72fe0989d78260fc381b8cd 100644 (file)
@@ -60,7 +60,7 @@ end
 relay_to_domains = node[:exim][:relay_to_domains]
 
 node[:exim][:routes].each_value do |route|
-  relay_to_domains = relay_to_domains | route[:domains]
+  relay_to_domains = relay_to_domains | route[:domains] if route[:host]
 end
 
 relay_from_hosts = node[:exim][:relay_from_hosts]