]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/exim/templates/default/exim4.conf.erb
Don't rewrite addresses that are in the aliases file
[chef.git] / cookbooks / exim / templates / default / exim4.conf.erb
index d990c061b494f6c5900661f6fe8c1de6dfbc2340..9e285bcf6110336dafb99b1bc1989717c41cbee9 100644 (file)
@@ -775,6 +775,7 @@ begin retry
 # There are no rewriting specifications in this default configuration file.
 
 begin rewrite
+*@<%= 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 -%>