Lookups: ret=key option
[exim.git] / test / confs / 0153
CommitLineData
afda344b
PH
1# Exim test configuration 0153
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
afda344b
PH
5
6# ----- Main settings -----
7
8
9# ----- Routers -----
10
11begin routers
12
13virtual:
14 driver = redirect
15 domains = *.virt.test.ex
0006e6d8
JH
16# address_data = ${if match{$domain}{^(.*)\\.virt\\.test\\.ex\$}{${bless:$1}}}
17 address_data = $1
18# data = ${if exists{DIR/aux-fixed/TESTNUM.alias.$address_data} \
19# {${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias.$address_data}}} \
20# fail}
21 data = ${lookup {TESTNUM.alias.$address_data} dsearch,ret=full {DIR/aux-fixed} \
22 {${lookup{$local_part}lsearch{$value}}} \
23 fail}
afda344b
PH
24 no_more
25
26list:
27 driver = redirect
28 domains = list.test.ex
0006e6d8
JH
29# file = ${if exists{DIR/aux-fixed/TESTNUM.list.${bless:$local_part}} \
30# {DIR/aux-fixed/TESTNUM.list.${bless:$local_part}}fail}
31 file = ${lookup {TESTNUM.list.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
afda344b
PH
32 no_more
33
34real:
35 driver = accept
36 verify_only
37
38
39# End