CHUNKING: fix second message on conn when first rejected
[exim.git] / test / stdout / 0900
1 Connecting to 127.0.0.1 port 1225 ... connected
2 ??? 220
3 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
4 >>> ehlo tester
5 ??? 250-
6 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
7 ??? 250-SIZE
8 <<< 250-SIZE 52428800
9 ??? 250-8BITMIME
10 <<< 250-8BITMIME
11 ??? 250-PIPELINING
12 <<< 250-PIPELINING
13 ??? 250-CHUNKING
14 <<< 250-CHUNKING
15 ??? 250 HELP
16 <<< 250 HELP
17 >>> mail from:someone@some.domain
18 ??? 250
19 <<< 250 OK
20 >>> rcpt to:CALLER@test.ex
21 ??? 250
22 <<< 250 Accepted
23 >>> bdat 88 last
24 >>> To: Susan@random.com
25 >>> From: Sam@random.com
26 >>> Subject: This is a bodyless test message
27 >>> 
28 ??? 250-
29 <<< 250- 88 byte chunk, total 88
30 ??? 250
31 <<< 250 OK id=10HmaX-0005vi-00
32 >>> quit
33 ??? 221
34 <<< 221 testhost.test.ex closing connection
35 End of script
36 Connecting to 127.0.0.1 port 1225 ... connected
37 ??? 220
38 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
39 >>> ehlo tester
40 ??? 250-
41 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
42 ??? 250-
43 <<< 250-SIZE 52428800
44 ??? 250-
45 <<< 250-8BITMIME
46 ??? 250-
47 <<< 250-PIPELINING
48 ??? 250-
49 <<< 250-CHUNKING
50 ??? 250
51 <<< 250 HELP
52 >>> mail from:someone@some.domain
53 ??? 250
54 <<< 250 OK
55 >>> rcpt to:CALLER@test.ex
56 ??? 250
57 <<< 250 Accepted
58 >>> bdat 100
59 >>> To: Susan@random.com
60 >>> From: Sam@random.com
61 >>> Subject: This is a bodyfull test message
62 >>> 
63 >>> 1234567890
64 ??? 250
65 <<< 250 100 byte chunk received
66 >>> noop
67 ??? 250
68 <<< 250 OK
69 >>> bdat 0 last
70 ??? 250-
71 <<< 250- 0 byte chunk, total 100
72 ??? 250
73 <<< 250 OK id=10HmaY-0005vi-00
74 >>> mail from:someone@some.domain
75 ??? 250
76 <<< 250 OK
77 >>> rcpt to:CALLER@test.ex
78 ??? 250
79 <<< 250 Accepted
80 >>> bdat 10
81 >>> To: Susan@bdat 78 last
82 ??? 250
83 <<< 250 10 byte chunk received
84 >>> random.com
85 >>> From: Sam@random.com
86 >>> Subject: This is a bodyless test message
87 >>> 
88 ??? 250-
89 <<< 250- 78 byte chunk, total 88
90 ??? 250
91 <<< 250 OK id=10HmaZ-0005vi-00
92 >>> quit
93 ??? 221
94 <<< 221 testhost.test.ex closing connection
95 End of script
96 Connecting to 127.0.0.1 port 1225 ... connected
97 ??? 220
98 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
99 >>> ehlo tester
100 ??? 250-
101 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
102 ??? 250-
103 <<< 250-SIZE 52428800
104 ??? 250-
105 <<< 250-8BITMIME
106 ??? 250-
107 <<< 250-PIPELINING
108 ??? 250-
109 <<< 250-CHUNKING
110 ??? 250
111 <<< 250 HELP
112 >>> mail from:some_ne@some.domain
113 ??? 250
114 <<< 250 OK
115 >>> rcpt to:CALLER@test.ex
116 ??? 250
117 <<< 250 Accepted
118 >>> bdat 100
119 >>> To: Susan@random.com
120 >>> From: Sam@random.com
121 >>> Subject: This is a bodyfull test message
122 >>> 
123 >>> 1234567890
124 ??? 250
125 <<< 250 100 byte chunk received
126 >>> noop
127 ??? 250
128 <<< 250 OK
129 >>> bdat 0 last
130 ??? 250-
131 <<< 250- 0 byte chunk, total 100
132 ??? 250
133 <<< 250 OK id=10HmbA-0005vi-00
134 >>> RSET
135 ??? 250
136 <<< 250 Reset OK
137 >>> mail from:someone@some.domain
138 ??? 250
139 <<< 250 OK
140 >>> rcpt to:CALLER@test.ex
141 ??? 250
142 <<< 250 Accepted
143 >>> bdat 10
144 >>> To: Susan@bdat 78 last
145 ??? 250
146 <<< 250 10 byte chunk received
147 >>> random.com
148 >>> From: Sam@random.com
149 >>> Subject: This is a bodyless test message
150 >>> 
151 ??? 250-
152 <<< 250- 78 byte chunk, total 88
153 ??? 250
154 <<< 250 OK id=10HmbB-0005vi-00
155 >>> quit
156 ??? 221
157 <<< 221 testhost.test.ex closing connection
158 End of script
159 Connecting to 127.0.0.1 port 1225 ... connected
160 ??? 220
161 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
162 >>> ehlo tester
163 ??? 250-
164 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
165 ??? 250-
166 <<< 250-SIZE 52428800
167 ??? 250-
168 <<< 250-8BITMIME
169 ??? 250-
170 <<< 250-PIPELINING
171 ??? 250-
172 <<< 250-CHUNKING
173 ??? 250
174 <<< 250 HELP
175 >>> mail from:someone@some.domain
176 ??? 250
177 <<< 250 OK
178 >>> rcpt to:CALLER@test.ex
179 ??? 250
180 <<< 250 Accepted
181 >>> bdat 89 last
182 >>> To: Susan@random.com
183 >>> From: Sam@random.com
184 >>> Subject: This is a bodyless test message
185 >>> 
186 ??? 421
187 <<< 421 testhost.test.ex SMTP incoming data timeout - closing connection.
188 End of script
189 Connecting to 127.0.0.1 port 1225 ... connected
190 ??? 220
191 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
192 >>> ehlo tester
193 ??? 250-
194 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
195 ??? 250-
196 <<< 250-SIZE 52428800
197 ??? 250-
198 <<< 250-8BITMIME
199 ??? 250-
200 <<< 250-PIPELINING
201 ??? 250-
202 <<< 250-CHUNKING
203 ??? 250
204 <<< 250 HELP
205 >>> mail from:someone@some.domain
206 ??? 250
207 <<< 250 OK
208 >>> rcpt to:CALLER@test.ex
209 ??? 250
210 <<< 250 Accepted
211 >>> bdat 88
212 >>> To: Susan@random.com
213 >>> From: Sam@random.com
214 >>> Subject: This is a bodyless test message
215 >>> 
216 ??? 250
217 <<< 250 88 byte chunk received
218 >>> bdat 0
219 ??? 504
220 <<< 504 zero size for BDAT command
221 >>> quit
222 ??? 221
223 <<< 221 testhost.test.ex closing connection
224 End of script
225 Connecting to 127.0.0.1 port 1225 ... connected
226 ??? 220
227 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
228 >>> ehlo tester
229 ??? 250-
230 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
231 ??? 250-
232 <<< 250-SIZE 52428800
233 ??? 250-
234 <<< 250-8BITMIME
235 ??? 250-
236 <<< 250-PIPELINING
237 ??? 250-
238 <<< 250-CHUNKING
239 ??? 250
240 <<< 250 HELP
241 >>> mail from:someone@some.domain
242 ??? 250
243 <<< 250 OK
244 >>> rcpt to:CALLER@test.ex
245 ??? 250
246 <<< 250 Accepted
247 >>> bdat 88
248 >>> To: Susan@random.com
249 >>> From: Sam@random.com
250 >>> Subject: This is a bodyless test message
251 >>> 
252 ??? 250
253 <<< 250 88 byte chunk received
254 >>> data
255 ??? 503
256 <<< 503 only BDAT permissible after non-LAST BDAT
257 >>> RSET
258 ??? 250
259 <<< 250 Reset OK
260 >>> EHLO tester
261 ??? 250-
262 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
263 ??? 250-
264 <<< 250-SIZE 52428800
265 ??? 250-
266 <<< 250-8BITMIME
267 ??? 250-
268 <<< 250-PIPELINING
269 ??? 250-
270 <<< 250-CHUNKING
271 ??? 250
272 <<< 250 HELP
273 >>> mail from:someone@some.domain
274 ??? 250
275 <<< 250 OK
276 >>> rcpt to:CALLER@test.ex
277 ??? 250
278 <<< 250 Accepted
279 >>> bdat 88
280 >>> To: Susan@random.com
281 >>> From: Sam@random.com
282 >>> Subject: This is a bodyless test message
283 >>> 
284 ??? 250
285 <<< 250 88 byte chunk received
286 >>> data
287 ??? 503
288 <<< 503 only BDAT permissible after non-LAST BDAT
289 >>> data
290 ??? 503
291 <<< 503 only RSET accepted now
292 >>> quit
293 ??? 221
294 <<< 221 testhost.test.ex closing connection
295 End of script
296 Connecting to 127.0.0.1 port 1225 ... connected
297 ??? 220
298 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
299 >>> EHLO tester
300 ??? 250-
301 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
302 ??? 250-SIZE
303 <<< 250-SIZE 52428800
304 ??? 250-8BITMIME
305 <<< 250-8BITMIME
306 ??? 250-PIPELINING
307 <<< 250-PIPELINING
308 ??? 250-CHUNKING
309 <<< 250-CHUNKING
310 ??? 250 HELP
311 <<< 250 HELP
312 >>> MAIL FROM:<someone@some.domain>\r\nRCPT TO:<CALLER@test.ex>\r\nBDAT 88 LAST\r\nTo: Susan@random.com\r\nFrom: Sam@random.com\r\nSubject: This is a bodyless test message\r\n
313 ??? 250
314 <<< 250 OK
315 ??? 250
316 <<< 250 Accepted
317 ??? 250-
318 <<< 250- 88 byte chunk, total 88
319 ??? 250
320 <<< 250 OK id=10HmbD-0005vi-00
321 >>> quit
322 ??? 221
323 <<< 221 testhost.test.ex closing connection
324 End of script
325 Connecting to 127.0.0.1 port 1225 ... connected
326 ??? 220
327 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
328 >>> EHLO tester
329 ??? 250-
330 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
331 ??? 250-SIZE
332 <<< 250-SIZE 52428800
333 ??? 250-8BITMIME
334 <<< 250-8BITMIME
335 ??? 250-PIPELINING
336 <<< 250-PIPELINING
337 ??? 250-CHUNKING
338 <<< 250-CHUNKING
339 ??? 250 HELP
340 <<< 250 HELP
341 >>> MAIL FROM:<someone@some.domain>\r\nRCPT TO:<dummy@reject.ex>\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sal@random.com\r\nSubject: This is a bodyless test message\r\nBDAT 6 LAST\r\nZZ\r\n
342 ??? 250
343 <<< 250 OK
344 ??? 550
345 <<< 550 relay not permitted
346 ??? 503-
347 <<< 503-All RCPT commands were rejected with this error:
348 ??? 503-
349 <<< 503-relay not permitted
350 ??? 503
351 <<< 503 Valid RCPT command must precede BDAT
352 ??? 503-
353 <<< 503-All RCPT commands were rejected with this error:
354 ??? 503-
355 <<< 503-relay not permitted
356 ??? 503
357 <<< 503 valid RCPT command must precede BDAT
358 >>> quit
359 ??? 221
360 <<< 221 testhost.test.ex closing connection
361 End of script
362 Connecting to 127.0.0.1 port 1225 ... connected
363 ??? 220
364 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
365 >>> EHLO tester
366 ??? 250-
367 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
368 ??? 250-SIZE
369 <<< 250-SIZE 52428800
370 ??? 250-8BITMIME
371 <<< 250-8BITMIME
372 ??? 250-PIPELINING
373 <<< 250-PIPELINING
374 ??? 250-CHUNKING
375 <<< 250-CHUNKING
376 ??? 250 HELP
377 <<< 250 HELP
378 >>> MAIL FROM:<some3ne@some.domain>\r\nRCPT TO:<dummy@reject.ex>\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sal@random.com\r\nSubject: This is a bodyless test message\r\nBDAT 6 LAST\r\nZZ\r\n
379 ??? 250
380 <<< 250 OK
381 ??? 550 relay not permitted
382 <<< 550 relay not permitted
383 ??? 503-All RCPT commands were rejected
384 <<< 503-All RCPT commands were rejected with this error:
385 ??? 503-
386 <<< 503-relay not permitted
387 ??? 503
388 <<< 503 Valid RCPT command must precede BDAT
389 ??? 503-All RCPT commands were rejected
390 <<< 503-All RCPT commands were rejected with this error:
391 ??? 503-
392 <<< 503-relay not permitted
393 ??? 503
394 <<< 503 valid RCPT command must precede BDAT
395 >>> RSET
396 ??? 250
397 <<< 250 Reset OK
398 >>> NOOP
399 ??? 250
400 <<< 250 OK
401 >>> MAIL FROM:<some4ne@some.domain>\r\nRCPT TO:<dummy@reject.ex>\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sal@random.com\r\nSubject: This is a bodyless test message\r\nBDAT 6 LAST\r\nZZ\r\n
402 ??? 250
403 <<< 250 OK
404 ??? 550
405 <<< 550 relay not permitted
406 ??? 503-All RCPT commands were rejected
407 <<< 503-All RCPT commands were rejected with this error:
408 ??? 503-
409 <<< 503-relay not permitted
410 ??? 503
411 <<< 503 Valid RCPT command must precede BDAT
412 ??? 503-
413 <<< 503-All RCPT commands were rejected with this error:
414 ??? 503-
415 <<< 503-relay not permitted
416 ??? 503
417 <<< 503 valid RCPT command must precede BDAT
418 >>> quit
419 ??? 221
420 <<< 221 testhost.test.ex closing connection
421 End of script
422 Connecting to 127.0.0.1 port 1225 ... connected
423 ??? 220
424 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
425 >>> ehlo tester
426 ??? 250-
427 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
428 ??? 250-SIZE
429 <<< 250-SIZE 52428800
430 ??? 250-8BITMIME
431 <<< 250-8BITMIME
432 ??? 250-PIPELINING
433 <<< 250-PIPELINING
434 ??? 250-CHUNKING
435 <<< 250-CHUNKING
436 ??? 250 HELP
437 <<< 250 HELP
438 >>> mail from:someone@some.domain
439 ??? 250
440 <<< 250 OK
441 >>> rcpt to:CALLER@test.ex
442 ??? 250
443 <<< 250 Accepted
444 >>> bdat 87 last
445 >>> To: Susan@random.com\n
446 >>> From: Sam@random.com
447 >>> Subject: This is a Bodyless test message
448 >>> 
449 ??? 552
450 <<< 552 Message header not CRLF terminated
451 >>> quit
452 ??? 221
453 <<< 221 testhost.test.ex closing connection
454 End of script
455 Connecting to 127.0.0.1 port 1225 ... connected
456 ??? 220
457 <<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
458 >>> ehlo tester
459 ??? 250-
460 <<< 250-testhost.test.ex Hello tester [127.0.0.1]
461 ??? 250-SIZE
462 <<< 250-SIZE 52428800
463 ??? 250-8BITMIME
464 <<< 250-8BITMIME
465 ??? 250-PIPELINING
466 <<< 250-PIPELINING
467 ??? 250-CHUNKING
468 <<< 250-CHUNKING
469 ??? 250 HELP
470 <<< 250 HELP
471 >>> mail from:someone@some.domain
472 ??? 250
473 <<< 250 OK
474 >>> rcpt to:CALLER@test.ex
475 ??? 250
476 <<< 250 Accepted
477 >>> bdat 98 last
478 >>> To: Susan@random.com
479 >>> From: Sam@random.com
480 >>> Subject: This is a bodyfull test message
481 >>> 
482 >>> 1234567890
483 ??? 250-
484 <<< 250- 98 byte chunk, total 100
485 ??? 250
486 <<< 250 OK id=10HmbE-0005vi-00
487 >>> quit
488 ??? 221
489 <<< 221 testhost.test.ex closing connection
490 End of script