Fix continued-transport with LIMITS
[exim.git] / test / scripts / 4710-esmtp-limits / 4714
1 # ESMTP LIMITS extension, client continued-connection
2 #
3 # queue up 4 messages each with 2 recipients
4 exim -odq r1_1.test.ex r1_2.test.ex
5 Subject: message 1
6 ****
7 exim -odq r2_1.test.ex r2_2.test.ex
8 Subject: message 2
9 ****
10 exim -odq r3_1.test.ex r3_2.test.ex
11 Subject: message 3
12 ****
13 #
14 exim -odq r4_1.test.ex r4_2.test.ex
15 Subject: message 4
16 ****
17 #
18 # Handed limits of 5 MAIL, 1 RCPT, expect to use 5 transactions in a one connection
19 # when the client does a 2-phase queue run, followed by three transactions in one connection
20 # from the same queue run.
21 # The second pair and third initial, completing the first connecttion, should be from
22 # continued-connection trasports, flagged by the log lines.
23 server PORT_D 2
24 220 Hi there
25 EHLO
26 250-yeah mate
27 250 LIMITS MAILMAX=5 RCPTMAX=1
28 MAIL FROM
29 250 mail cmd 1 good
30 RCPT TO
31 250 rcpt cmd good
32 DATA
33 352 go ahead
34 .
35 250 message 1 received
36 MAIL FROM
37 250 mail cmd 2 good
38 RCPT TO
39 250 rcpt cmd good
40 DATA
41 352 go ahead
42 .
43 250 message 2 received
44 MAIL FROM
45 250 mail cmd 3 good
46 RCPT TO
47 250 rcpt cmd good
48 DATA
49 352 go ahead
50 .
51 250 message 3 received
52 MAIL FROM
53 250 mail cmd 4 good
54 RCPT TO
55 250 rcpt cmd good
56 DATA
57 352 go ahead
58 .
59 250 message 4 received
60 MAIL FROM
61 250 mail cmd 5 good
62 RCPT TO
63 250 rcpt cmd good
64 DATA
65 352 go ahead
66 .
67 250 message 5 received
68 QUIT
69 221 bye
70 *eof
71 220 Hi there
72 EHLO
73 250-yeah mate
74 250 LIMITS MAILMAX=5 RCPTMAX=1
75 MAIL FROM
76 250 mail cmd 1 good
77 RCPT TO
78 250 rcpt cmd good
79 DATA
80 352 go ahead
81 .
82 250 message 6 received
83 MAIL FROM
84 250 mail cmd 2 good
85 RCPT TO
86 250 rcpt cmd good
87 DATA
88 352 go ahead
89 .
90 250 message 7 received
91 MAIL FROM
92 250 mail cmd 3 good
93 RCPT TO
94 250 rcpt cmd good
95 DATA
96 352 go ahead
97 .
98 250 message 8 received
99 QUIT
100 221 bye
101 *eof
102 ****
103 #
104 exim -qq
105 ****