I18N: new ${imapfolder_<sep>:<string>} expansion item. Bug 420
[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
123# so we get a 2nd conn with the traditional delivery
124# (for both because it's not a real verify=recipient)
125server PORT_S 2
126220 ESMTP
127EHLO
128250 OK
129MAIL FROM:
130250 Sender OK
528fde2a 131RCPT TO:
5032d1cf
JH
132550 Not that one
133QUIT
134250 OK
135*eof
136220 ESMTP
137EHLO
138250 OK
139MAIL FROM:
140250 Sender OK
141RCPT TO:
142250 ok rcpt-1
143RCPT TO:
144250 ok rcpt-2
528fde2a
JH
145DATA
146354 Send data
147.
148250 OK
149QUIT
150250 OK
151****
5032d1cf 152exim -bs
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#
0368847f
JH
163# The "exim" above should have waited on completion for the "server" before
164# but apparently not; without this delay ordering is messed up.
165# Unsatifactory.
166millisleep 500
511a6c14
JH
167#
168#
169#
5032d1cf
JH
170# cutthrough for 2 recipients in one domain
171# second one denied
172# so we get a 2nd conn with the traditional delivery
173# (for both because it's not a real verify=recipient)
174server PORT_S 2
175220 ESMTP
176EHLO
177250 OK
178MAIL FROM:
179250 Sender OK
180RCPT TO:
181250 first recipient ok
182RCPT TO:
183550 Not that one
184QUIT
185250 OK
186*eof
187220 ESMTP
188EHLO
189250 OK
190MAIL FROM:
191250 Sender OK
192RCPT TO:
193250 ok rcpt-1
194RCPT TO:
195250 ok rcpt-2
196DATA
197354 Send data
198.
199250 OK
200QUIT
201250 OK
202****
203exim -bs
204EHLO myhost.test.ex
205MAIL FROM:<CALLER@myhost.test.ex>
206RCPT TO:<userx@domain.com>
207RCPT TO:<no@domain.com>
208DATA
209
210.
211QUIT
212****
213#
214#
0368847f 215millisleep 500
5032d1cf
JH
216#
217#
218#
219# cutthrough for 2 recipients in one domain
220# second one uses a different transport
221# so we get a 2nd conn with 2nd rcpt, doing the fake verify
222# then 3rd & 4th conns with the traditional deliveries on the different transports
223server PORT_S 4
224220 ESMTP
225EHLO
226250 OK
227MAIL FROM:
228250 Sender OK
229RCPT TO:
230250 first recipient ok
231QUIT
232250 OK
233*eof
234220 ESMTP
235EHLO
236250 OK
237MAIL FROM:
238250 Sender OK
239RCPT TO:
240250 second recipient ok
241QUIT
242250 OK
243*eof
244220 ESMTP
245EHLO
246250 OK
247MAIL FROM:
248250 Sender OK
249RCPT TO:
250250 ok rcpt-1
251DATA
252354 Send data
253.
254250 OK
255QUIT
256250 OK
257*eof
258220 ESMTP
259EHLO
260250 OK
261MAIL FROM:
262250 Sender OK
263RCPT TO:
264250 ok rcpt-2
265DATA
266354 Send data
267.
268250 OK
269QUIT
270250 OK
271****
272exim -bs
273EHLO myhost.test.ex
274MAIL FROM:<CALLER@myhost.test.ex>
275RCPT TO:<userx@domain.com>
276RCPT TO:<special_tpt@domain.com>
277DATA
278
279.
280QUIT
281****
282#
283#
0368847f 284millisleep 500
5032d1cf
JH
285#
286#
287#
288# cutthrough for 2 recipients in different domains, handled by the same tpt & host
511a6c14
JH
289server PORT_S
290220 ESMTP
291EHLO
292250 OK
293MAIL FROM:
294250 Sender OK
295RCPT TO:
5032d1cf
JH
296250 ok rcpt-1
297RCPT TO:
298250 ok rcpt-2
511a6c14
JH
299DATA
300354 Send data
301.
302250 OK
303QUIT
304250 OK
305****
5032d1cf
JH
306exim -bs
307EHLO myhost.test.ex
308MAIL FROM:<CALLER@myhost.test.ex>
309RCPT TO:<userx@domain1.com>
310RCPT TO:<usery@domain2.com>
311DATA
312
313.
314QUIT
315****
316#
317#
318#
319#
320#
321# cutthrough for 2 recipients in different domains, handled by the same tpt but different hosts
322# so we get a 2nd conn with 2nd rcpt, doing the fake verify
323# then 3rd & 4th conns with the traditional deliveries on the different transports
324server PORT_S 4
325220 ESMTP
326EHLO
327250 OK
328MAIL FROM:
329250 Sender OK
330RCPT TO:
331250 first recipient ok
332QUIT
333250 OK
334*eof
335220 ESMTP
336EHLO
337250 OK
338MAIL FROM:
339250 Sender OK
340RCPT TO:
341250 second recipient ok
342QUIT
343250 OK
344*eof
345220 ESMTP
346EHLO
347250 OK
348MAIL FROM:
349250 Sender OK
350RCPT TO:
351250 ok rcpt-1
352DATA
353354 Send data
354.
355250 OK
356QUIT
357250 OK
358*eof
359220 ESMTP
360EHLO
361250 OK
362MAIL FROM:
363250 Sender OK
364RCPT TO:
365250 ok rcpt-2
366DATA
367354 Send data
368.
369250 OK
370QUIT
371250 OK
372****
373exim -bs
511a6c14
JH
374EHLO myhost.test.ex
375MAIL FROM:<CALLER@myhost.test.ex>
376RCPT TO:<userx@domain.com>
5032d1cf
JH
377RCPT TO:<usery@special.com>
378DATA
379
380.
381QUIT
382****
383#
384#
0368847f 385millisleep 500
5032d1cf
JH
386#
387#
388#
389# cutthrough for 2 recipients in different domains, handled by the same tpt & host
390# but via a dnslookup router (all previous were manualroute)
391server PORT_S
392220 ESMTP
393EHLO
394250 OK
395MAIL FROM:
396250 Sender OK
397RCPT TO:
398250 ok rcpt-1
399RCPT TO:
400250 ok rcpt-2
401DATA
402354 Send data
403.
404250 OK
405QUIT
406250 OK
407****
408exim -bs
409EHLO myhost.test.ex
410MAIL FROM:<CALLER@myhost.test.ex>
ac9a0d91 411RCPT TO:<userx@localhost4.test.ex>
5032d1cf 412RCPT TO:<usery@thishost.test.ex>
511a6c14 413DATA
511a6c14 414
511a6c14
JH
415.
416QUIT
417****
5032d1cf
JH
418#
419#
420#
421#
422#
423sleep 1