Lookups: ret=key option
[exim.git] / test / confs / 2501
index b485b010290af56675785a7314006725d5bcfd0a..61bf7383bc7140699fc1ee25dc0163acf762e46f 100644 (file)
@@ -14,10 +14,17 @@ domainlist local_domains = dsearch;DIR/aux-fixed/TESTNUM.domains
 begin routers
 
 r1:
-  driver = accept
-  domains = +local_domains
-  transport = t1
-
+  driver =     accept
+  domains =    +local_domains
+  transport =  t1
+
+virtual:
+  driver =     redirect
+  domains =    *.virt.test.ex
+  address_data = ${lookup {TESTNUM.alias.${extract {1}{.}{$domain}}} \
+                       dsearch{DIR/aux-fixed} {$value}fail}
+  data =       ${lookup{$local_part}lsearch{DIR/aux-fixed/$address_data}}
+  no_more
 
 # ------ Transports ------