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