summaryrefslogtreecommitdiff
path: root/test/scripts/3550-dovecot/3550
blob: 803de86e36e22e630c161f644fc3eb75fed20374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# dovecot server auth, PLAIN
#
mkdir DIR/tmp
#
background
dovecot -F -c DIR/aux-var/TESTNUM.dovecot.conf
****
sleep 1
#
#
#
#
### Lack of attempt to auth
exim -bh 10.0.0.2
HELO test
MAIL FROM:<junk@jink.jonk.test.ex>
RCPT TO:<fail_no_auth@test.ex>
QUIT
****
#
### PLAIN/userx/secret
exim -bs -oMa 10.0.0.1
EHLO test.host
AUTH PLAIN AHVzZXJ4AHNlY3JldA==
QUIT
****
### ditto, split over two lines
exim -bs -oMa 10.0.0.1
EHLO test.host
AUTH PLAIN 
AHVzZXJ4AHNlY3JldA==
QUIT
****
#
#
### Check auth_advertise_hosts no-match
exim -bh 10.0.0.4
ehlo test.host
quit
****
#
#
### PLAIN (bad auth)   should fail
exim -bs -oMa 10.0.0.1
ehlo test.host
auth plain AGVzZXJ4AHNlY3JldA==
quit
****
#
#
### Shut down dovecot
killdaemon
#
sudo rm -fr DIR/tmp
no_msglog_check