Gentoo Archives: gentoo-amd64

From: Hamish Marson <hamish@××××××××××××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] courier-imapd-ssl. error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Date: Tue, 13 Sep 2005 20:30:34
Message-Id: 4327365B.1050307@travellingkiwi.com
In Reply to: [gentoo-amd64] courier-imapd-ssl. error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number by Hamish Marson
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hamish Marson wrote:
5
6 >
7 > I updated my server from 2004.3 to 2005.0... courier-imapd got
8 > updated and now won't work... Urk! It was working fine... Now I
9 > just get
10 >
11 > Sep 13 20:16:39 [imapd-ssl] couriertls: connect: error:1408F10B:SSL
12 > routines:SSL3_GET_RECORD:wrong version number Sep 13 20:19:34
13 > [imapd-ssl] couriertls: accept: error:1408F10B:SSL
14 > routines:SSL3_GET_RECORD:wrong version number Sep 13 20:21:41
15 > [imapd-ssl] couriertls: connect: error:1408F10B:SSL
16 > routines:SSL3_GET_RECORD:wrong version number
17 >
18 >
19 > No real hits on google... I started couriertcp by hand and it looks
20 > like everything is starting, but couriertls seems to be getting
21 > garbage when starting... Perhaps...
22 >
23 > Anyone know what's wrong? Everything LOOKs fine.. Except the
24 > connections don't work.
25 >
26 > The error seems to happen real early in the connection. using
27 > openssl s_client at the client end I just get
28 >
29 > hamish@ballbreaker:~$ openssl s_client -connect damned:993
30 > CONNECTED(00000003) write:errno=104
31 >
32
33 More on this... Running under strace I get (From couriertls)
34
35 ...
36 ...
37 [pid 22001] mprotect(0x2aaaab133000, 1044696, PROT_NONE) = 0
38 [pid 22001] mmap(0x2aaaab231000, 8192, PROT_READ|PROT_WRITE,
39 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x2aaaab231000
40 [pid 22001] close(3) = 0
41 [pid 22001] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
42 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaab233000
43 [pid 22001] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
44 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaab234000
45 [pid 22001] mprotect(0x2aaaab127000, 12288, PROT_READ) = 0
46 [pid 22001] mprotect(0x2aaaaabab000, 4096, PROT_READ) = 0
47 [pid 22001] arch_prctl(ARCH_SET_FS, 0x2aaaab233ae0) = 0
48 [pid 22001] munmap(0x2aaaaaac1000, 153320) = 0
49 [pid 22001] open("/dev/urandom", O_RDONLY) = 3
50 [pid 22001] read(3, "\314*\333\355SXy\335", 8) = 8
51 [pid 22001] close(3) = 0
52 [pid 22001] close(1) = 0
53 [pid 22001] dup(2) = 1
54 [pid 22001] stat("", 0x7ffffffff2d0) = -1 ENOENT (No such file or
55 directory)
56 [pid 22001] brk(0) = 0x510000
57 [pid 22001] brk(0x531000) = 0x531000
58 [pid 22001] fcntl(0, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
59 [pid 22001] setsockopt(0, SOL_SOCKET, SO_KEEPALIVE,
60 [-6128377474750349311], 4) = 0
61 [pid 22001] setsockopt(0, SOL_SOCKET, SO_LINGER, {onoff=0, linger=0},
62 8) = 0
63 [pid 22001] getpid() = 22001
64 [pid 22001] brk(0x554000) = 0x554000
65 [pid 22001] read(0, "\200\214\1\3\1", 5) = 5
66 [pid 22001] write(2, "couriertls: connect: error:1408F"...,
67 86couriertls: connect: error:1408F10B:SSL
68 routines:SSL3_GET_RECORD:wrong version number
69 ) = 86
70 [pid 22001] fcntl(0, F_SETFL, O_RDONLY) = 0
71 [pid 22001] brk(0x541000) = 0x541000
72 [pid 22001] close(0) = 0
73 [pid 22001] exit_group(1) = ?
74
75 >
76 > TIA
77 >
78 > Hamish.
79 -----BEGIN PGP SIGNATURE-----
80 Version: GnuPG v1.4.1 (GNU/Linux)
81 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
82
83 iD4DBQFDJzZa/3QXwQQkZYwRAm4OAJjTaAhE+iXw3wfrYgoCc4wgWQQrAKCbl1Iu
84 QVpm49lnx1jcccDy8QFndQ==
85 =gZbJ
86 -----END PGP SIGNATURE-----
87
88 --
89 gentoo-amd64@g.o mailing list