CHUNKING: fix non-pipelined synch checks. Bug 2004
[exim.git] / test / scripts / 0000-Basic / 0904
1 # CHUNKING transmission, short messages
2 #
3 # Start with non-pipelined cases
4 #
5 # Basic short message
6 server PORT_S
7 220 Greetings
8 EHLO
9 250-Hello there
10 250 CHUNKING
11 MAIL FROM
12 250 OK
13 RCPT TO
14 250 OK
15 BDAT 329 LAST
16 *data 329
17 250 OK
18 QUIT
19 225 OK
20 *eof
21 ****
22 sudo exim -odf -bS
23 EHLO test
24 MAIL FROM:<sender@source.dom>
25 RCPT TO:<a@test.ex>
26 DATA
27 Subject: foo
28
29 data
30 .
31 QUIT
32 ****
33 #
34 # Error case: server wrongly expected more data, client gets timeout for data-ack
35 server PORT_S
36 220 Greetings
37 EHLO
38 250-Hello there
39 250 CHUNKING
40 MAIL FROM
41 250 good mail cmd
42 RCPT TO
43 250 acceptable rcpt cmd
44 BDAT 329 LAST
45 *data 330
46 250 OK got that data
47 QUIT
48 225 OK quitting
49 ****
50 sudo exim -odf -bS
51 EHLO test
52 MAIL FROM:<sender@source.dom>
53 RCPT TO:<b@test.ex>
54 DATA
55 Subject: foo
56
57 data
58 .
59 QUIT
60 ****
61 #
62 # Error case: server wrongly expected less data
63 # client get the data-ack, sends quit - but server
64 # sees a munged quit due to the outstanding data tail
65 server PORT_S
66 220 Greetings
67 EHLO
68 250-Hello there
69 250 CHUNKING
70 MAIL FROM
71 250 OK
72 RCPT TO
73 250 OK
74 BDAT 329 LAST
75 *data 328
76 250 OK
77 QUIT
78 225 OK
79 ****
80 sudo exim -odf -bS
81 EHLO test
82 MAIL FROM:<sender@source.dom>
83 RCPT TO:<c@test.ex>
84 DATA
85 Subject: foo
86
87 data
88 .
89 QUIT
90 ****
91 #
92 # server rejects BDAT cmd
93 server PORT_S
94 220 Greetings
95 EHLO
96 250-Hello there
97 250 CHUNKING
98 MAIL FROM
99 250 OK
100 RCPT TO
101 250 OK
102 BDAT 329 LAST
103 *data 329
104 500 oops
105 QUIT
106 225 OK
107 ****
108 sudo exim -odf -bS
109 EHLO test
110 MAIL FROM:<sender@source.dom>
111 RCPT TO:<d@test.ex>
112 DATA
113 Subject: foo
114
115 data
116 .
117 QUIT
118 ****
119 #
120 # server tmp-rejects BDAT cmd
121 server PORT_S
122 220 Greetings
123 EHLO
124 250-Hello there
125 250 CHUNKING
126 MAIL FROM
127 250 OK
128 RCPT TO
129 250 OK
130 BDAT 329 LAST
131 *data 329
132 400 not right now
133 QUIT
134 225 OK
135 ****
136 sudo exim -odf -bS
137 EHLO test
138 MAIL FROM:<sender@source.dom>
139 RCPT TO:<e@test.ex>
140 DATA
141 Subject: foo
142
143 data
144 .
145 QUIT
146 ****
147 #
148 #
149 ###################################################
150 #
151 # Pipelined cases
152 #
153 # Basic short message
154 server PORT_S
155 220 Greetings
156 EHLO
157 250-Hello there
158 250-PIPELINING
159 250 CHUNKING
160 MAIL FROM
161 RCPT TO
162 BDAT 329 LAST
163 *data 329
164 250 OK mail
165 250 OK rcpt
166 250 OK bdat
167 QUIT
168 225 OK
169 *eof
170 ****
171 sudo exim -odf -bS
172 EHLO test
173 MAIL FROM:<sender@source.dom>
174 RCPT TO:<p@test.ex>
175 DATA
176 Subject: foo
177
178 data
179 .
180 QUIT
181 ****
182 #
183 # Error case: server wrongly expected more data, client gets timeout for data-ack
184 server PORT_S
185 220 Greetings
186 EHLO
187 250-Hello there
188 250-PIPELINING
189 250 CHUNKING
190 MAIL FROM
191 RCPT TO
192 BDAT 329 LAST
193 *data 330
194 250 good mail cmd
195 ****
196 sudo exim -odf -bS
197 EHLO test
198 MAIL FROM:<sender@source.dom>
199 RCPT TO:<q@test.ex>
200 DATA
201 Subject: foo
202
203 data
204 .
205 QUIT
206 ****
207 #
208 # Error case: server wrongly expected less data
209 # client get the data-ack, sends quit - but server
210 # sees a munged quit due to the outstanding data tail
211 server PORT_S
212 220 Greetings
213 EHLO
214 250-Hello there
215 250-PIPELINING
216 250 CHUNKING
217 MAIL FROM
218 RCPT TO
219 BDAT 329 LAST
220 *data 328
221 250 OK mail
222 250 OK rcpt
223 250 OK bdat
224 QUIT
225 225 OK
226 ****
227 sudo exim -odf -bS
228 EHLO test
229 MAIL FROM:<sender@source.dom>
230 RCPT TO:<r@test.ex>
231 DATA
232 Subject: foo
233
234 data
235 .
236 QUIT
237 ****
238 #
239 # server rejects MAIL cmd
240 # transport coding does not handle the possible RSET-and-another transaction,
241 # but always QUITs
242 server PORT_S
243 220 Greetings
244 EHLO
245 250-Hello there
246 250-PIPELINING
247 250 CHUNKING
248 MAIL FROM
249 RCPT TO
250 BDAT 329 LAST
251 *data 329
252 550 unacceptable mail-from
253 550 rcpt ungood lacking mail-from
254 500 bdat ungood lacking mail-from
255 QUIT
256 225 OK
257 ****
258 sudo exim -odf -bS
259 EHLO test
260 MAIL FROM:<sender@source.dom>
261 RCPT TO:<s@test.ex>
262 DATA
263 Subject: foo
264
265 data
266 .
267 QUIT
268 ****
269 #
270 # server tmp-rejects MAIL cmd
271 server PORT_S
272 220 Greetings
273 EHLO
274 250-Hello there
275 250-PIPELINING
276 250 CHUNKING
277 MAIL FROM
278 RCPT TO
279 BDAT 330 LAST
280 *data 330
281 450 greylisted mail-from
282 550 rcpt ungood lacking mail-from
283 500 bdat ungood lacking mail-from
284 QUIT
285 225 OK
286 ****
287 sudo exim -odf -bS
288 EHLO test
289 MAIL FROM:<sender@source.dom>
290 RCPT TO:<s1@test.ex>
291 DATA
292 Subject: foo
293
294 data
295 .
296 QUIT
297 ****
298 #
299 # server rejects RCPT cmd
300 server PORT_S
301 220 Greetings
302 EHLO
303 250-Hello there
304 250-PIPELINING
305 250 CHUNKING
306 MAIL FROM
307 RCPT TO
308 BDAT 329 LAST
309 *data 329
310 250 OK mail
311 550 no such recipient
312 500 oops bdat
313 QUIT
314 225 OK
315 ****
316 sudo exim -odf -bS
317 EHLO test
318 MAIL FROM:<sender@source.dom>
319 RCPT TO:<t@test.ex>
320 DATA
321 Subject: foo
322
323 data
324 .
325 QUIT
326 ****
327 #
328 # server rejects BDAT cmd
329 server PORT_S
330 220 Greetings
331 EHLO
332 250-Hello there
333 250-PIPELINING
334 250 CHUNKING
335 MAIL FROM
336 RCPT TO
337 BDAT 329 LAST
338 *data 329
339 250 OK mail
340 250 OK rcpt
341 500 oops bdat
342 QUIT
343 225 OK
344 ****
345 sudo exim -odf -bS
346 EHLO test
347 MAIL FROM:<sender@source.dom>
348 RCPT TO:<u@test.ex>
349 DATA
350 Subject: foo
351
352 data
353 .
354 QUIT
355 ****
356 #
357 # server tmp-rejects BDAT cmd
358 server PORT_S
359 220 Greetings
360 EHLO
361 250-Hello there
362 250-PIPELINING
363 250 CHUNKING
364 MAIL FROM
365 RCPT TO
366 BDAT 329 LAST
367 *data 329
368 250 OK mail
369 250 OK rcpt
370 400 not right now bdat
371 QUIT
372 225 OK
373 ****
374 sudo exim -odf -bS
375 EHLO test
376 MAIL FROM:<sender@source.dom>
377 RCPT TO:<v@test.ex>
378 DATA
379 Subject: foo
380
381 data
382 .
383 QUIT
384 ****
385 #
386 #
387 no_msglog_check