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