X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8909cde8cf1e6825af4c727931f5030702366a11..b3b90ac434a01ab3f6eec2fa0650d2a9d210eded:/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..a00aefd8c 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -657,6 +657,7 @@ begin transports remote_smtp: driver = smtp + multi_domain = false # This transport is used for handling pipe deliveries generated by alias or @@ -775,7 +776,7 @@ begin retry # There are no rewriting specifications in this default configuration file. begin rewrite -*@<%= node[:fqdn] %> $1@openstreetmap.org Eh +*@<%= node[:fqdn] %> "${if !match {${lookup{$1}lsearch{/etc/aliases}{$value}}}{@} {$1@openstreetmap.org}fail}" Eh <% node[:exim][:rewrites].each do |rewrite| -%> <%= rewrite[:pattern] %> <%= rewrite[:replacement] %> <%= rewrite[:flags] %> <% end -%>