Fix list-expansion for various domainlists, having included sublist elements. Bug...
[users/heiko/exim.git] / test / confs / 0134
1 # Exim test configuration 0134
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 domainlist local_domains = test.ex: *.test.ex
9 qualify_domain = test.ex
10
11
12 # ----- Routers -----
13
14 begin routers
15
16 topipe:
17   driver = accept
18   caseful_local_part
19   retry_use_local_part
20   domains = pipe.domain
21   local_parts = PIPE
22   transport = pipe
23
24 domainlist:
25   driver = manualroute
26   caseful_local_part
27   domains = lsearch;DIR/aux-fixed/TESTNUM.listR
28   headers_add = "domainlist: dd=$domain_data lpd=$local_part_data"
29   local_parts = lsearch;DIR/aux-fixed/TESTNUM.listR
30   route_list = *
31   transport = appendfile
32
33 default1:
34   driver = manualroute
35   domains = ! +local_domains
36   route_list = *
37   transport = appendfile
38   no_more
39
40 smartuser:
41   driver = accept
42   domains = lsearch;DIR/aux-fixed/TESTNUM.listD
43   headers_add = "smartuser: dd=$domain_data lpd=$local_part_data"
44   local_parts = lsearch;DIR/aux-fixed/TESTNUM.listD
45   retry_use_local_part
46   transport = appendfile
47
48 smartuser_direct:
49   driver = accept
50   domains = test.ex
51   headers_add = "smartuser: dd=$domain_data lpd=$local_part_data"
52   local_parts = DIR/aux-fixed/TESTNUM.listL
53   retry_use_local_part
54   transport = directfile
55
56 default2:
57   driver = accept
58   headers_add = router: defaulted
59   retry_use_local_part
60   transport = appendfile
61
62
63 # ----- Transports -----
64
65 begin transports
66
67 # We want local parts with different casing to be different, but this goes
68 # wrong on file systems that are not case-dependent. So fudge the file names
69 # by steam - an lsearch lookup is no good because it is case-independent.
70
71 appendfile:
72   driver = appendfile
73   user = CALLER
74   headers_add = "domain_data: $domain_data\n\
75                  local_part_data: $local_part_data"
76   file = DIR/test-mail/\
77          ${if eq {$local_part}{unknown}{lc-unknown}{\
78          ${if eq {$local_part}{USERX}{UC-USERX}{\
79          ${if eq {$local_part}{userx}{lc-userx}{\
80          $local_part}}}}}}
81
82 directfile:
83   driver = appendfile
84   user = CALLER
85   headers_add = "domain_data: $domain_data\n\
86                  local_part_data: $local_part_data"
87   file = DIR/test-mail/directfile
88
89 pipe:
90   driver = pipe
91   command = /bin/sh -c "echo $local_part $domain >DIR/test-mail/$local_part"
92   user = CALLER
93
94
95 # ----- Retry -----
96
97
98 begin retry
99
100 * * F,1d,15m
101
102
103 # End