Get TLS SNI server-switching working with GnuTLS.
[users/heiko/exim.git] / test / scripts / 9400-local_scan / 9400
1 # local_scan() miscellaneous tests
2 exim -odi -bs
3 mail from:<x@y>
4 rcpt to:<userx@test.ex>
5 data
6 Testing, testing
7 .
8 quit
9 ****
10 exim -odi -bs
11 mail from:<test-local-scan@y>
12 rcpt to:<userx@test.ex>
13 data
14 Testing, testing
15 .
16 quit
17 ****
18 exim -odi -bs
19 mail from:<test-local-scan@y>
20 rcpt to:<userx@test.ex>
21 data
22 local-scan: reject
23 Testing, testing
24 .
25 quit
26 ****
27 exim -odi -bs
28 mail from:<test-local-scan@y>
29 rcpt to:<userx@test.ex>
30 data
31 local-scan: reject this message isn't wanted
32 Testing, testing
33 .
34 quit
35 ****
36 exim -odi -bs
37 mail from:<test-local-scan@y>
38 rcpt to:<userx@test.ex>
39 data
40 local-scan: reject this message isn't wanted
41   and we tell it on two lines
42 Testing, testing
43 .
44 quit
45 ****
46 exim -odi -bs
47 mail from:<test-local-scan@y>
48 rcpt to:<userx@test.ex>
49 data
50 local-scan: tempreject
51 Testing, testing
52 .
53 quit
54 ****
55 exim -odi -bs
56 mail from:<test-local-scan@y>
57 rcpt to:<userx@test.ex>
58 data
59 local-scan: tempreject this message isn't wanted just now
60 Testing, testing
61 .
62 quit
63 ****
64 exim -odi -bs
65 mail from:<test-local-scan@y>
66 rcpt to:<userx@test.ex>
67 data
68 local-scan: sendto
69 Testing, testing
70 .
71 quit
72 ****
73 exim -odi -bs
74 mail from:<test-local-scan@y>
75 rcpt to:<userx@test.ex>
76 data
77 local-scan: sendto usery@test.ex
78 Testing, testing, was originally to userx.
79 .
80 quit
81 ****
82 exim -odi -bs
83 mail from:<test-local-scan@y>
84 rcpt to:<userx@test.ex>
85 data
86 local-scan: sendto *this is a blackhole message*
87 Testing, testing, was originally to userx.
88 .
89 quit
90 ****
91 1
92 exim -odi -f test-local-scan@y userx@test.ex
93 local-scan: reject this message isn't wanted
94 Testing, testing, local message (1)
95 .
96 ****
97 exim -odi -oee -f test-local-scan@y userx@test.ex
98 local-scan: reject this message isn't wanted
99 Testing, testing, local message (2)
100 .
101 ****
102 1
103 exim -odi -oep -f test-local-scan@y userx@test.ex
104 local-scan: reject this message isn't wanted
105 Testing, testing, local message (3)
106 .
107 ****
108 exim -odi -bs
109 mail from:<test-local-scan@y>
110 rcpt to:<userx@test.ex>
111 data
112 local-scan: accept A=orses b=mutton
113 Testing, testing
114 .
115 quit
116 ****
117 1
118 exim -odi -bs
119 mail from:<test-local-scan@y>
120 rcpt to:<userx@test.ex>
121 data
122 local-scan:timeout
123 test test
124 .
125 quit
126 ****
127 1
128 exim -odi -oep -f test-local-scan@y userx@test.ex
129 local-scan: timeout
130 test test
131 .
132 ****
133 exim -odi -bs
134 mail from:<test-local-scan@y>
135 rcpt to:<userx@test.ex>
136 data
137 local-scan: sendto bounce@test.ex exbounce@test.ex
138 Testing, testing, was originally to userx.
139 Sent to bounce@test.ex; bounce should go to exbounce.
140 .
141 quit
142 ****
143 2
144 exim -odi -bS
145 mail from:<test-local-scan@y>
146 rcpt to:<userx@test.ex>
147 data
148 local-scan: reject not wanted -bS
149 Testing, testing
150 .
151 quit
152 ****
153 exim -odi -bs
154 mail from:<test-local-scan@y>
155 rcpt to:<userx@test.ex>
156 data
157 local-scan: accept A=orses b=mutton
158   c=forthighlanders
159   some newlines in here 
160 Testing, testing
161 .
162 quit
163 ****
164 exim -odi -N -d-all+receive -bs
165 mail from:<test-local-scan@y>
166 rcpt to:<userx@test.ex>
167 data
168 .
169 quit
170 ****
171 exim -odi -N -d-all+local_scan -bs
172 mail from:<test-local-scan@y>
173 rcpt to:<userx@test.ex>
174 data
175 .
176 quit
177 ****
178 2
179 exim -odi -bS
180 mail from:<test-local-scan@y>
181 rcpt to:<userx@test.ex>
182 data
183 local-scan: reject_nologhdr not wanted -bS
184 Testing, testing
185 .
186 quit
187 ****
188 exim -odi -bs
189 mail from:<test-local-scan@y>
190 rcpt to:<userx@test.ex>
191 data
192 local-scan: tempreject_nologhdr
193 Testing, testing
194 .
195 quit
196 ****
197 exim -odi -bs
198 mail from:<test-local-scan@y>
199 rcpt to:<userx@test.ex>
200 data
201 local-scan: accept_expand sender=$sender_address
202 Testing, testing
203 .
204 mail from:<test-local-scan@y>
205 rcpt to:<userx@test.ex>
206 data
207 local-scan: accept_expand sender=$rhubarb
208 Testing, testing
209 .
210 quit
211 ****
212 exim -bP local_scan
213 ****
214 exim -odi -bs
215 mail from:<test-local-scan@y>
216 rcpt to:<userx@test.ex>
217 data
218 local-scan: accept_freeze
219 Testing, testing
220 .
221 mail from:<test-local-scan@y>
222 rcpt to:<userx@test.ex>
223 data
224 local-scan: accept_queue
225 Testing, testing
226 .
227 quit
228 ****
229 exim -bp
230 ****
231 exim -d-all+local_scan -bh 1.2.3.4
232 mail from:<test-local-scan@y>
233 rcpt to:<userx@test.ex>
234 data
235 local-scan: accept_freeze
236 Testing, testing
237 .
238 quit
239 ****
240 exim -d-all+local_scan -bh 1.2.3.4
241 mail from:<test-local-scan@y>
242 rcpt to:<userx@test.ex>
243 data
244 local-scan: accept_test_lists
245 Testing, testing
246 .
247 quit
248 ****
249 1
250 exim -d-all+local_scan -odi -bs
251 mail from:<test-local-scan@y>
252 rcpt to:<userx@test.ex>
253 data
254 local-scan: crash
255 Testing, testing
256 .
257 quit
258 ****
259 ls DIR/spool/input
260 exim -odq -bs
261 mail from:<test-local-scan@y>
262 rcpt to:<userx@test.ex>
263 data
264 local-scan: sendto unqualified
265 Testing, testing, was originally to userx.
266 Sent to unqualified address
267 .
268 quit
269 ****
270 exim -bp
271 ****
272 exim -M $msg3
273 ****
274 exim -odi -bs
275 mail from:<test-local-scan@y>
276 rcpt to:<userx@test.ex>
277 data
278 local-scan: header_remove 2 remove-me
279 remove-me: this is the first one
280 remove-me : this is the second one
281 remove-me : this is the third one
282
283 Testing, testing
284 .
285 quit
286 ****
287 exim -odi -bs
288 mail from:<test-local-scan@y>
289 rcpt to:<userx@test.ex>
290 data
291 local-scan: header_remove 0 remove-me
292 remove-me: this is the first one
293 remove-me : this is the second one
294 remove-me : this is the third one
295
296 Testing, testing
297 .
298 quit
299 ****
300 exim -odi -bs
301 mail from:<test-local-scan@y>
302 rcpt to:<userx@test.ex>
303 data
304 local-scan: header_add_at_position TT received X-new: added
305
306 Testing, testing
307 .
308 quit
309 ****
310 exim -odi -bs
311 mail from:<test-local-scan@y>
312 rcpt to:<userx@test.ex>
313 data
314 local-scan: header_add_at_position FT received X-new: added
315
316 Testing, testing
317 .
318 quit
319 ****
320 exim -odi -bs
321 mail from:<test-local-scan@y>
322 rcpt to:<userx@test.ex>
323 data
324 local-scan: header_add_at_position FT From X-new: added
325
326 Testing, testing
327 .
328 quit
329 ****
330 exim -odi -bs
331 mail from:<test-local-scan@y>
332 rcpt to:<userx@test.ex>
333 data
334 local-scan: header_add_at_position FT Non-exist X-new: added
335
336 Testing, testing
337 .
338 quit
339 ****
340 exim -odi -bs
341 mail from:<test-local-scan@y>
342 rcpt to:<userx@test.ex>
343 data
344 local-scan: remove userx@test.ex
345
346 Testing, testing
347 .
348 quit
349 ****
350 exim -odi -bs
351 mail from:<test-local-scan@y>
352 rcpt to:<userx@test.ex>
353 data
354 local-scan: remove abcd@test.ex
355
356 Testing, testing
357 .
358 quit
359 ****
360 no_msglog_check