I've upgraded the OpenSSL on my test mail server, and recompiled Stunnel.
Now when Stunnel receives an email it gets stuck on the "SSL state (accept): before/accept initialization" step and times out after a few minutes.
Log:
2013.12.24 10:42:58 LOG7[86137:140735299320160]: Service [ssmtp] accepted (FD=3) from 192.168.1.10:54839
2013.12.24 10:42:58 LOG7[86137:4392841216]: Service [ssmtp] started
2013.12.24 10:42:58 LOG7[86137:4392841216]: Waiting for a libwrap process
2013.12.24 10:42:58 LOG7[86137:4392841216]: Acquired libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Releasing libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Released libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Service [ssmtp] permitted by libwrap from 192.168.1.10:54839
2013.12.24 10:42:58 LOG5[86137:4392841216]: Service [ssmtp] accepted connection from 192.168.1.10:54839
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): before/accept initialization
2013.12.24 10:42:58 LOG7[86137:4392841216]: SNI: no virtual services defined
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 read client hello A
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 write server hello A
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 write certificate A
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 write key exchange A
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 write server done A
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): SSLv3 flush data
2013.12.24 10:42:58 LOG3[86137:4392841216]: SSL_accept: Peer suddenly disconnected
2013.12.24 10:42:58 LOG5[86137:4392841216]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2013.12.24 10:42:58 LOG7[86137:4392841216]: Local socket (FD=3) closed
2013.12.24 10:42:58 LOG7[86137:4392841216]: Service [ssmtp] finished (0 left)
2013.12.24 10:42:58 LOG7[86137:140735299320160]: Service [ssmtp] accepted (FD=3) from 192.168.1.10:54840
2013.12.24 10:42:58 LOG7[86137:4392841216]: Service [ssmtp] started
2013.12.24 10:42:58 LOG7[86137:4392841216]: Waiting for a libwrap process
2013.12.24 10:42:58 LOG7[86137:4392841216]: Acquired libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Releasing libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Released libwrap process #1
2013.12.24 10:42:58 LOG7[86137:4392841216]: Service [ssmtp] permitted by libwrap from 192.168.1.10:54840
2013.12.24 10:42:58 LOG5[86137:4392841216]: Service [ssmtp] accepted connection from 192.168.1.10:54840
2013.12.24 10:42:58 LOG7[86137:4392841216]: SSL state (accept): before/accept initialization
2013.12.24 10:47:58 LOG6[86137:4392841216]: init_ssl: s_poll_wait: TIMEOUTbusy exceeded: sending reset
2013.12.24 10:47:58 LOG5[86137:4392841216]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2013.12.24 10:47:58 LOG7[86137:4392841216]: Local socket (FD=3) closed
2013.12.24 10:47:58 LOG7[86137:4392841216]: Service [ssmtp] finished (0 left)
Any suggestions? It was working fine before I upgraded OpenSSL to 1.00e.
System is a Mac OS X 10.7.5 box.
Thanks,
James.