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 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]