[stunnel-users] OpenSSL - write:errno=131

Andrzej Marecki amr at astro.uni.torun.pl
Tue Jan 11 09:46:26 CET 2005

I managed to compile and install stunnel 4.06 under Solaris 2.6.

(BTW, I use here the word "managed" becuase it was not straightforward: the
up-to-date version - 4.07 - wouldn't compile under Solaris.)

My stunnel.conf file reads:

 chroot = /opt/var/stunnel/
 setuid = nobody
 setgid = nogroup
 pid = /stunnel.pid

 client = no

 accept  = localhost:995
 connect = localhost:110

 accept  = localhost:465
 connect = localhost:25

/opt/etc/stunnel/pop3.pem has been set up according the instructions at:


...so I do hope it's OK ;-).

Anyway, stunnel daemon works - what I get in stunnel.log reads:

stunnel 4.06 on sparc-sun-solaris2.6 PTHREAD+POLL with OpenSSL 0.9.7e 25 Oct 2004
29 clients allowed

(Date & time of the messages quoted above are omitted.)

Now I try to test stunnel:

#/opt/bin/openssl s_client -connect localhost:995 -prexit

...and what I get is:

no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 148 bytes
New, (NONE), Cipher is (NONE)

I get the same when "openssl s_client -connect localhost:995" is issued by
a non-privileged user. Needless to say I can't connect to port 995 using
a bone fide MUA running on a PC under M$W (Thunderbird to be exact).

Can you help me, please.


Andrzej Marecki                | 
Torun Centre for Astronomy     |   e-mail: amr at astro.uni.torun.pl
N. Copernicus University       |   WWW:    http://www.astro.uni.torun.pl
ul. Gagarina 11                |   tel: +48 56 6113032
PL-87-100 Torun, POLAND        |   fax: +48 56 6113009
"If Bill Gates actually had to admin his own stuff, he'd shoot himself."

More information about the stunnel-users mailing list