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:
cert=/opt/etc/stunnel/pop3.pem chroot = /opt/var/stunnel/ setuid = nobody setgid = nogroup pid = /stunnel.pid
output=/var/log/stunnel.log client = no
[spop3] accept = localhost:995 connect = localhost:110
[ssmtp] accept = localhost:465 connect = localhost:25 --------------
/opt/etc/stunnel/pop3.pem has been set up according the instructions at:
http://www.freebsd.hello.pl/files/modules.php?name=News&file=article&...
...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:
CONNECTED(00000003) write:errno=131 --- 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