update to pre-4.87 master
[exim.git] / test / scripts / 5400-cutthrough / 5400
1 # cutthrough_delivery basic operation
2 need_ipv4
3 munge loopback
4 #
5 server PORT_S
6 220 ESMTP
7 EHLO
8 250 OK
9 MAIL FROM:
10 250 Sender OK
11 RCPT TO:
12 250 Recipient OK
13 DATA
14 354 Send data
15 .
16 250 OK
17 QUIT
18 250 OK
19 ****
20 exim -bs
21 EHLO myhost.test.ex
22 MAIL FROM:<CALLER@myhost.test.ex>
23 RCPT TO:<userx@domain.com>
24 DATA
25
26 .
27 QUIT
28 ****
29 # cutthrough_delivery into HELO-only server
30 server PORT_S
31 220 SMTP only spoken here
32 EHLO
33 550 Not here, mate
34 HELO
35 250 OK
36 MAIL FROM:
37 250 Sender OK
38 RCPT TO:
39 250 Recipient OK
40 DATA
41 354 Send data
42 .
43 250 OK
44 QUIT
45 250 OK
46 ****
47 exim -bs
48 EHLO myhost.test.ex
49 MAIL FROM:<CALLER@myhost.test.ex>
50 RCPT TO:<userz@domain.com>
51 DATA
52
53 .
54 QUIT
55 ****
56 # cutthrough for 2 recipients in one domain
57 server PORT_S
58 220 ESMTP
59 EHLO
60 250 OK
61 MAIL FROM:
62 250 Sender OK
63 RCPT TO:
64 250 Recipient OK
65 RCPT TO:
66 250 Recipient OK
67 DATA
68 354 Send data
69 .
70 250 OK
71 QUIT
72 250 OK
73 ****
74 exim -bs
75 EHLO myhost.test.ex
76 MAIL FROM:<CALLER@myhost.test.ex>
77 RCPT TO:<usery@domain.com>
78 RCPT TO:<userx@domain.com>
79 DATA
80
81 .
82 QUIT
83 ****
84 #
85 #
86 #
87 #
88 #
89 # cutthrough_delivery basic operation, again
90 server PORT_S
91 220 ESMTP
92 EHLO
93 250 OK
94 MAIL FROM:
95 250 Sender OK
96 RCPT TO:
97 250 Recipient OK
98 DATA
99 354 Send data
100 .
101 250 OK
102 QUIT
103 250 OK
104 ****
105 exim -bs
106 EHLO myhost.test.ex
107 MAIL FROM:<CALLER@myhost.test.ex>
108 RCPT TO:<userx@domain.com>
109 DATA
110 X-hdr-rtr: qqq
111 X-hdr-tpt: zzz
112
113 body
114 .
115 QUIT
116 ****
117 #
118 #
119 #
120 #
121 # cutthrough for 2 recipients in one domain
122 # first one denied
123 # so we get a 2nd conn with the traditional delivery
124 # (for both because it's not a real verify=recipient)
125 server PORT_S 2
126 220 ESMTP
127 EHLO
128 250 OK
129 MAIL FROM:
130 250 Sender OK
131 RCPT TO:
132 550 Not that one
133 QUIT
134 250 OK
135 *eof
136 220 ESMTP
137 EHLO
138 250 OK
139 MAIL FROM:
140 250 Sender OK
141 RCPT TO:
142 250 ok rcpt-1
143 RCPT TO:
144 250 ok rcpt-2
145 DATA
146 354 Send data
147 .
148 250 OK
149 QUIT
150 250 OK
151 ****
152 #
153 # Foregound delivery needed else the following subtest reception logging happens before this ones
154 # delivery process logs and terminates; the interlock is only on the parent exim terminating.
155 exim -bs -odf
156 EHLO myhost.test.ex
157 MAIL FROM:<CALLER@myhost.test.ex>
158 RCPT TO:<no@domain.com>
159 RCPT TO:<userx@domain.com>
160 DATA
161
162 .
163 QUIT
164 ****
165 #
166 #
167 #
168 #
169 # cutthrough for 2 recipients in one domain
170 # second one denied
171 # so we get a 2nd conn with the traditional delivery
172 # (for both because it's not a real verify=recipient)
173 server PORT_S 2
174 220 ESMTP
175 EHLO
176 250 OK
177 MAIL FROM:
178 250 Sender OK
179 RCPT TO:
180 250 first recipient ok
181 RCPT TO:
182 550 Not that one
183 QUIT
184 250 OK
185 *eof
186 220 ESMTP
187 EHLO
188 250 OK
189 MAIL FROM:
190 250 Sender OK
191 RCPT TO:
192 250 ok rcpt-1
193 RCPT TO:
194 250 ok rcpt-2
195 DATA
196 354 Send data
197 .
198 250 OK
199 QUIT
200 250 OK
201 ****
202 exim -bs -odf
203 EHLO myhost.test.ex
204 MAIL FROM:<CALLER@myhost.test.ex>
205 RCPT TO:<userx@domain.com>
206 RCPT TO:<no@domain.com>
207 DATA
208
209 .
210 QUIT
211 ****
212 #
213 #
214 #
215 #
216 #
217 # cutthrough for 2 recipients in one domain
218 # second one uses a different transport
219 # so we get a 2nd conn with 2nd rcpt, doing the fake verify
220 # then 3rd & 4th conns with the traditional deliveries on the different transports
221 server PORT_S 4
222 220 ESMTP
223 EHLO
224 250 OK
225 MAIL FROM:
226 250 Sender OK
227 RCPT TO:
228 250 first recipient ok
229 QUIT
230 250 OK
231 *eof
232 220 ESMTP
233 EHLO
234 250 OK
235 MAIL FROM:
236 250 Sender OK
237 RCPT TO:
238 250 second recipient ok
239 QUIT
240 250 OK
241 *eof
242 220 ESMTP
243 EHLO
244 250 OK
245 MAIL FROM:
246 250 Sender OK
247 RCPT TO:
248 250 ok rcpt-1
249 DATA
250 354 Send data
251 .
252 250 OK
253 QUIT
254 250 OK
255 *eof
256 220 ESMTP
257 EHLO
258 250 OK
259 MAIL FROM:
260 250 Sender OK
261 RCPT TO:
262 250 ok rcpt-2
263 DATA
264 354 Send data
265 .
266 250 OK
267 QUIT
268 250 OK
269 ****
270 exim -bs -odf
271 EHLO myhost.test.ex
272 MAIL FROM:<CALLER@myhost.test.ex>
273 RCPT TO:<userx@domain.com>
274 RCPT TO:<special_tpt@domain.com>
275 DATA
276
277 .
278 QUIT
279 ****
280 #
281 #
282 #
283 #
284 #
285 # cutthrough for 2 recipients in different domains, handled by the same tpt & host
286 server PORT_S
287 220 ESMTP
288 EHLO
289 250 OK
290 MAIL FROM:
291 250 Sender OK
292 RCPT TO:
293 250 ok rcpt-1
294 RCPT TO:
295 250 ok rcpt-2
296 DATA
297 354 Send data
298 .
299 250 OK
300 QUIT
301 250 OK
302 ****
303 exim -bs
304 EHLO myhost.test.ex
305 MAIL FROM:<CALLER@myhost.test.ex>
306 RCPT TO:<userx@domain1.com>
307 RCPT TO:<usery@domain2.com>
308 DATA
309
310 .
311 QUIT
312 ****
313 #
314 #
315 #
316 #
317 #
318 # cutthrough for 2 recipients in different domains, handled by the same tpt but different hosts
319 # so we get a 2nd conn with 2nd rcpt, doing the fake verify
320 # then 3rd & 4th conns with the traditional deliveries on the different transports
321 server PORT_S 4
322 220 ESMTP
323 EHLO
324 250 OK
325 MAIL FROM:
326 250 Sender OK
327 RCPT TO:
328 250 first recipient ok
329 QUIT
330 250 OK
331 *eof
332 220 ESMTP
333 EHLO
334 250 OK
335 MAIL FROM:
336 250 Sender OK
337 RCPT TO:
338 250 second recipient ok
339 QUIT
340 250 OK
341 *eof
342 220 ESMTP
343 EHLO
344 250 OK
345 MAIL FROM:
346 250 Sender OK
347 RCPT TO:
348 250 ok rcpt-1
349 DATA
350 354 Send data
351 .
352 250 OK
353 QUIT
354 250 OK
355 *eof
356 220 ESMTP
357 EHLO
358 250 OK
359 MAIL FROM:
360 250 Sender OK
361 RCPT TO:
362 250 ok rcpt-2
363 DATA
364 354 Send data
365 .
366 250 OK
367 QUIT
368 250 OK
369 ****
370 exim -bs -odf
371 EHLO myhost.test.ex
372 MAIL FROM:<CALLER@myhost.test.ex>
373 RCPT TO:<userx@domain.com>
374 RCPT TO:<usery@special.com>
375 DATA
376
377 .
378 QUIT
379 ****
380 #
381 #
382 #
383 #
384 #
385 # cutthrough for 2 recipients in different domains, handled by the same tpt & host
386 # but via a dnslookup router (all previous were manualroute)
387 server PORT_S
388 220 ESMTP
389 EHLO
390 250 OK
391 MAIL FROM:
392 250 Sender OK
393 RCPT TO:
394 250 ok rcpt-1
395 RCPT TO:
396 250 ok rcpt-2
397 DATA
398 354 Send data
399 .
400 250 OK
401 QUIT
402 250 OK
403 ****
404 exim -bs -odf
405 EHLO myhost.test.ex
406 MAIL FROM:<CALLER@myhost.test.ex>
407 RCPT TO:<userx@localhost4.test.ex>
408 RCPT TO:<usery@thishost.test.ex>
409 DATA
410
411 .
412 QUIT
413 ****
414 #
415 #
416 #
417 #
418 # End