Dovecot auth: inet socket. Bug 2280
[exim.git] / test / scripts / 3900-Dovecot / 3901
1 # dovecot server, inet, PLAIN method
2 #
3 # This uses a script emulating dovecot so has potential to be wrong.
4 # We could do with an independent testcase against a real Dovecot,
5 # but that needs to be conditioned on finding that on the test
6 # platform and configuring it to match the testcase.
7 # See 9350 for a start.
8 #
9 exim -bd -DSERVER=server -oX PORT_D
10 ****
11 server PORT_S
12 >LF>VERSION\x091\x090
13 >LF>MECH\x09PLAIN
14 >LF>DONE
15 <<VERSION\x091\x090
16 <CPID
17 <AUTH\x091\x09PLAIN\x09service=smtp
18 >LF>OK\x091\x09user=goodman
19 *eof
20 ****
21 #
22 exim -odi a@test.ex
23 ****
24 #
25 killdaemon
26 #
27 #exim -d+all -bd -DSERVER=server -DTRUSTED -oX PORT_D
28 #****
29 #background
30 #perl -e "system('socat OPENSSL-LISTEN:PORT_S,reuseaddr,fork,cert=DIR/aux-fixed/cert1,verify=0 EXEC:\'/bin/echo VERSION\\t1\\t0\\nAUTH\\t1\\tPLAIN\\tservice=smtp\'');"
31 #****
32 ##
33 #exim -odi a@test.ex
34 #****
35 ##
36 #killdaemon
37 no_stdout_check
38 no_msglog_check