From 34984f3376bb9616c7cb2ed6b1416165413c8d4c Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 18 Apr 2010 15:45:20 +0100 Subject: [PATCH] Revert "It turns out we shouldn't need this router at all, as it's handled by" This reverts commit 889b52d75f079f60521a09c734da0def4d91052f. --- modules/exim/templates/eximconf.erb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index d640d94ee..8290c4435 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -1397,6 +1397,26 @@ virt_direct: user = ${extract{user}{VDOMAINDATA}} #debug_print = .forward-${if exists {${home}/.forward-${local_part}} {${local_part}} {default}} +# This router delivers to the LDAP generated mail-forward file. +# It's only really useful for debian.org +virt_users: + debug_print = "R: virt_users for $local_part@$domain" + driver = redirect + allow_defer + allow_fail + router_home_directory = ${extract{directory}{VDOMAINDATA}} + transport_current_directory = ${extract{directory}{VDOMAINDATA}} + user = ${extract{user}{VDOMAINDATA}} + group = ${extract{group}{VDOMAINDATA}} + data = ${if exists{${extract{directory}{VDOMAINDATA}{${value}/mail-forward.cdb}}}\ + {${lookup{$local_part}cdb\ + {${extract{directory}{VDOMAINDATA}{${value}/mail-forward.cdb}}}}}} + domains = +virtual_domains + file_transport = address_file + headers_add = "Delivered-To: ${local_part}${local_part_suffix}@${domain}" + pipe_transport = address_pipe + retry_use_local_part + ###################################################################### # TRANSPORTS CONFIGURATION # ###################################################################### -- 2.20.1