testcase
[exim.git] / test / scripts / 5400-cutthrough / 5400
CommitLineData
528fde2a
JH
1# cutthrough_delivery basic operation
2need_ipv4
ac9a0d91 3munge loopback
528fde2a
JH
4#
5server PORT_S
6220 ESMTP
cb9d95ae 7EHLO
528fde2a
JH
8250 OK
9MAIL FROM:
10250 Sender OK
11RCPT TO:
12250 Recipient OK
13DATA
14354 Send data
15.
16250 OK
17QUIT
18250 OK
19****
5032d1cf 20exim -bs
528fde2a 21EHLO myhost.test.ex
9d6bb16d 22MAIL FROM:<CALLER@myhost.test.ex>
528fde2a
JH
23RCPT TO:<userx@domain.com>
24DATA
25
24f66b4d
JH
26.
27QUIT
28****
29# cutthrough_delivery into HELO-only server
24f66b4d
JH
30server PORT_S
31220 SMTP only spoken here
32EHLO
33550 Not here, mate
34HELO
35250 OK
36MAIL FROM:
37250 Sender OK
38RCPT TO:
39250 Recipient OK
40DATA
41354 Send data
42.
43250 OK
44QUIT
45250 OK
46****
5032d1cf 47exim -bs
24f66b4d 48EHLO myhost.test.ex
9d6bb16d 49MAIL FROM:<CALLER@myhost.test.ex>
24f66b4d
JH
50RCPT TO:<userz@domain.com>
51DATA
52
528fde2a
JH
53.
54QUIT
55****
5032d1cf
JH
56# cutthrough for 2 recipients in one domain
57server PORT_S
528fde2a 58220 ESMTP
cb9d95ae 59EHLO
528fde2a
JH
60250 OK
61MAIL FROM:
62250 Sender OK
63RCPT TO:
64250 Recipient OK
5032d1cf
JH
65RCPT TO:
66250 Recipient OK
67DATA
68354 Send data
69.
70250 OK
528fde2a 71QUIT
5032d1cf
JH
72250 OK
73****
74exim -bs
75EHLO myhost.test.ex
76MAIL FROM:<CALLER@myhost.test.ex>
77RCPT TO:<usery@domain.com>
78RCPT TO:<userx@domain.com>
79DATA
80
81.
82QUIT
83****
84#
85#
86#
87#
88#
89# cutthrough_delivery basic operation, again
90server PORT_S
528fde2a
JH
91220 ESMTP
92EHLO
93250 OK
94MAIL FROM:
95250 Sender OK
96RCPT TO:
97250 Recipient OK
5032d1cf
JH
98DATA
99354 Send data
100.
101250 OK
102QUIT
103250 OK
104****
105exim -bs
106EHLO myhost.test.ex
107MAIL FROM:<CALLER@myhost.test.ex>
108RCPT TO:<userx@domain.com>
109DATA
110X-hdr-rtr: qqq
111X-hdr-tpt: zzz
112
113body
114.
115QUIT
116****
117#
118#
119#
120#
121# cutthrough for 2 recipients in one domain
122# first one denied
f9334a28 123# so we get a 2nd conn with the traditional delivery for the second
5032d1cf
JH
124server PORT_S 2
125220 ESMTP
126EHLO
127250 OK
128MAIL FROM:
129250 Sender OK
528fde2a 130RCPT TO:
5032d1cf
JH
131550 Not that one
132QUIT
133250 OK
134*eof
135220 ESMTP
136EHLO
137250 OK
138MAIL FROM:
139250 Sender OK
140RCPT TO:
141250 ok rcpt-1
528fde2a
JH
142DATA
143354 Send data
144.
145250 OK
146QUIT
147250 OK
148****
a753aaff
JH
149#
150# Foregound delivery needed else the following subtest reception logging happens before this ones
151# delivery process logs and terminates; the interlock is only on the parent exim terminating.
152exim -bs -odf
528fde2a 153EHLO myhost.test.ex
9d6bb16d 154MAIL FROM:<CALLER@myhost.test.ex>
5032d1cf 155RCPT TO:<no@domain.com>
24f66b4d 156RCPT TO:<userx@domain.com>
528fde2a
JH
157DATA
158
159.
160QUIT
161****
511a6c14 162#
511a6c14
JH
163#
164#
165#
5032d1cf
JH
166# cutthrough for 2 recipients in one domain
167# second one denied
f9334a28 168# so we get a 2nd conn with the traditional delivery of the 1st
5032d1cf
JH
169server PORT_S 2
170220 ESMTP
171EHLO
172250 OK
173MAIL FROM:
174250 Sender OK
175RCPT TO:
176250 first recipient ok
177RCPT TO:
178550 Not that one
179QUIT
180250 OK
181*eof
182220 ESMTP
183EHLO
184250 OK
185MAIL FROM:
186250 Sender OK
187RCPT TO:
188250 ok rcpt-1
5032d1cf
JH
189DATA
190354 Send data
191.
192250 OK
193QUIT
194250 OK
195****
a753aaff 196exim -bs -odf
5032d1cf
JH
197EHLO myhost.test.ex
198MAIL FROM:<CALLER@myhost.test.ex>
199RCPT TO:<userx@domain.com>
200RCPT TO:<no@domain.com>
201DATA
202
203.
204QUIT
205****
206#
207#
208#
209#
210#
211# cutthrough for 2 recipients in one domain
212# second one uses a different transport
213# so we get a 2nd conn with 2nd rcpt, doing the fake verify
214# then 3rd & 4th conns with the traditional deliveries on the different transports
215server PORT_S 4
216220 ESMTP
217EHLO
218250 OK
219MAIL FROM:
220250 Sender OK
221RCPT TO:
222250 first recipient ok
223QUIT
224250 OK
225*eof
226220 ESMTP
227EHLO
228250 OK
229MAIL FROM:
230250 Sender OK
231RCPT TO:
232250 second recipient ok
233QUIT
234250 OK
235*eof
236220 ESMTP
237EHLO
238250 OK
239MAIL FROM:
240250 Sender OK
241RCPT TO:
242250 ok rcpt-1
243DATA
244354 Send data
245.
246250 OK
247QUIT
248250 OK
249*eof
250220 ESMTP
251EHLO
252250 OK
253MAIL FROM:
254250 Sender OK
255RCPT TO:
256250 ok rcpt-2
257DATA
258354 Send data
259.
260250 OK
261QUIT
262250 OK
263****
a753aaff 264exim -bs -odf
5032d1cf
JH
265EHLO myhost.test.ex
266MAIL FROM:<CALLER@myhost.test.ex>
267RCPT TO:<userx@domain.com>
268RCPT TO:<special_tpt@domain.com>
269DATA
270
271.
272QUIT
273****
274#
275#
276#
277#
278#
279# cutthrough for 2 recipients in different domains, handled by the same tpt & host
511a6c14
JH
280server PORT_S
281220 ESMTP
282EHLO
283250 OK
284MAIL FROM:
285250 Sender OK
286RCPT TO:
5032d1cf
JH
287250 ok rcpt-1
288RCPT TO:
289250 ok rcpt-2
511a6c14
JH
290DATA
291354 Send data
292.
293250 OK
294QUIT
295250 OK
296****
5032d1cf
JH
297exim -bs
298EHLO myhost.test.ex
299MAIL FROM:<CALLER@myhost.test.ex>
300RCPT TO:<userx@domain1.com>
301RCPT TO:<usery@domain2.com>
302DATA
303
304.
305QUIT
306****
307#
308#
309#
310#
311#
312# cutthrough for 2 recipients in different domains, handled by the same tpt but different hosts
313# so we get a 2nd conn with 2nd rcpt, doing the fake verify
314# then 3rd & 4th conns with the traditional deliveries on the different transports
315server PORT_S 4
316220 ESMTP
317EHLO
318250 OK
319MAIL FROM:
320250 Sender OK
321RCPT TO:
322250 first recipient ok
323QUIT
324250 OK
325*eof
326220 ESMTP
327EHLO
328250 OK
329MAIL FROM:
330250 Sender OK
331RCPT TO:
332250 second recipient ok
333QUIT
334250 OK
335*eof
336220 ESMTP
337EHLO
338250 OK
339MAIL FROM:
340250 Sender OK
341RCPT TO:
342250 ok rcpt-1
343DATA
344354 Send data
345.
346250 OK
347QUIT
348250 OK
349*eof
350220 ESMTP
351EHLO
352250 OK
353MAIL FROM:
354250 Sender OK
355RCPT TO:
356250 ok rcpt-2
357DATA
358354 Send data
359.
360250 OK
361QUIT
362250 OK
363****
a753aaff 364exim -bs -odf
511a6c14
JH
365EHLO myhost.test.ex
366MAIL FROM:<CALLER@myhost.test.ex>
367RCPT TO:<userx@domain.com>
5032d1cf
JH
368RCPT TO:<usery@special.com>
369DATA
370
371.
372QUIT
373****
374#
375#
376#
377#
378#
379# cutthrough for 2 recipients in different domains, handled by the same tpt & host
380# but via a dnslookup router (all previous were manualroute)
381server PORT_S
382220 ESMTP
383EHLO
384250 OK
385MAIL FROM:
386250 Sender OK
387RCPT TO:
388250 ok rcpt-1
389RCPT TO:
390250 ok rcpt-2
391DATA
392354 Send data
393.
394250 OK
395QUIT
396250 OK
397****
a753aaff 398exim -bs -odf
5032d1cf
JH
399EHLO myhost.test.ex
400MAIL FROM:<CALLER@myhost.test.ex>
ac9a0d91 401RCPT TO:<userx@localhost4.test.ex>
5032d1cf 402RCPT TO:<usery@thishost.test.ex>
511a6c14 403DATA
511a6c14 404
511a6c14
JH
405.
406QUIT
407****
5032d1cf
JH
408#
409#
410#
1bc460a6
JH
411# data having line with (logical, doubled on wire) single dot
412server PORT_S
413220 ESMTP
414EHLO
415250 OK
416MAIL FROM:
417250 Sender OK
418RCPT TO:
419250 Recipient OK
420DATA
421354 Send data
422.
423250 OK
424QUIT
425250 OK
426****
427exim -bs -odf
428EHLO myhost.test.ex
429MAIL FROM:<CALLER@myhost.test.ex>
430RCPT TO:<userx@domain.com>
431DATA
432Subject: singledot test
433
434This data has a line with a single dot... next:
435..
436and this is the line right after.
437Next we have a line with a leading dot:
438..test
439and this is the next line.
440
441.
442QUIT
443****
444#
5032d1cf 445#
a6ff719c 446sortlog
a753aaff 447# End