taint: allow appendfile create_file option to specify a de-tainting safe path
[exim.git] / test / confs / 0015
1 # Exim test configuration 0015
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 qualify_domain = test.ex
9
10
11 # ----- Routers -----
12
13 begin routers
14
15 convert_to_real_name:
16   driver = redirect
17   allow_defer
18   data = "\
19     $local_part_prefix${lookup{$local_part}\
20     lsearch{DIR/aux-fixed/0015.realnames}{$value}fail}@$domain"
21   local_part_prefix = *+
22   local_part_prefix_optional
23   retry_use_local_part
24
25 #system_aliases:
26 #  driver = redirect
27 #  allow_defer
28 #  data = ${lookup{$local_part}lsearch{DIR/aux-fixed/0015.aliases}}
29 #  retry_use_local_part
30
31 userforward:
32   driver = redirect
33   allow_filter
34   local_parts = userx
35   user = CALLER
36   file = DIR/aux-fixed/0015.filter.userx
37   local_part_prefix = *+
38   local_part_prefix_optional
39   pipe_transport = address_pipe
40   reply_transport = address_reply
41
42 localuser_b:
43   driver = accept
44   local_parts = userx : CALLER
45   local_part_prefix = B+
46   transport = local_delivery_b
47
48 localuser_s:
49   driver = accept
50   local_part_prefix = S+
51   transport = delivery_s
52
53 localuser_sb:
54   driver = accept
55   local_parts = userx : CALLER
56   local_part_prefix = *+
57   local_part_prefix_optional
58   local_part_suffix = -B
59   transport = local_delivery_b
60
61 localuser_ss:
62   driver = accept
63   local_part_suffix = -S
64   transport = delivery_s
65
66 localuser:
67   driver = accept
68   local_parts = userx : CALLER
69   local_part_prefix = *+
70   local_part_prefix_optional
71   transport = local_delivery
72
73
74 # ----- Transports -----
75
76 begin transports
77
78 local_delivery:
79   driver = appendfile
80   user = CALLER
81   delivery_date_add
82   envelope_to_add
83   file = DIR/test-mail/$local_part
84   create_file = DIR/test-mail
85   return_path_add
86   headers_add = X-local_part: $local_part\n\
87                 X-local_part_prefix: $local_part_prefix\n\
88                 X-local_part_prefix_v: $local_part_prefix_v
89
90 local_delivery_b:
91   driver = appendfile
92   user = CALLER
93   delivery_date_add
94   envelope_to_add
95   file = DIR/test-mail/$local_part
96   create_file = DIR/test-mail
97   return_path_add
98   use_bsmtp
99   headers_add = X-local_part: $local_part\n\
100                 X-local_part_prefix: $local_part_prefix\n\
101                 X-local_part_prefix_v: $local_part_prefix_v
102
103 delivery_s:
104   driver = smtp
105   hosts = 127.0.0.1
106   port = PORT_S
107   hosts_try_fastopen = :
108   allow_localhost
109
110 address_reply:
111   driver = autoreply
112
113 address_pipe:
114   driver = pipe
115
116 # End