Only add a domein to relay_to_domains if we are really relaying to it
authorTom Hughes <tom@compton.nu>
Fri, 24 Oct 2014 16:44:02 +0000 (17:44 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 24 Oct 2014 16:44:02 +0000 (17:44 +0100)
cookbooks/exim/recipes/default.rb

index 06bc085..1e333b4 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]