X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/33243121ffc92f08550c263963a13707bcf8aed8..898c9c328b4a83f6595fc247a0af343c11aca83d:/cookbooks/exim/templates/default/exim4.conf.erb diff --git a/cookbooks/exim/templates/default/exim4.conf.erb b/cookbooks/exim/templates/default/exim4.conf.erb index fa3346824..9e285bcf6 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -775,7 +775,7 @@ begin retry # There are no rewriting specifications in this default configuration file. begin rewrite -*@<%= node[:fqdn] %> $1@openstreetmap.org Eh +*@<%= node[:fqdn] %> "${if eq {${lookup{$1}lsearch{/etc/aliases}{yes}{no}}}{no} {$1@openstreetmap.org}fail}" Eh <% node[:exim][:rewrites].each do |rewrite| -%> <%= rewrite[:pattern] %> <%= rewrite[:replacement] %> <%= rewrite[:flags] %> <% end -%>