Testsuite: fix munge for mailq
[exim.git] / test / scripts / 0000-Basic / 0473
1 # recipient callouts - sender/postmaster caching and QUIT after timeout
2 need_ipv4
3 #
4 server PORT_S 3
5 220 Server ready
6 EHLO
7 250 OK
8 MAIL FROM
9 250 OK
10 RCPT TO
11 250 OK
12 QUIT
13 250 OK
14 *eof
15 220 Server ready
16 EHLO
17 250 OK
18 MAIL FROM
19 250 OK
20 RCPT TO
21 250 OK
22 QUIT
23 250 OK
24 *eof
25 220 Server ready
26 EHLO
27 250 OK
28 MAIL FROM
29 550 NOTOK
30 QUIT
31 250 OK
32 ****
33 exim -bs
34 ehlo xxxx
35 mail from: s1@test.ex
36 rcpt to: r1@test.ex
37 rset
38 mail from: s1@test.ex
39 rcpt to: r1@test.ex
40 rset
41 mail from: s2@test.ex
42 rcpt to: r1@test.ex
43 rset
44 mail from: s3@other.ex
45 rcpt to: r3@other.ex
46 rset
47 mail from: s4@other.ex
48 rcpt to: r4@other.ex
49 rset
50 quit
51 ****
52 server PORT_S
53 220 Server ready
54 EHLO
55 250 OK
56 MAIL FROM
57 250 OK
58 RCPT TO
59 250 OK
60 QUIT
61 250 OK
62 ****
63 exim -DUSE_SENDER= -bs
64 ehlo xxxx
65 mail from: x9@test.ex
66 rcpt to: r1@test.ex
67 quit
68 ****
69 server PORT_S
70 220 Server ready
71 EHLO
72 250 OK
73 MAIL FROM
74 250 OK
75 RCPT TO
76 250 OK
77 QUIT
78 250 OK
79 ****
80 exim -DUSE_SENDER=,use_postmaster -bs
81 ehlo xxxx
82 mail from: x9@test.ex
83 rcpt to: r1@test.ex
84 quit
85 ****
86 server PORT_S
87 220 server ready
88 EHLO
89 250 OK
90 MAIL FROM
91 250 OK
92 RCPT TO
93 550 NO
94 QUIT
95 250 OK
96 ****
97 # A rcpt refusal
98 exim -bs
99 ehlo xxxx
100 mail from:<x9@test.ex>
101 rcpt to:<r9@test.ex>
102 quit
103 ****
104 # A repeat should use the cache
105 exim -bs
106 ehlo xxxx
107 mail from:<x9@test.ex>
108 rcpt to:<r9@test.ex>
109 quit
110 ****
111 server PORT_S
112 220 server ready
113 EHLO
114 250 OK
115 MAIL FROM
116 250 OK
117 RCPT TO
118 550 NO
119 QUIT
120 250 OK
121 ****
122 # Ditto for sender verify
123 exim -DACL_RCPT=acl_rcpt_sender -bs
124 ehlo xxxx
125 mail from:<x9@test.ex>
126 rcpt to:<r9@test.ex>
127 quit
128 ****
129 # Repeat for cache
130 exim -DACL_RCPT=acl_rcpt_sender -bs
131 ehlo xxxx
132 mail from:<x9@test.ex>
133 rcpt to:<r9@test.ex>
134 quit
135 ****
136 server PORT_S
137 220 Server ready
138 EHLO
139 250 OK
140 MAIL FROM
141 250 OK
142 RCPT TO
143 250 OK
144 QUIT
145 250 OK
146 ****
147 # an accepted random
148 exim -DUSE_SENDER=,defer_ok,random,use_postmaster -bs
149 ehlo xxxx
150 mail from: x11@two.test.ex
151 rcpt to: r11@two.test.ex
152 quit
153 ****
154 dump callout
155 # repeat from cache
156 exim -DUSE_SENDER=,defer_ok,random,use_postmaster -bs
157 ehlo xxxx
158 mail from: x11@two.test.ex
159 rcpt to: r11@two.test.ex
160 quit
161 ****
162 #
163 # callout target dumps after random-reject
164 server PORT_S 2
165 220 Server ready
166 EHLO
167 250 OK
168 MAIL FROM
169 250 OK
170 RCPT TO
171 550 Bad receipient, dropping conn
172 >*eof
173 220 Server ready
174 EHLO
175 250 OK
176 MAIL FROM
177 250 OK
178 RCPT TO
179 250 OK
180 QUIT
181 250 OK
182 ****
183 exim -DUSE_SENDER=,random -bs
184 ehlo xxxx
185 mail from: x12@three.test.ex
186 rcpt to: r12@three.test.ex
187 quit
188 ****
189 dump callout
190 server PORT_S
191 220 Server ready
192 EHLO
193 250 OK
194 MAIL FROM
195 250 OK
196 RCPT TO
197 *sleep 2
198 ****
199 exim -DUSE_SENDER=  -bs -d-all+verify -v
200 ehlo xxxx
201 mail from: x11@two.test.ex
202 rcpt to: r11@two.test.ex
203 quit
204 ****
205 server PORT_S
206 *sleep 2
207 ****
208 exim -DUSE_SENDER=  -bs -d-all+verify -v
209 ehlo xxxx
210 mail from: x11@two.test.ex
211 rcpt to: r11@two.test.ex
212 quit
213 ****