Hi! New to this list and this product. I posted this on the Amazon forums, but I need to fix this fast, so I thought I would post it here as well.
I am running stunnel 5.04 for Windows on a Windows 2012 R2 instance. I have it working with SES, but after a while it just keeps timing out. I have to manually reload the configuration file to get it to start working again. What am I doing wrong?
Here is a part of the log:
2014.10.09 07:43:57 LOG5
964: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:62779 2014.10.09 07:44:07 LOG3
964: s_connect: s_poll_wait
54.68.86.38:465: TIMEOUTconnect exceeded
2014.10.09 07:44:17 LOG3
964: s_connect: s_poll_wait
54.68.197.46:465: TIMEOUTconnect exceeded
2014.10.09 07:44:27 LOG3
964: s_connect: s_poll_wait
54.213.178.250:465: TIMEOUTconnect exceeded
2014.10.09 07:44:27 LOG5
964: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2014.10.09 11:30:18 LOG5
3224: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63014 2014.10.09 11:30:28 LOG3
3224: s_connect: s_poll_wait
54.68.197.46:465: TIMEOUTconnect exceeded
2014.10.09 11:30:38 LOG3
3224: s_connect: s_poll_wait
54.213.178.250:465: TIMEOUTconnect exceeded
2014.10.09 11:30:48 LOG3
3224: s_connect: s_poll_wait
54.68.86.38:465: TIMEOUTconnect exceeded
2014.10.09 11:30:48 LOG5
3224: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2014.10.09 11:31:34 LOG5
1000: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63019 2014.10.09 11:31:44 LOG3
1000: s_connect: s_poll_wait
54.213.178.250:465: TIMEOUTconnect exceeded
2014.10.09 11:31:54 LOG3
1000: s_connect: s_poll_wait
54.68.86.38:465: TIMEOUTconnect exceeded
2014.10.09 11:32:01 LOG5
388: Reading configuration from file stunnel.conf
2014.10.09 11:32:01 LOG5
388: FIPS mode disabled
2014.10.09 11:32:01 LOG5
388: Configuration successful
2014.10.09 11:32:04 LOG3
1000: s_connect: s_poll_wait
54.68.197.46:465: TIMEOUTconnect exceeded
2014.10.09 11:32:04 LOG5
1000: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2014.10.09 11:32:14 LOG5
964: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63024 2014.10.09 11:32:14 LOG5
964: s_connect: connected
54.68.159.203:465 2014.10.09 11:32:14 LOG5
964: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:63025 2014.10.09 11:32:14 LOG5
964: Connection closed: 494 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.09 11:32:18 LOG5
892: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63026 2014.10.09 11:32:18 LOG5
892: s_connect: connected
54.213.190.197:465 2014.10.09 11:32:18 LOG5
892: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:63027 2014.10.09 11:32:18 LOG5
892: Connection closed: 1592 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.09 12:41:29 LOG5
3700: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63100 2014.10.09 12:41:29 LOG5
3700: s_connect: connected
54.244.8.28:465 2014.10.09 12:41:29 LOG5
3700: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:63101 2014.10.09 12:41:29 LOG5
3700: Connection closed: 1609 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.09 12:46:13 LOG5
3428: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63107 2014.10.09 12:46:13 LOG5
3428: s_connect: connected
54.68.159.203:465 2014.10.09 12:46:13 LOG5
3428: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:63108 2014.10.09 12:46:14 LOG5
3428: Connection closed: 1609 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.09 16:32:21 LOG5
1876: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:63335 2014.10.09 16:32:21 LOG5
1876: s_connect: connected
54.213.190.197:465 2014.10.09 16:32:21 LOG5
1876: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:63336 2014.10.09 16:32:21 LOG5
1876: Connection closed: 1611 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.10 01:52:46 LOG5
440: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:64017 2014.10.10 01:52:46 LOG5
440: s_connect: connected
54.244.8.28:465 2014.10.10 01:52:46 LOG5
440: Service
smtp-tls-wrapper connected remote server from
172.31.3.85:64018 2014.10.10 01:52:47 LOG5
440: Connection closed: 5129 byte(s) sent to SSL, 360 byte(s) sent to socket
2014.10.10 08:32:20 LOG5
3548: Service
smtp-tls-wrapper accepted connection from
127.0.0.1:64423 2014.10.10 08:32:30 LOG3
3548: s_connect: s_poll_wait
54.68.159.203:465: TIMEOUTconnect exceeded
2014.10.10 08:32:40 LOG3
3548: s_connect: s_poll_wait
54.213.190.197:465: TIMEOUTconnect exceeded
2014.10.10 08:32:50 LOG3
3548: s_connect: s_poll_wait
54.244.8.28:465: TIMEOUTconnect exceeded
2014.10.10 08:32:50 LOG5
3548: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
You can see that it stops, then I reload the configuration and it works again, and then eventually stops. Here is my configuration file:
engine = capi
cert = stunnel.pem
options = NO_SSLv2
ssmtp accept = 465
connect = 25
smtp-tls-wrapper accept = 2525
client = yes
connect =
email-smtp.us-west-2.amazonaws.com:465 Thank you.
--
Mark F. Hannig