PRDR support, if compiled with EXPERIMENTAL_PRDR
[exim.git] / test / scripts / 5500-PRDR / 5510
1 # PRDR client
2 need_ipv4
3 no_msglog_check
4 #
5 # 1: Two recipients, accepted by full PRDR response sequence
6 server PORT_S
7 220 Server ready
8 EHLO
9 250-
10 250-PRDR
11 250 OK
12 MAIL FROM:<userx@test.ex> PRDR
13 250 OK
14 RCPT TO
15 250 OK
16 RCPT TO
17 250 OK
18 DATA
19 300 gimme yer body
20 .
21 353 prdr responses coming up
22 250 first rcpt was good
23 250 second rcpt was good
24 250 OK, overall
25 QUIT
26 250 OK
27 ****
28 exim -odi -f userx usery userz
29 Some message text.
30 ****
31 #
32 #
33 # 2: Two recipients, accepted by traditional response
34 # though client offered full PRDR capability
35 server PORT_S
36 220 Server ready
37 EHLO
38 250-
39 250-PRDR
40 250 OK
41 MAIL FROM:<userx@test.ex> PRDR
42 250 OK
43 RCPT TO
44 250 OK
45 RCPT TO
46 250 OK
47 DATA
48 300 gimme that body
49 .
50 250 OK got that
51 QUIT
52 250 OK, bye
53 ****
54 exim -odi -f userx user2.1 user2.2
55 Some message text.
56 ****
57 #
58 #
59 # 3: Two recipients, one accepted one tmp-rejected
60 server PORT_S
61 220 Server ready
62 EHLO
63 250-
64 250-PRDR
65 250 OK
66 MAIL FROM:<userx@test.ex> PRDR
67 250 OK
68 RCPT TO
69 250 OK
70 RCPT TO
71 250 OK
72 DATA
73 300 gimme yer body
74 .
75 353 prdr responses coming up
76 250 first rcpt was good
77 450 cannot handle second rcpt right now
78 250 OK, overall
79 QUIT
80 250 OK
81 ****
82 exim -odi -f userx usery userz
83 Some message text.
84 ****
85 #
86 #
87 # 4: Two recipients, one accepted one rejected
88 # Avoid tester issues dealing with the bounce by sending
89 # with a null from.
90 #
91 server PORT_S
92 220 Server ready
93 EHLO
94 250-
95 250-PRDR
96 250 OK
97 MAIL FROM:<> PRDR
98 250 OK
99 RCPT TO
100 250 OK
101 RCPT TO
102 250 OK
103 DATA
104 300 gimme yer body
105 .
106 353 prdr responses coming up
107 250 first rcpt was good
108 550 second rcpt does not like content
109 250 OK, overall
110 QUIT
111 250 OK
112 ****
113 exim -odi -f "" userp userq
114 Some message text.
115 ****
116 #
117 #
118 # 5: Two recipients, rejected by final after PRDR accepts.
119 #
120 server PORT_S
121 220 Server ready
122 EHLO
123 250-
124 250-PRDR
125 250 OK
126 MAIL FROM:<> PRDR
127 250 OK
128 RCPT TO
129 250 OK
130 RCPT TO
131 250 OK
132 DATA
133 300 yeah baby
134 .
135 353 prdr responses coming up
136 250 first rcpt was good
137 250 second rcpt was good
138 550 oops, overall rejection
139 QUIT
140 250 OK
141 ****
142 exim -odi -f "" user5.1 user5.2
143 text
144 ****
145 #
146 #
147 # 6: Two recipients, rejected traditionally though PRDR negociated.
148 #
149 server PORT_S
150 220 Server ready
151 EHLO
152 250-
153 250-PRDR
154 250 OK
155 MAIL FROM:<> PRDR
156 250 OK
157 RCPT TO
158 250 OK
159 RCPT TO
160 250 OK
161 DATA
162 300 yeah baby
163 .
164 550 naah mate
165 QUIT
166 250 OK
167 ****
168 exim -odi -f "" user6.1 user6.2
169 text
170 ****
171 #
172 #
173 # 7: Temp-reject at final
174 server PORT_S
175 220 Server ready
176 EHLO
177 250-
178 250-PRDR
179 250 OK
180 MAIL FROM:<> PRDR
181 250 OK
182 RCPT TO
183 250 OK
184 RCPT TO
185 250 OK
186 RCPT TO
187 250 OK
188 DATA
189 300 go ahead
190 .
191 353 prdr responses coming up
192 250 first rcpt does not like you
193 250 second rcpt has a temporary problem
194 250 third rcpt is ok
195 450 oops, try again later please
196 QUIT
197 250 OK
198 ****
199 exim -odi -f "" user7.1 user7.2 user7.3
200 text
201 ****
202 #
203 #
204 #
205 # 8: Client should avoid requesting PRDR for a single-recipient mail
206 # even though the server offers
207 server PORT_S
208 220 Server ready
209 EHLO
210 250-
211 250-PRDR
212 250 OK
213 MAIL FROM:<>
214 250 OK
215 RCPT TO
216 250 OK
217 DATA
218 300 go ahead
219 .
220 250 OK, got that
221 QUIT
222 250 OK, bye
223 ****
224 exim -odi -f "" user8.1
225 text
226 ****
227 #
228 #