testsuite: interlock callout tests
[exim.git] / test / scripts / 0000-Basic / 0581
... / ...
CommitLineData
1# callout lazy-close, smtp send
2need_ipv4
3#
4# a recipient verify and continued-delivery
5# smtp send
6server PORT_S
7220 Welcome
8EHLO
9250 Hi
10MAIL FROM
11250 OK
12RCPT TO
13250 OK
14DATA
15354 hit me
16.
17250 yeah got that message
18QUIT
19221 Bye
20****
21#
22exim -DSERVER=server -bd -oX PORT_D
23****
24#
25client 127.0.0.1 PORT_D
26??? 220
27EHLO test.ex
28??? 250-
29??? 250-
30??? 250-
31??? 250-
32??? 250
33MAIL FROM:<userc@ok.example>
34??? 250
35RCPT TO:<userd@test.ex>
36??? 250
37DATA
38??? 354
39Subject: test
40
41body
42.
43??? 250
44QUIT
45??? 221
46****
47sleep 1
48killdaemon
49#
50exim -z 'test2'
51****
52#
53# smtp send, deliver_drop_priv
54server PORT_S
55220 Welcome
56EHLO
57250 Hi
58MAIL FROM
59250 OK
60RCPT TO
61250 OK
62DATA
63354 hit me
64.
65250 yeah got that message
66QUIT
67221 Bye
68****
69#
70exim -DSERVER=server -DOPT=deliver_drop_privilege -bd -oX PORT_D
71****
72#
73client 127.0.0.1 PORT_D
74??? 220
75EHLO test.ex
76??? 250-
77??? 250-
78??? 250-
79??? 250-
80??? 250
81MAIL FROM:<usere@ok.example>
82??? 250
83RCPT TO:<userf@test.ex>
84??? 250
85DATA
86??? 354
87Subject: test
88
89body
90.
91??? 250
92QUIT
93??? 221
94****
95sleep 1
96killdaemon
97#
98#
99exim -z 'test3'
100****
101# multiple recipients
102# 1st callout result is cached (above); should not activate LCC
103# smtp send
104server PORT_S 2
105220 Welcome
106EHLO
107250 Hi
108MAIL FROM
109250 OK
110RCPT TO:<userd2@test.ex>
111250 OK
112QUIT
113221 Bye
114*eof
115220 Welcome
116EHLO
117250 Hi
118MAIL FROM
119250 OK
120RCPT TO:<userd@test.ex>
121250 OK
122RCPT TO:<userd2@test.ex>
123250 OK
124DATA
125354 hit me
126.
127250 yeah got that message
128QUIT
129221 Bye
130****
131#
132exim -d+all -DSERVER=server -bd -oX PORT_D
133****
134#
135client 127.0.0.1 PORT_D
136??? 220
137EHLO test.ex
138??? 250-
139??? 250-
140??? 250-
141??? 250-
142??? 250
143MAIL FROM:<userc@ok.example>
144??? 250
145RCPT TO:<userd@test.ex>
146??? 250
147RCPT TO:<userd2@test.ex>
148??? 250
149DATA
150??? 354
151Subject: test
152
153body
154.
155??? 250
156QUIT
157??? 221
158****
159sleep 1
160#
161#
162exim -z 'test4'
163****
164# 2nd callout result is cached (above); should not activate LCC
165# smtp send
166server PORT_S 2
167220 Welcome
168EHLO
169250 Hi
170MAIL FROM
171250 OK
172RCPT TO:<userd3@test.ex>
173250 OK
174QUIT
175221 Bye
176*eof
177220 Welcome
178EHLO
179250 Hi
180MAIL FROM
181250 OK
182RCPT TO:<userd3@test.ex>
183250 OK
184RCPT TO:<userd2@test.ex>
185250 OK
186DATA
187354 hit me
188.
189250 yeah got that message
190QUIT
191221 Bye
192****
193#
194# XXX this test intermittently fails, at this client...
195# the client gets a 451 rcpt-v fail for userd3
196# the stderr-server says it got a conn-refused for the verify callout, which should have
197# gone to the above "server" command, first of the 2 conns it is expecting
198# the stdout-server shows "server" handling the previous subtest (userd, userd2) fine, plus
199# a fresh "server" startup and listen. Which should have been this one... perhaps it was
200# not there in time? Add server-wait synch point for _previous_ server, using dummy "exim -z".
201client 127.0.0.1 PORT_D
202??? 220
203EHLO test.ex
204??? 250-
205??? 250-
206??? 250-
207??? 250-
208??? 250
209MAIL FROM:<userc@ok.example>
210??? 250
211RCPT TO:<userd3@test.ex>
212??? 250
213RCPT TO:<userd2@test.ex>
214??? 250
215DATA
216??? 354
217Subject: test
218
219body
220.
221??? 250
222QUIT
223??? 221
224****
225sleep 1
226#
227#
228exim -z 'test5'
229****
230# no cache hits; should do LCC
231# smtp send
232server PORT_S 2
233220 Welcome
234EHLO
235250 Hi
236MAIL FROM
237250 OK
238RCPT TO:<userd4@test.ex>
239250 OK
240RCPT TO:<userd5@test.ex>
241250 OK
242DATA
243354 hit me
244.
245250 yeah got that message
246QUIT
247221 Bye
248****
249#
250client 127.0.0.1 PORT_D
251??? 220
252EHLO test.ex
253??? 250-
254??? 250-
255??? 250-
256??? 250-
257??? 250
258MAIL FROM:<userc@ok.example>
259??? 250
260RCPT TO:<userd4@test.ex>
261??? 250
262RCPT TO:<userd5@test.ex>
263??? 250
264DATA
265??? 354
266Subject: test
267
268body
269.
270??? 250
271QUIT
272??? 221
273****
274sleep 1
275killdaemon
276#
277#
278no_stdout_check
279no_stderr_check
280no_msglog_check