safer coding of router toplevel
[exim.git] / test / confs / 0101
1 # Exim test configuration 0101
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 domainlist local_domains = test.ex
9
10 qualify_domain = test.ex
11
12
13 # ----- Routers -----
14
15 begin routers
16
17 all:
18   driver = manualroute
19   domains = ! +local_domains
20   route_list = * 127.0.0.1 byname
21   self = send
22   transport = smtp
23   no_more
24
25 mmdf_localuser:
26   driver = accept
27   local_part_prefix = mmdf-
28   local_parts = userx
29   transport = mmdf_local_delivery
30
31 filtered_localuser:
32   driver = accept
33   local_part_prefix = filter-
34   local_parts = userx
35   transport = filtered_local_delivery
36
37 bsmtp_localuser:
38   driver = accept
39   local_parts = userz
40   transport = bsmtp_local_delivery
41
42 localuser:
43   driver = accept
44   local_parts = userx
45   transport = local_delivery
46
47
48 # ----- Transports -----
49
50 begin transports
51
52 smtp:
53   driver = smtp
54   port = PORT_S
55   hosts_try_fastopen = :
56
57 local_delivery:
58   driver = pipe
59   check_string = "From "
60   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part_data'
61   escape_string = ">From "
62   user = CALLER
63   current_directory = /
64
65 bsmtp_local_delivery:
66   driver = pipe
67   use_bsmtp
68   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part_data'
69   delivery_date_add
70   envelope_to_add
71   return_path_add
72   user = CALLER
73   current_directory = /
74
75 filtered_local_delivery:
76   driver = pipe
77   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part_data'
78   delivery_date_add
79   envelope_to_add
80   return_path_add
81   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
82   user = CALLER
83   current_directory = /
84
85 mmdf_local_delivery:
86   driver = pipe
87   check_string = "\1\1\1\1\n"
88   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part_data'
89   escape_string = "\1\1\1\1 \n"
90   message_prefix = "\1\1\1\1\n"
91   message_suffix = "\1\1\1\1\n"
92   user = CALLER
93   current_directory = /
94
95 # End