Implemented control=allow_auth_unadvertised.
[exim.git] / test / scripts / 3400-plaintext / 3400
1 # plaintext server tests
2 exim -bh 10.0.0.2
3 mail from:<junk@jink.jonk.test.ex>
4 rset
5 vrfy userx@test.ex
6 expn list@test.ex
7 etrn #abcd
8 quit
9 ****
10 exim -bh 10.0.0.1
11 ehlo test.host
12 vrfy userx@test.ex
13 expn list@test.ex
14 etrn abcd
15 mail from:<junk@jink.jonk.test.ex>
16 rcpt to:<userx@test.ex>
17 noop
18 rset
19 auth mylogin dXNlcnggc2VjcmV0
20 auth mylogin dXNlcnggc2VjcmV0
21 mail from:<junk@jink.jonk.test.ex>
22 rcpt to:<userx@test.ex>
23 rcpt to:<userx@cus.cam.ac.uk>
24 rset
25 vrfy userx@test.ex
26 expn list@test.ex
27 etrn #abcd
28 noop
29 auth mylogin dXNlcnggc2VjcmV0
30 quit
31 ****
32 exim -bh 10.0.0.3
33 ehlo test.host
34 mail from:<junk@jink.jonk.test.ex>
35 rcpt to:<userx@cus.cam.ac.uk>
36 rset
37 auth mylogin dXNlcnggc2VjcmV0
38 mail from:<junk@jink.jonk.test.ex>
39 rcpt to:<userx@cus.cam.ac.uk>
40 quit
41 ****
42 exim -odi -bs -oMa 10.0.0.3
43 ehlo testclient.ex
44 mail from:<userx@cus.cam.ac.uk>
45 rcpt to:<userx@test.ex>
46 data
47 Testing unauthenticated.
48 .
49 mail from:<userx@cus.cam.ac.uk> auth=auth@cus.cam.ac.uk
50 rcpt to:<userx@test.ex>
51 data
52 Testing unauthenticated (2).
53 .
54 auth mylogin dXNlcnggc2VjcmV0
55 mail from:<userx@cus.cam.ac.uk>
56 rcpt to:<userx@test.ex>
57 data
58 Testing authenticated.
59 .
60 mail from:<userx@cus.cam.ac.uk> auth=auth@cus.cam.ac.uk
61 rcpt to:<userx@test.ex>
62 data
63 Testing authenticated (2).
64 .
65 mail from:<userx@cus.cam.ac.uk> auth=au+zzth@cus.cam.ac.uk
66 rset
67 mail from:<userx@cus.cam.ac.uk> auth=<>
68 rcpt to:<userx@test.ex>
69 data
70 Testing authenticated (3).
71 .
72 quit
73 ****
74 exim -bs -oMa 10.0.0.1
75 ehlo test.host
76 auth plain AHVzZXJ4AHNlY3JldA==
77 quit
78 ****
79 exim -bs -oMa 10.0.0.1
80 ehlo test.host
81 auth defer AHVzZXJ4AHNlY3JldA==
82 quit
83 ****
84 exim -bs -oMa 10.0.0.1
85 ehlo test.host
86 auth plain 
87 AHVzZXJ4AHNlY3JldA==
88 quit
89 ****
90 exim -odi -bs -oMa 10.0.0.1
91 ehlo test.host
92 AUTH LOGIN
93 dXNlcng=
94 c2VjcmV0
95 mail from:<userx@cus.cam.ac.uk>
96 rcpt to:<userx@test.ex>
97 data
98 Testing authenticated.
99 .
100 quit
101 ****
102 exim -bs -oMa 10.0.0.1
103 ehlo test.host
104 AUTH LOGIN
105 dXNlcngAc2VjcmV0
106 quit
107 ****
108 exim -bs -oMa 10.0.0.1
109 ehlo test.host
110 AUTH LOGIN dXNlcngAc2VjcmV0
111 quit
112 ****
113 exim -bs -oMa 10.0.0.1
114 ehlo test.host
115 AUTH LOGIN dXNlcng=
116 c2VjcmV0
117 quit
118 ****
119 exim -bs -oMa 10.0.0.1
120 ehlo test.host
121 AUTH LOGIN
122 dXNlcng=
123 *
124 quit
125 ****
126 exim -bh 10.0.0.4
127 ehlo test.host
128 quit
129 ****
130 exim -bs -oMa 10.0.0.1
131 ehlo test.host
132 auth plain AGVzZXJ4AHNlY3JldA==
133 quit
134 ****
135 exim -bs -oMa 10.0.0.1
136 ehlo test.host
137 auth explain 
138 AHVzZXJ4AHNlY3JldA==
139 quit
140 ****
141 exim -bs -oMa 10.0.0.1
142 ehlo test.host
143 auth expanded
144 AHVzZXJ4AHNlY3JldA==
145 quit
146 ****
147 exim -bs -oMa 10.0.0.1
148 ehlo test.host
149 auth expandfail
150 AHVzZXJ4AHNlY3JldA==
151 quit
152 ****
153 # 10.0.0.2 is not allowed to use AUTH when it is not advertised
154 #
155 exim -bs -oMa 10.0.0.2
156 ehlo test.host
157 auth explain
158 AHVzZXJ4AHNlY3JldA==
159 quit
160 ****
161 1
162 exim -bs -oMa 10.0.0.1
163 ehlo test.host
164 auth expanded AHVzZXJ4AHNlY3JlVw==
165 auth expanded AHVzZXJ4AHNlY3JlVw==
166 auth expanded AHVzZXJ4AHNlY3JlVw==
167 auth expanded AHVzZXJ4AHNlY3JlVw==
168 auth expanded AHVzZXJ4AHNlY3JlVw==
169 auth expanded AHVzZXJ4AHNlY3JlVw==
170 auth expanded AHVzZXJ4AHNlY3JlVw==
171 auth expanded AHVzZXJ4AHNlY3JlVw==
172 auth expanded AHVzZXJ4AHNlY3JlVw==
173 auth expanded AHVzZXJ4AHNlY3JlVw==
174 auth expanded AHVzZXJ4AHNlY3JlVw==
175 auth expanded AHVzZXJ4AHNlY3JlVw==
176 auth expanded AHVzZXJ4AHNlY3JlVw==
177 auth expanded AHVzZXJ4AHNlY3JlVw==
178 auth expanded AHVzZXJ4AHNlY3JlVw==
179 auth expanded AHVzZXJ4AHNlY3JlVw==
180 auth expanded AHVzZXJ4AHNlY3JlVw==
181 auth expanded AHVzZXJ4AHNlY3JlVw==
182 auth expanded AHVzZXJ4AHNlY3JlVw==
183 auth expanded AHVzZXJ4AHNlY3JlVw==
184 auth expanded AHVzZXJ4AHNlY3JlVw==
185 auth expanded AHVzZXJ4AHNlY3JlVw==
186 ****
187 exim -odi -bs -oMa 10.0.0.5
188 ehlo testing.testing
189 mail from:<x@y>
190 rcpt to:<userx@test.ex>
191 data
192 Without authenticating
193 .
194 auth mylogin dXNlcnggc2VjcmV0
195 mail from:<x@y>
196 rcpt to:<userx@test.ex>
197 data
198 Authentication failed
199 .
200 auth mylogin dXNlcnggc2VjcmV0
201 mail from:<x@y>
202 rcpt to:<userx@test.ex>
203 data
204 Authentication succeeded
205 .
206 quit
207 ****
208 exim -odi -bs -oMa 10.0.0.1
209 ehlo test.host
210 AUTH LOGIN
211
212 c2VjcmV0
213 quit
214 ****
215 exim -d -odi -bs -oMa 10.0.0.5
216 ehlo testing.testing
217 auth mylogin dXNlcnggc2VjcmV0
218 quit
219 ****
220 # 10.0.0.6 is allowed to use AUTH when it is not advertised
221 #
222 exim -bs -oMa 10.0.0.6
223 ehlo test.host
224 auth explain
225 AHVzZXJ4AHNlY3JldA==
226 quit
227 ****
228 exim -bs -oMa 10.0.0.6
229 helo test.host
230 auth explain
231 AHVzZXJ4AHNlY3JldA==
232 quit
233 ****
234 no_msglog_check