Testsuite: fix munge for mailq
[exim.git] / test / scripts / 0000-Basic / 0623
1 # PIPELINING of QUIT
2 need_ipv4
3 #
4 # 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 OK
11 MAIL FROM
12 250 OK mail
13 RCPT TO
14 250 OK rcpt
15 DATA
16 300 go ahead
17 .
18 QUIT
19 250 OK message data
20 221 Closing connection
21 ****
22 exim -odi good@test.ex
23 ****
24 #
25 # QUIT-pipeliining should not be done when PIPELINING not advertised
26 server PORT_D
27 220 Server ready
28 EHLO
29 250-hi there
30 250 OK
31 MAIL FROM
32 250 OK mail
33 RCPT TO
34 250 OK rcpt
35 DATA
36 300 go ahead
37 .
38 250 OK message data
39 *sleep 1
40 <<
41 QUIT
42 221 Closing connection
43 ****
44 exim -odi nopipe@test.ex
45 ****
46 #
47 # Temp-error response to message-data
48 # Check specifically for a close, and no repeated command
49 # Also check Exim's list of commands sent
50 server PORT_D
51 220 Server ready
52 EHLO
53 250-hi there
54 250-PIPELINING
55 250 OK
56 MAIL FROM
57 250 OK mail
58 RCPT TO
59 250 OK rcpt
60 DATA
61 300 go ahead
62 .
63 QUIT
64 451 Service not available
65 221 Closing connection
66 *eof
67 ****
68 exim -d-all+transport -odi tempreject@test.ex
69 ****
70 exim -Mrm $msg1
71 ****
72 #
73 # Perm-error response to message-data
74 server PORT_D
75 220 Server ready
76 EHLO
77 250-hi there
78 250-PIPELINING
79 250 OK
80 MAIL FROM
81 250 OK mail
82 RCPT TO
83 250 OK rcpt
84 DATA
85 300 go ahead
86 .
87 QUIT
88 550 content rejected
89 221 Closing connection
90 *eof
91 ****
92 exim -d-all+transport -odi permreject@test.ex
93 ****
94 #
95 # Channel-close response to message-data
96 server PORT_D
97 220 Server ready
98 EHLO
99 250-hi there
100 250-PIPELINING
101 250 OK
102 MAIL FROM
103 250 OK mail
104 RCPT TO
105 250 OK rcpt
106 DATA
107 300 go ahead
108 .
109 >*eof
110 ****
111 exim -d-all+transport -odi permreject@test.ex
112 ****
113 exim -Mrm $msg1
114 ****