e35671af42734b634bf9b96c53698b4d3ee89611
[exim.git] / test / confs / 0100
1 # Exim test configuration 0100
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 rfc1413_query_timeout = 0s
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 domainlist local_domains = test.ex
14
15 qualify_domain = test.ex
16
17 # ----- Routers -----
18
19 begin routers
20
21 filtered:
22   driver = manualroute
23   domains = ! +local_domains
24   route_list = filtered.com 127.0.0.1 byname
25   self = send
26   transport = filtered_smtp
27
28 rest:
29   driver = manualroute
30   domains = ! +local_domains
31   route_list = * 127.0.0.1 byname
32   self = send
33   transport = smtp
34   no_more
35
36 batch_localuser:
37   driver = accept
38   local_part_prefix = batch-
39   transport = batch_local_delivery
40
41 mmdf_localuser:
42   driver = accept
43   local_part_prefix = mmdf-
44   transport = mmdf_local_delivery
45
46 filtered_localuser:
47   driver = accept
48   local_part_prefix = filter-
49   transport = filtered_local_delivery
50
51 hackfree_localuser:
52   driver = accept
53   local_parts = usery
54   transport = hackfree_local_delivery
55
56 bsmtp_localuser:
57   driver = accept
58   local_parts = userz
59   transport = bsmtp_local_delivery
60
61 bsmtp_localuser_filtered:
62   driver = accept
63   local_parts = userw
64   retry_use_local_part
65   transport = bsmtp_local_delivery_filtered
66
67 localuser:
68   driver = accept
69   local_parts = userx
70   transport = local_delivery
71
72
73 # ----- Transports -----
74
75 begin transports
76
77 smtp:
78   driver = smtp
79   port = PORT_S
80   interface = ${if eq {$host}{127.0.0.1} {127.0.0.1}}
81
82 filtered_smtp:
83   driver = smtp
84   port = PORT_S
85   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
86
87 local_delivery:
88   driver = appendfile
89   delivery_date_add
90   envelope_to_add
91   file = DIR/test-mail/$local_part
92   return_path_add
93   current_directory = /
94   user = CALLER
95
96 hackfree_local_delivery:
97   driver = appendfile
98   delivery_date_add
99   envelope_to_add
100   file = DIR/test-mail/$local_part
101   check_string =
102   return_path_add
103   user = CALLER
104   current_directory = /
105
106 bsmtp_local_delivery:
107   driver = appendfile
108   batch_max = 100
109   use_bsmtp
110   delivery_date_add
111   envelope_to_add
112   file = DIR/test-mail/$local_part
113   return_path_add
114   user = CALLER
115   current_directory = /
116
117 bsmtp_local_delivery_filtered:
118   driver = appendfile
119   batch_max = 100
120   use_bsmtp
121   delivery_date_add
122   envelope_to_add
123   file = DIR/test-mail/$local_part
124   return_path_add
125   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
126   user = CALLER
127   current_directory = /
128
129 batch_local_delivery:
130   driver = appendfile
131   batch_max = 100
132   delivery_date_add
133   envelope_to_add
134   file = DIR/test-mail/CALLER
135   return_path_add
136   user = CALLER
137   current_directory = /
138
139 filtered_local_delivery:
140   driver = appendfile
141   delivery_date_add
142   envelope_to_add
143   file = DIR/test-mail/$local_part
144   return_path_add
145   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
146   current_directory = /
147   user = CALLER
148
149 mmdf_local_delivery:
150   driver = appendfile
151   check_string = "\1\1\1\1\n"
152   escape_string = "\1\1\1\1 \n"
153   file = DIR/test-mail/$local_part
154   message_prefix = "\1\1\1\1\n"
155   message_suffix = "\1\1\1\1\n"
156   user = CALLER
157   current_directory = /
158
159 # End