c6979899b9cb7dcd3209c0c643dbc8ea0f7946c6
[exim.git] / test / scripts / 0000-Basic / 0911
1 # CHUNKING and PIPELINING of QUIT
2 need_ipv4
3 #
4 # Chunking Baseline: no error.  Check the QUIT arrived befre we ack message-data
5 server PORT_D
6 220 Server ready
7 EHLO
8 250-hi there
9 250-PIPELINING
10 250-CHUNKING
11 250 OK
12 MAIL FROM
13 RCPT TO
14 BDAT 313 LAST
15 250 OK mail
16 250 OK rcpt
17 *data 313
18 QUIT
19 250 OK chunked message data
20 221 Closing connection
21 ****
22 sudo exim -d-all+transport -odi -bs
23 helo tester
24 mail from:<fred@myhost.test.ex>
25 rcpt to:<good@test.ex>
26 data
27 .
28 quit
29 ****
30 #
31 # QUIT-pipeliining should not be done when PIPELINING not advertised
32 server PORT_D
33 220 Server ready
34 EHLO
35 250-hi there
36 250-CHUNKING
37 250 OK
38 MAIL FROM
39 250 OK mail
40 RCPT TO
41 250 OK rcpt
42 BDAT 315 LAST
43 *data 315
44 250 OK chunked message data
45 QUIT
46 221 Closing connection
47 ****
48 sudo exim -d-all+transport -odi -bs
49 helo tester
50 mail from:<fred@myhost.test.ex>
51 rcpt to:<nopipe@test.ex>
52 data
53 .
54 quit
55 ****
56 #
57 # Temp-error response to message-data
58 # Check specifically for a close, and no repeated command
59 # Also check Exim's list of commands sent
60 server PORT_D
61 220 Server ready
62 EHLO
63 250-hi there
64 250-PIPELINING
65 250-CHUNKING
66 250 OK
67 MAIL FROM
68 250 OK mail
69 RCPT TO
70 250 OK rcpt
71 BDAT 319 LAST
72 *data 319
73 QUIT
74 451 Service not available
75 221 Closing connection
76 *eof
77 ****
78 sudo exim -d-all+transport -odi -bs
79 helo tester
80 mail from:<fred@myhost.test.ex>
81 rcpt to:<tempreject@test.ex>
82 data
83 .
84 quit
85 ****
86 exim -Mrm $msg1
87 ****
88 #
89 # Perm-error response to message-data
90 server PORT_D
91 220 Server ready
92 EHLO
93 250-hi there
94 250-PIPELINING
95 250-CHUNKING
96 250 OK
97 MAIL FROM
98 250 OK mail
99 RCPT TO
100 250 OK rcpt
101 BDAT 319 LAST
102 *data 319
103 QUIT
104 550 content rejected
105 221 Closing connection
106 *eof
107 ****
108 sudo exim -d-all+transport -odi -bs
109 helo tester
110 mail from:<fred@myhost.test.ex>
111 rcpt to:<permreject@test.ex>
112 data
113 .
114 quit
115 ****
116 #
117 # Channel-close response to message-data
118 server PORT_D
119 220 Server ready
120 EHLO
121 250-hi there
122 250-PIPELINING
123 250-CHUNKING
124 250 OK
125 MAIL FROM
126 250 OK mail
127 RCPT TO
128 250 OK rcpt
129 BDAT 317 LAST
130 *data 317
131 >*eof
132 ****
133 sudo exim -d-all+transport -odi -bs
134 helo tester
135 mail from:<fred@myhost.test.ex>
136 rcpt to:<dataloss@test.ex>
137 data
138 .
139 quit
140 ****
141 exim -Mrm $msg1
142 ****