--- /dev/null
+yes: aliased@okdomain
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}}
+ address_data = ${if match{$domain}{^(.*)\\.virt\\.test\\.ex\$}{${bless:$1}}}
+ data = ${if exists{DIR/aux-fixed/TESTNUM.alias.$address_data} \
+ {${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias.$address_data}}} \
+ fail}
no_more
list:
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 ------
2
exim -bt xxx@okdomain yyy@notokdomain zzz@dom/mod
****
+2
+exim -bv yes@exists.virt.test.ex no@exists.virt.test.ex xx@notexists.virt.test.ex
+****
router = r1, transport = t1
yyy@notokdomain is undeliverable: Unrouteable address
syntax error: malformed address: /mod may not follow zzz@dom
+yes@exists.virt.test.ex verified
+no@exists.virt.test.ex failed to verify: Unrouteable address
+xx@notexists.virt.test.ex failed to verify: Unrouteable address