From: Tom Hughes Date: Sat, 4 Mar 2023 12:26:20 +0000 (+0000) Subject: Allow all mail relays to relay from any host X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2012763fa907ef6b75ac6d3272f698846e9ecce4?hp=9bb700cfe792fea35319206696cf4764a19c8f5a Allow all mail relays to relay from any host --- diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index 30617cc8e..8c61b2da1 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -85,7 +85,7 @@ end relay_from_hosts = node[:exim][:relay_from_hosts] if node[:exim][:smarthost_name] - search(:node, "exim_smarthost_via:#{node[:exim][:smarthost_name]}\\:*").each do |host| + search(:node, "exim_smarthost_via:*?").each do |host| relay_from_hosts |= host.ipaddresses(:role => :external) end diff --git a/roles/mail.rb b/roles/mail.rb index 9e3f9bdc9..a96a200a8 100644 --- a/roles/mail.rb +++ b/roles/mail.rb @@ -29,7 +29,7 @@ default_attributes( :queue_run_max => 25, :smtp_accept_max => 200, :smarthost_name => "mail.openstreetmap.org", - :smarthost_via => false, + :smarthost_via => nil, :dns_blacklists => ["zen.spamhaus.org!&0.255.255.0"], :routes => { :messages => {