summaryrefslogtreecommitdiff
path: root/test/scripts/4710-esmtp-limits/4711
blob: ffbfa07d0cdb941da142cf54c95bbf246a875b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# ESMTP LIMITS extension, client RCPTMAX
#
# Baseline: no RCPTMAX advertised, can send 5 RCPT commands
server PORT_D
220 Hi there
EHLO
250-yeah mate
250 LIMITS MAILMAX=10
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 1 good
RCPT TO
250 rcpt cmd 2 good
RCPT TO
250 rcpt cmd 3 good
RCPT TO
250 rcpt cmd 4 good
RCPT TO
250 rcpt cmd 5 good
DATA
352 go ahead
.
250 message received
QUIT
220 bye
****
exim -odi a@test.ex b@test.ex c@test.ex d@test.ex e@test.ex
****
#
# RCPTMAX advertised, limits RCPT commands
# Client should immediate-retry fusther MAIL transaction for remaning rcpts
server PORT_D
220 Hi there
EHLO
250-yeah mate
250 LIMITS RCPTMAX=2
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 1 good
RCPT TO
250 rcpt cmd 2 good
DATA
352 go ahead
.
250 message received
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 3 good
RCPT TO
250 rcpt cmd 4 good
DATA
352 go ahead
.
250 message received
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 5 good
DATA
352 go ahead
.
250 message received
QUIT
220 bye
****
exim -odi a@test.ex b@test.ex c@test.ex d@test.ex e@test.ex
****
#
# RCPTMAX advertised, overrides larger tpt max_rcpt and limits RCPT commands
server PORT_D
220 Hi there
EHLO
250-yeah mate
250 LIMITS RCPTMAX=2
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 1 good
RCPT TO
250 rcpt cmd 2 good
DATA
352 go ahead
.
250 message received
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 3 good
DATA
352 go ahead
.
250 message received
QUIT
220 bye
****
exim -odi -DRCPT_MSG=3 a@test.ex b@test.ex c@test.ex
****
#
# RCPTMAX advertised, does not override smaller tpt max_rcpt which limits RCPT commands
# Client make a separate conn for the second transaction
server PORT_D 2
220 Hi there
EHLO
250-yeah mate
250 LIMITS RCPTMAX=3
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 1 good
RCPT TO
250 rcpt cmd 2 good
DATA
352 go ahead
.
250 message received
QUIT
220 bye
*eof
220 Hi there
EHLO
250-yeah mate
250 LIMITS RCPTMAX=3
MAIL FROM
250 mail cmd good
RCPT TO
250 rcpt cmd 3 good
DATA
352 go ahead
.
250 message received
QUIT
220 bye
****
exim -odi -DRCPT_MSG=2 a@test.ex b@test.ex c@test.ex
****