Doc: clarify the syntax of the "begin <section>"
[exim.git] / test / confs / 0375
CommitLineData
afda344b
PH
1# Exim test configuration 0375
2
3exim_path = EXIM_PATH
4host_lookup_order = bydns
5primary_hostname = myhost.test.ex
afda344b
PH
6spool_directory = DIR/spool
7log_file_path = DIR/spool/log/%slog
8gecos_pattern = ""
9gecos_name = CALLER_NAME
10
11# ----- Main settings -----
12
13domainlist local_domains = test.ex : *.test.ex
14log_selector = +return_path_on_delivery
15remote_max_parallel = 1
16
17
18# ----- Routers -----
19
20begin routers
21
22u1:
23 driver = accept
24 local_parts = ^a\\d
25 transport = ut1
26 errors_to =
27 unseen
28
29ut2:
30 driver = accept
31 local_parts = ^b\\d
32 transport = ut2
33 errors_to = ""
34 unseen
35
36ut3:
37 driver = accept
38 local_parts = ^c\\d
39 transport = ut3
40 errors_to =
41 unseen
42
43ut4:
44 driver = accept
45 local_parts = ^d\\d
46 transport = ut4
47 errors_to =
48 unseen
49
50ut5:
51 driver = accept
52 local_parts = ^e\\d
53 transport = ut5
54 unseen
55
56ut6:
57 driver = accept
58 local_parts = ^f\\d
59 address_data = $sender_address
60 transport = ut6
61 errors_to =
62 unseen
63
64ut7:
65 driver = accept
66 local_parts = ^g\\d
67 address_data = $bad expansion
68 transport = ut6
69 errors_to =
70 unseen
71 disable_logging
72
73ut8:
74 driver = accept
75 local_parts = ^h\\d
76 transport = ut1
77 errors_to = ${if eq{0}{1}{x@y}fail}
78 unseen
79
80real:
81 driver = accept
82 transport = real
83
84
85# ----- Transports -----
86
87begin transports
88
89# Successful local transport
90ut1:
91 driver = appendfile
92 file = DIR/test-mail/$local_part-u
93 user = CALLER
94 return_path_add
95 envelope_to_add
96 disable_logging
97
98# Hard unsuccessful local transport
99
100ut2:
101 driver = pipe
102 command = /non/existent/file
103 user = CALLER
104 disable_logging
105
106# Soft unsuccessful local transport
107
108ut3:
109 driver = pipe
110 command = /non/existent/file
111 temp_errors = *
112 user = CALLER
113 disable_logging
114
115# Remote transport - all types
116
117ut4:
118 driver = smtp
119 hosts = 127.0.0.1
120 port = PORT_S
121 allow_localhost
122 max_rcpt = 1
123 disable_logging
124
125# Another remote transport with return_path set empty
126
127ut5:
128 driver = smtp
129 hosts = 127.0.0.1
130 port = PORT_S
131 allow_localhost
132 max_rcpt = 1
133 disable_logging
134 return_path =
135
136# Another remote transport with return_path reinstating original
137
138ut6:
139 driver = smtp
140 hosts = 127.0.0.1
141 port = PORT_S
142 allow_localhost
143 max_rcpt = 1
144 disable_logging
145 return_path = $address_data
146
147# Real delivery
148real:
149 driver = appendfile
150 file = DIR/test-mail/$local_part
151 user = CALLER
152 return_path_add
153 envelope_to_add
154
155
156# ----- Retry -----
157
158
159begin retry
160
161* * F,5d,1d
162
163
164# End