Avoid trying to talk TLS over a known-closed channel
[exim.git] / test / scripts / 5910-REQUIRETLS / 5911
1 # REQUIRETLS bounce cases
2 #
3 munge tls_anycipher
4 #
5 # Server does not offer STARTTLS
6 server PORT_D
7 220 Hi there
8 EHLO
9 250 wotcher
10 QUIT
11 *eof
12 ****
13 exim -DOPT=requiretls -odf -bs
14 MAIL FROM:<a@test.ex>
15 RCPT TO:<a@test.ex>
16 DATA
17
18 .
19 QUIT
20 ****
21 # ... the resulting bounce must be delivered with REQUIRETLS
22 exim -DSERVER=server -bd -oX PORT_D
23 ****
24 exim -qf
25 ****
26 killdaemon
27 #
28 #
29 # Server does not offer REQUIRETLS
30 # Client message upgraded in-MTA for "require"
31 exim -DSERVER=server -DSRV='' -bd -oX PORT_D
32 ****
33 exim -DOPT=requiretls -odf -bs
34 MAIL FROM:<b@test.ex>
35 RCPT TO:<b@test.ex>
36 DATA
37
38 .
39 QUIT
40 ****
41 exim -qf
42 ****
43 exim -qf
44 ****
45 killdaemon
46 #
47 #
48 # Server does not offer REQUIRETLS
49 # Client message received with REQUIRETLS
50 exim -DSERVER=server -bd -oX PORT_S
51 ****
52 client-ssl 127.0.0.1 PORT_S
53 ??? 220
54 EHLO test.ex
55 ??? 250-
56 ??? 250-SIZE
57 ??? 250-8BITMIME
58 ??? 250-PIPELINING
59 ??? 250-STARTTLS
60 ??? 250 HELP
61 STARTTLS
62 ??? 220
63 EHLO test.ex
64 ??? 250-
65 ??? 250-SIZE
66 ??? 250-8BITMIME
67 ??? 250-PIPELINING
68 ??? 250-REQUIRETLS
69 ??? 250 HELP
70 MAIL FROM:<b@test.ex> REQUIRETLS
71 ??? 250
72 RCPT TO:<d@test.ex>
73 ??? 250
74 DATA
75 ??? 354
76 Subject: foo
77
78 content
79 .
80 ??? 250
81 QUIT
82 ??? 221
83 ****
84 killdaemon
85 exim -DSERVER=server -DSRV='' -bd -oX PORT_D
86 ****
87 exim -qf
88 ****
89 exim -qf
90 ****
91 killdaemon
92 #
93 #
94 # Server refuses MAIL
95 exim -DSERVER=server -bd -oX PORT_D
96 ****
97 sudo exim -DOPT=requiretls -odf -f a@serverrefusethis.ex c@test.ex
98
99 ****
100 exim -qf
101 ****
102 exim -qf
103 ****
104 killdaemon
105 #
106 # Server does not advertise REQUIRETLS, client tries to use it anyway
107 exim -DSERVER=server -bd -oX PORT_D
108 ****
109 client-ssl 127.0.0.1 PORT_D
110 ??? 220
111 EHLO test.ex
112 ??? 250-
113 ??? 250-SIZE
114 ??? 250-8BITMIME
115 ??? 250-PIPELINING
116 ??? 250-STARTTLS
117 ??? 250 HELP
118 MAIL FROM:<d@test.ex> REQUIRETLS
119 ??? 555
120 QUIT
121 ??? 221
122 ???*eof
123 ****
124 killdaemon
125 no_msglog_check