a52359966c3ac19b8c35037db7dc9748b1fc89c4
[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@bdat 78 last
62 ??? 250
63 random.com
64 From: Sam@random.com
65 Subject: This is a bodyless test message
66
67 ??? 250-
68 ??? 250
69 quit
70 ??? 221
71 ****
72 #
73 # not enough data in chunk
74 #
75 client 127.0.0.1 PORT_D
76 ??? 220
77 ehlo tester
78 ??? 250-
79 ??? 250-
80 ??? 250-
81 ??? 250-
82 ??? 250 
83 mail from:someone4@some.domain
84 ??? 250
85 rcpt to:CALLER@test.ex
86 ??? 250
87 bdat 89 last
88 To: Susan@random.com
89 From: Sam@random.com
90 Subject: This is a bodyless test message
91
92 ??? 421
93 ****
94 #
95 # protocol failure cases
96 #
97 client 127.0.0.1 PORT_D
98 ??? 220
99 ehlo tester
100 ??? 250-
101 ??? 250-
102 ??? 250-
103 ??? 250-
104 ??? 250 
105 mail from:someone5@some.domain
106 ??? 250
107 rcpt to:CALLER@test.ex
108 ??? 250
109 bdat 88
110 To: Susan@random.com
111 From: Sam@random.com
112 Subject: This is a bodyless test message
113
114 ??? 250
115 bdat 0
116 ??? 504
117 quit
118 ??? 221
119 ****
120 #
121 # followon EHLO and another message
122 client 127.0.0.1 PORT_D
123 ??? 220
124 ehlo tester
125 ??? 250-
126 ??? 250-
127 ??? 250-
128 ??? 250-
129 ??? 250 
130 mail from:someone6@some.domain
131 ??? 250
132 rcpt to:CALLER@test.ex
133 ??? 250
134 bdat 88
135 To: Susan@random.com
136 From: Sam@random.com
137 Subject: This is a bodyless test message
138
139 ??? 250
140 data
141 ??? 503
142 RSET
143 ??? 250
144 EHLO tester
145 ??? 250-
146 ??? 250-
147 ??? 250-
148 ??? 250-
149 ??? 250 
150 mail from:someone7@some.domain
151 ??? 250
152 rcpt to:CALLER@test.ex
153 ??? 250
154 bdat 88
155 To: Susan@random.com
156 From: Sam@random.com
157 Subject: This is a bodyless test message
158
159 ??? 250
160 data
161 ??? 503
162 data
163 ??? 503
164 quit
165 ??? 221
166 ****
167 #
168 # plain, small message (no body), chunk data with bdat line
169 client 127.0.0.1 PORT_D
170 ??? 220
171 ehlo tester
172 ??? 250-
173 ??? 250-SIZE
174 ??? 250-8BITMIME
175 ??? 250-CHUNKING
176 ??? 250 HELP
177 mail from:someone8@some.domain
178 ??? 250
179 rcpt to:CALLER@test.ex
180 ??? 250
181 bdat 88 last\r\nTo: Susan@random.com
182 From: Sam@random.com
183 Subject: This is a bodyless test message
184
185 ??? 250-
186 ??? 250
187 quit
188 ??? 221
189 ****
190 #
191 # plain, small message (no body), 2 chunks, pipeline sync error for 2nd
192 client 127.0.0.1 PORT_D
193 ??? 220
194 ehlo tester
195 ??? 250-
196 ??? 250-SIZE
197 ??? 250-8BITMIME
198 ??? 250-CHUNKING
199 ??? 250 HELP
200 mail from:someone9@some.domain
201 ??? 250
202 rcpt to:CALLER@test.ex
203 ??? 250
204 bdat 1\r\nTbdat 87 last
205 To: Susan@random.com
206 From: Sam@random.com
207 Subject: This is a bodyless test message
208
209 ??? 554 SMTP synchronization error
210 ****
211 #
212 #
213 killdaemon
214 no_msglog_check