]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/exim/templates/default/exim4.conf.erb
Don't share the same connection for multiple email domains
[chef.git] / cookbooks / exim / templates / default / exim4.conf.erb
index 939b2abcd4e48749c41007e1d39de6989e9da72f..a00aefd8c05230d96d6830c7df5196c6695c8390 100644 (file)
@@ -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 E
+*@<%= 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 -%>