Early-pipe: invalidate cache on a failure of required-auth
[exim.git] / test / scripts / 4056-pipe-conn-auth / 4056
1 # AUTH
2 #
3 # Not attempted without a cache entry
4 exim -bd -DSERVER=server -oX PORT_D
5 ****
6 #
7 exim a@test.ex
8 Subject: test 1
9
10 ****
11 exim -q
12 ****
13 exim -Mrm $msg1
14 ****
15 #
16 #
17 #
18 # Go for it.  This one should do (limited) early-pipelinng.
19 exim b@test.ex
20 Subject: test 2
21
22 ****
23 exim -q
24 ****
25 # that should have gone to the server; deliver it there to blackhole
26 exim -DNOTDAEMON -DSERVER=server -q
27 ****
28 #
29 #
30 killdaemon
31 #
32 #
33 #
34 #
35 # Now have the server stop advertising AUTH
36 # Trying to use it will be attempted, fail, and should result in the cache being invalidated
37 # The message should be deferred; so still queued
38 exim -bd -DSERVER=server -DAA=no -oX PORT_D
39 ****
40 exim -odi c@test.ex
41 Subject: test 3
42
43 ****
44 killdaemon
45 #
46 exim -Mrm $msg1
47 ****
48 #
49 # Tidy the retry db, for test purposes
50 sudo rm DIR/spool/db/retry
51 #
52 #
53 # Then, advertising again, initial attempt should not get early-pipe
54 # but should go through
55 exim -bd -DSERVER=server -oX PORT_D
56 ****
57 exim -odi d@test.ex
58 Subject: test 4
59
60 ****
61 killdaemon
62 #
63 no_msglog_check