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