fa58c7eeb41060a7b9df4b06dc21052439efda40
[exim.git] / test / scripts / 4034-xclient-tls / 4034
1 # XCLIENT under TLS
2 #
3 munge loopback
4 #
5 exim -bd -DSERVER=server -DOPTION -oX PORT_D
6 ****
7 #
8 ### (1) non-prox plain receive (not advertised) (2) XCLIENT refusal when not advertised
9 client-anytls 127.0.0.1 PORT_D
10 ??? 220
11 EHLO plainclient
12 ??? 250-
13 ??? 250-SIZE
14 ??? 250-8BITMIME
15 ??? 250-PIPELINING
16 ??? 250-STARTTLS
17 ??? 250 HELP
18 STARTTLS
19 ??? 220
20 EHLO plainclient
21 ??? 250-
22 ??? 250-SIZE
23 ??? 250-8BITMIME
24 ??? 250-PIPELINING
25 ??? 250 HELP
26 MAIL FROM:<a@test.ex>
27 ??? 250
28 RCPT TO:<b@test.ex>
29 ??? 250
30 DATA
31 ??? 354
32 Subject: test
33
34 body
35 .
36 ??? 250
37 XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242
38 ??? 550
39 QUIT
40 ??? 221
41 ****
42 #
43 ### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT
44 client-anytls HOSTIPV4 PORT_D
45 ??? 220
46 EHLO xclientproxy
47 ??? 250-
48 ??? 250-SIZE
49 ??? 250-8BITMIME
50 ??? 250-PIPELINING
51 ??? 250-STARTTLS
52 ??? 250-XCLIENT
53 ??? 250 HELP
54 STARTTLS
55 ??? 220
56 EHLO xclientproxy
57 ??? 250-
58 ??? 250-SIZE
59 ??? 250-8BITMIME
60 ??? 250-PIPELINING
61 ??? 250-XCLIENT
62 ??? 250 HELP
63 XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname
64 ??? 220
65 EHLO clienthelo
66 ??? 250-
67 ??? 250-SIZE
68 ??? 250-8BITMIME
69 ??? 250-PIPELINING
70 ??? 250-XCLIENT
71 ??? 250 HELP
72 MAIL FROM:<c@test.ex>
73 ??? 250
74 RCPT TO:<d@test.ex>
75 ??? 250
76 DATA
77 ??? 354
78 Subject: test
79
80 body
81 .
82 ??? 250
83 XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE]
84 ??? 220
85 EHLO anotherhelo
86 ??? 250-
87 ??? 250-SIZE
88 ??? 250-8BITMIME
89 ??? 250-PIPELINING
90 ??? 250-XCLIENT
91 ??? 250 HELP
92 MAIL FROM:<c2@test.ex>
93 ??? 250
94 RCPT TO:<d2@test.ex>
95 ??? 250
96 DATA
97 ??? 354
98 Subject: test
99
100 body
101 .
102 ??? 250
103 MAIL FROM:<c2@test.ex>
104 ??? 250
105 XCLIENT NAME=bad.time.for.xclient
106 ??? 503
107 RSET
108 ??? 250
109 XCLIENT NAME=miss.ehlo.after.xclient
110 ??? 220
111 MAIL FROM:<bad@test.ex>
112 ??? 503
113 QUIT
114 ??? 221
115 ****
116 #
117 ###          (5) no operands to XCLIENT (6,7) unrecognised operands
118 client-anytls HOSTIPV4 PORT_D
119 ??? 220
120 EHLO xclientproxy
121 ??? 250-
122 ??? 250-SIZE
123 ??? 250-8BITMIME
124 ??? 250-PIPELINING
125 ??? 250-STARTTLS
126 ??? 250-XCLIENT
127 ??? 250 HELP
128 STARTTLS
129 ??? 220
130 EHLO xclientproxy
131 ??? 250-
132 ??? 250-SIZE
133 ??? 250-8BITMIME
134 ??? 250-PIPELINING
135 ??? 250-XCLIENT
136 ??? 250 HELP
137 XCLIENT
138 ??? 501
139 XCLIENT NONO=
140 ??? 501
141 XCLIENT NAMEfoobar=
142 ??? 501
143 XCLIENT SIXSIX=
144 ??? 501-
145 ??? 501 Too many
146 ???*
147 ****
148 #
149 ###          (7) operand with zero-len value (8) operand with no value
150 client-anytls HOSTIPV4 PORT_D
151 ??? 220
152 EHLO xclientproxy
153 ??? 250-
154 ??? 250-SIZE
155 ??? 250-8BITMIME
156 ??? 250-PIPELINING
157 ??? 250-STARTTLS
158 ??? 250-XCLIENT
159 ??? 250 HELP
160 STARTTLS
161 ??? 220
162 EHLO xclientproxy
163 ??? 250-
164 ??? 250-SIZE
165 ??? 250-8BITMIME
166 ??? 250-PIPELINING
167 ??? 250-XCLIENT
168 ??? 250 HELP
169 XCLIENT NAME=
170 ??? 501
171 XCLIENT NAME
172 ??? 501
173 QUIT
174 ??? 221
175 ****
176 #
177 #
178 killdaemon
179 no_msglog_check
180 no_stdout_check
181 no_stderr_check