Testsuite: testcases for rejected rcpt-callout-triggered cutthrough
[users/jgh/exim.git] / test / scripts / 5400-cutthrough / 5401
1 # cutthrough_delivery triggered by recipient-verify
2 need_ipv4
3 #
4 server PORT_S
5 220 ESMTP
6 EHLO
7 250 OK
8 MAIL FROM:
9 250 Sender OK
10 RCPT TO:
11 250 Recipient OK
12 DATA
13 354 Send data
14 .
15 250 OK
16 QUIT
17 250 OK
18 ****
19 exim -bs -odf
20 EHLO myhost.test.ex
21 MAIL FROM:<CALLER@myhost.test.ex>
22 RCPT TO:<userx@domain.com>
23 DATA
24
25 .
26 QUIT
27 ****
28 #
29 #
30 #
31 # cutthrough for denied recipient
32 # deny should be reflected to originator
33 # as this was a real rcpt-verify
34 server PORT_S
35 220 ESMTP
36 EHLO
37 250 OK
38 MAIL FROM:
39 250 Sender OK
40 RCPT TO:
41 550 No mate
42 QUIT
43 250 OK
44 *eof
45 ****
46 exim -bs -odf
47 EHLO myhost.test.ex
48 MAIL FROM:<CALLER@myhost.test.ex>
49 RCPT TO:<no@domain.com>
50 QUIT
51 ****
52 #
53 #
54 # lose the cached callout fail record
55 sudo rm DIR/spool/db/callout
56 #
57 # cutthrough for 2 recipients in one domain
58 # first one denied
59 # so we get a 3rd conn with the traditional delivery
60 # (for just the second because it was a real verify=recipient)
61 server PORT_S 3
62 220 ESMTP
63 EHLO
64 250 OK
65 MAIL FROM:
66 250 Sender OK
67 RCPT TO:
68 550 Not that one
69 QUIT
70 250 OK
71 *eof
72 220 ESMTP
73 EHLO
74 250 OK
75 MAIL FROM:
76 250 Sender OK
77 RCPT TO:
78 250 ok rcpt-1
79 QUIT
80 250 OK
81 *eof
82 220 ESMTP
83 EHLO
84 250 OK
85 MAIL FROM:
86 250 Sender OK
87 RCPT TO:
88 250 ok rcpt-1
89 DATA
90 354 Send data
91 .
92 250 OK
93 QUIT
94 250 OK
95 *eof
96 ****
97 #
98 # Foregound delivery needed else the following subtest reception logging happens before this ones
99 # delivery process logs and terminates; the interlock is only on the parent exim terminating.
100 exim -bs -odf
101 EHLO myhost.test.ex
102 MAIL FROM:<CALLER@myhost.test.ex>
103 RCPT TO:<no@domain.com>
104 RCPT TO:<userx@domain.com>
105 DATA
106
107 .
108 QUIT
109 ****
110 #
111 #
112 #