[mew-int 2755] stunnel: decompression failure

Bernhard Assmann <[email protected]>
Newsgroups gmane.mail.mew.general
Message-ID <[email protected]>
Hi,

I'm trying to connect to an IMAP-Server over SSL, but only every other connect
is successful. Doing the same operation twice is a little bit tedious. I'm
using mew 6.3rc2 on Emacs 22.2.

Any hints?

Thanks

Bernhard

====================

Mew debug buffer from an unsuccessful attempt

<SSL/TLS: >
2009.11.02 09:55:36 LOG7[12058:4156889840]: 9612 accepted FD=11 from 127.0.0.1:18947
2009.11.02 09:55:36 LOG7[12058:4160359312]: 9612 started
2009.11.02 09:55:36 LOG7[12058:4160359312]: FD 11 in non-blocking mode
2009.11.02 09:55:36 LOG7[12058:4160359312]: Waiting for a libwrap process
2009.11.02 09:55:36 LOG7[12058:4160359312]: Acquired libwrap process #0
2009.11.02 09:55:36 LOG7[12058:4160359312]: Releasing libwrap process #0
2009.11.02 09:55:36 LOG7[12058:4160359312]: Released libwrap process #0
2009.11.02 09:55:36 LOG7[12058:4160359312]: 9612 permitted by libwrap from 127.0.0.1:18947
2009.11.02 09:55:36 LOG5[12058:4160359312]: 9612 accepted connection from 127.0.0.1:18947
2009.11.02 09:55:36 LOG7[12058:4160359312]: FD 12 in non-blocking mode
2009.11.02 09:55:36 LOG7[12058:4160359312]: 9612 connecting xxx.xxx.xxx.xxx:993
2009.11.02 09:55:36 LOG7[12058:4160359312]: connect_wait: waiting 10 seconds
2009.11.02 09:55:36 LOG7[12058:4160359312]: connect_wait: connected
2009.11.02 09:55:36 LOG5[12058:4160359312]: 9612 connected remote server from 10.1.1.40:23339
2009.11.02 09:55:36 LOG7[12058:4160359312]: Remote FD=12 initialized
2009.11.02 09:55:36 LOG7[12058:4160359312]: SSL state (connect): before/connect initialization
2009.11.02 09:55:36 LOG7[12058:4160359312]: SSL state (connect): SSLv3 write client hello A


<SSL/TLS: >
2009.11.02 09:55:36 LOG7[12058:4160359312]: SSL state (connect): SSLv3 read server hello A
2009.11.02 09:55:36 LOG7[12058:4160359312]: SSL alert (write): fatal: decompression failure
2009.11.02 09:55:36 LOG3[12058:4160359312]: SSL_connect: 1408F06B: error:1408F06B:SSL routines:SSL3_GET_RECORD:bad decompression
2009.11.02 09:55:36 LOG5[12058:4160359312]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2009.11.02 09:55:36 LOG7[12058:4160359312]: 9612 finished (0 left)


<IMAP SENTINEL>
connection broken by remote peer

==================

stunnel -version

stunnel 4.21 on i686-pc-linux-gnu with OpenSSL 0.9.8g 19 Oct 2007
Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP

Global options
debug           = 5
pid             = /usr/var/run/stunnel/stunnel.pid
RNDbytes        = 64
RNDfile         = /dev/urandom
RNDoverwrite    = yes

Service-level options
cert            = /etc/stunnel/stunnel.pem
ciphers         = AES:ALL:!aNULL:!eNULL:+RC4:@STRENGTH
key             = /etc/stunnel/stunnel.pem
session         = 300 seconds
sslVersion      = SSLv3 for client, all for server
TIMEOUTbusy     = 300 seconds
TIMEOUTclose    = 60 seconds
TIMEOUTconnect  = 10 seconds
TIMEOUTidle     = 43200 seconds
verify          = none

===================

Relevant mew options

(setq mew-ssl-verify-level 0)
(setq mew-prog-ssl "/usr/sbin/stunnel")
(setq mew-imap-ssl t)
(setq mew-imap-ssl-port 993)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.