5e88c5ae99856aa228b7110d5caa61503bfafb8b
[exim.git] / test / scripts / 0000-Basic / 0901
1 # CHUNKING reception, no pipelining
2 exim -DSERVER=server -bd -oX PORT_D
3 ****
4 #
5 # plain, small message (no body)
6 client 127.0.0.1 PORT_D
7 ??? 220
8 ehlo tester
9 ??? 250-
10 ??? 250-SIZE
11 ??? 250-8BITMIME
12 ??? 250-CHUNKING
13 ??? 250 HELP
14 mail from:someone1@some.domain
15 ??? 250
16 rcpt to:CALLER@test.ex
17 ??? 250
18 bdat 88 last
19 To: Susan@random.com
20 From: Sam@random.com
21 Subject: This is a bodyless test message
22
23 ??? 250-
24 ??? 250
25 quit
26 ??? 221
27 ****
28 #
29 # plain, small message (with body)
30 # nonlast 1st bdat, noop, last-bdat(0)
31 # immediate followon 2nd message
32 client 127.0.0.1 PORT_D
33 ??? 220
34 ehlo tester
35 ??? 250-
36 ??? 250-
37 ??? 250-
38 ??? 250-
39 ??? 250
40 mail from:someone2@some.domain
41 ??? 250
42 rcpt to:CALLER@test.ex
43 ??? 250
44 bdat 100
45 To: Susan@random.com
46 From: Sam@random.com
47 Subject: This is a bodyfull test message
48
49 1234567890
50 ??? 250
51 noop
52 ??? 250
53 bdat 0 last
54 ??? 250-
55 ??? 250
56 mail from:someone3@some.domain
57 ??? 250
58 rcpt to:CALLER@test.ex
59 ??? 250
60 bdat 10
61 >>> To: Susan@
62 ??? 250
63 bdat 78 last
64 random.com
65 From: Sam@random.com
66 Subject: This is a bodyless test message
67
68 ??? 250-
69 ??? 250
70 quit
71 ??? 221
72 ****
73 #
74 # plain, small message (with body)
75 # nonlast 1st bdat, noop, last-bdat(0) INCORRECTLY PIPELINED
76 # immediate followon 2nd message
77 client 127.0.0.1 PORT_D
78 ??? 220
79 ehlo tester
80 ??? 250-
81 ??? 250-
82 ??? 250-
83 ??? 250-
84 ??? 250
85 mail from:someone2A@some.domain
86 ??? 250
87 rcpt to:CALLER@test.ex
88 ??? 250
89 bdat 100
90 To: Susan@random.com
91 From: Sam@random.com
92 Subject: This is a bodyfull test message
93
94 1234567890
95 ??? 250
96 noop
97 ??? 250
98 bdat 0 last
99 ??? 250-
100 ??? 250
101 mail from:someone3A@some.domain
102 ??? 250
103 rcpt to:CALLER@test.ex
104 ??? 250
105 bdat 10
106 >>> To: Susan@
107 ??? 250
108 bdat 78 last
109 random.com
110 From: Sam@random.com
111 Subject: This is a bodyless test message
112
113 ??? 250-
114 ??? 250
115 quit
116 ??? 221
117 ****
118 #
119 # not enough data in chunk
120 #
121 client 127.0.0.1 PORT_D
122 ??? 220
123 ehlo tester
124 ??? 250-
125 ??? 250-
126 ??? 250-
127 ??? 250-
128 ??? 250
129 mail from:someone4@some.domain
130 ??? 250
131 rcpt to:CALLER@test.ex
132 ??? 250
133 bdat 89 last
134 To: Susan@random.com
135 From: Sam@random.com
136 Subject: This is a bodyless test message
137
138 ??? 421
139 ****
140 #
141 # protocol failure cases
142 #
143 client 127.0.0.1 PORT_D
144 ??? 220
145 ehlo tester
146 ??? 250-
147 ??? 250-
148 ??? 250-
149 ??? 250-
150 ??? 250
151 mail from:someone5@some.domain
152 ??? 250
153 rcpt to:CALLER@test.ex
154 ??? 250
155 bdat 88
156 To: Susan@random.com
157 From: Sam@random.com
158 Subject: This is a bodyless test message
159
160 ??? 250
161 bdat 0
162 ??? 504
163 quit
164 ??? 221
165 ****
166 #
167 # followon EHLO and another message
168 client 127.0.0.1 PORT_D
169 ??? 220
170 ehlo tester
171 ??? 250-
172 ??? 250-
173 ??? 250-
174 ??? 250-
175 ??? 250
176 mail from:someone6@some.domain
177 ??? 250
178 rcpt to:CALLER@test.ex
179 ??? 250
180 bdat 88
181 To: Susan@random.com
182 From: Sam@random.com
183 Subject: This is a bodyless test message
184
185 ??? 250
186 data
187 ??? 503
188 RSET
189 ??? 250
190 EHLO tester
191 ??? 250-
192 ??? 250-
193 ??? 250-
194 ??? 250-
195 ??? 250
196 mail from:someone7@some.domain
197 ??? 250
198 rcpt to:CALLER@test.ex
199 ??? 250
200 bdat 88
201 To: Susan@random.com
202 From: Sam@random.com
203 Subject: This is a bodyless test message
204
205 ??? 250
206 data
207 ??? 503
208 data
209 ??? 503
210 quit
211 ??? 221
212 ****
213 #
214 # plain, small message (no body), chunk data with bdat line
215 client 127.0.0.1 PORT_D
216 ??? 220
217 ehlo tester
218 ??? 250-
219 ??? 250-SIZE
220 ??? 250-8BITMIME
221 ??? 250-CHUNKING
222 ??? 250 HELP
223 mail from:someone8@some.domain
224 ??? 250
225 rcpt to:CALLER@test.ex
226 ??? 250
227 bdat 88 last\r\nTo: Susan@random.com
228 From: Sam@random.com
229 Subject: This is a bodyless test message
230
231 ??? 250-
232 ??? 250
233 quit
234 ??? 221
235 ****
236 #
237 # plain, small message (no body), 2 chunks, pipeline sync error for 2nd
238 client 127.0.0.1 PORT_D
239 ??? 220
240 ehlo tester
241 ??? 250-
242 ??? 250-SIZE
243 ??? 250-8BITMIME
244 ??? 250-CHUNKING
245 ??? 250 HELP
246 MAIL FROM:someone9@some.domain
247 ??? 250
248 RCPT TO:CALLER@test.ex
249 ??? 250
250 BDAT 1\r\nTBDAT 87 last
251 o: Susan@random.com
252 From: Sam@random.com
253 Subject: This is a bodyless test message
254
255 ??? 554 SMTP synchronization error
256 ****
257 #
258 #
259 killdaemon
260 no_msglog_check