<div dir="ltr"><div>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.</div><div><br></div><div>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?<br><br> Here is a part of the log:<br><br> 2014.10.09 07:43:57 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:62779">127.0.0.1:62779</a><br> 2014.10.09 07:44:07 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: s_connect: s_poll_wait <a href="http://54.68.86.38:465">54.68.86.38:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 07:44:17 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: s_connect: s_poll_wait <a href="http://54.68.197.46:465">54.68.197.46:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 07:44:27 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: s_connect: s_poll_wait <a href="http://54.213.178.250:465">54.213.178.250:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 07:44:27 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br> 2014.10.09 11:30:18 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3224</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63014">127.0.0.1:63014</a><br> 2014.10.09 11:30:28 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3224</font></a>: s_connect: s_poll_wait <a href="http://54.68.197.46:465">54.68.197.46:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:30:38 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3224</font></a>: s_connect: s_poll_wait <a href="http://54.213.178.250:465">54.213.178.250:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:30:48 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3224</font></a>: s_connect: s_poll_wait <a href="http://54.68.86.38:465">54.68.86.38:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:30:48 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3224</font></a>: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br> 2014.10.09 11:31:34 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1000</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63019">127.0.0.1:63019</a><br> 2014.10.09 11:31:44 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1000</font></a>: s_connect: s_poll_wait <a href="http://54.213.178.250:465">54.213.178.250:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:31:54 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1000</font></a>: s_connect: s_poll_wait <a href="http://54.68.86.38:465">54.68.86.38:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:32:01 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">388</font></a>: Reading configuration from file stunnel.conf<br> 2014.10.09 11:32:01 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">388</font></a>: FIPS mode disabled<br> 2014.10.09 11:32:01 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">388</font></a>: Configuration successful<br> 2014.10.09 11:32:04 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1000</font></a>: s_connect: s_poll_wait <a href="http://54.68.197.46:465">54.68.197.46:465</a>: TIMEOUTconnect exceeded<br> 2014.10.09 11:32:04 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1000</font></a>: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br> 2014.10.09 11:32:14 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63024">127.0.0.1:63024</a><br> 2014.10.09 11:32:14 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: s_connect: connected <a href="http://54.68.159.203:465">54.68.159.203:465</a><br> 2014.10.09 11:32:14 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:63025">172.31.3.85:63025</a><br> 2014.10.09 11:32:14 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">964</font></a>: Connection closed: 494 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.09 11:32:18 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">892</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63026">127.0.0.1:63026</a><br> 2014.10.09 11:32:18 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">892</font></a>: s_connect: connected <a href="http://54.213.190.197:465">54.213.190.197:465</a><br> 2014.10.09 11:32:18 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">892</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:63027">172.31.3.85:63027</a><br> 2014.10.09 11:32:18 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">892</font></a>: Connection closed: 1592 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.09 12:41:29 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3700</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63100">127.0.0.1:63100</a><br> 2014.10.09 12:41:29 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3700</font></a>: s_connect: connected <a href="http://54.244.8.28:465">54.244.8.28:465</a><br> 2014.10.09 12:41:29 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3700</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:63101">172.31.3.85:63101</a><br> 2014.10.09 12:41:29 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3700</font></a>: Connection closed: 1609 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.09 12:46:13 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3428</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63107">127.0.0.1:63107</a><br> 2014.10.09 12:46:13 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3428</font></a>: s_connect: connected <a href="http://54.68.159.203:465">54.68.159.203:465</a><br> 2014.10.09 12:46:13 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3428</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:63108">172.31.3.85:63108</a><br> 2014.10.09 12:46:14 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3428</font></a>: Connection closed: 1609 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.09 16:32:21 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1876</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:63335">127.0.0.1:63335</a><br> 2014.10.09 16:32:21 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1876</font></a>: s_connect: connected <a href="http://54.213.190.197:465">54.213.190.197:465</a><br> 2014.10.09 16:32:21 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1876</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:63336">172.31.3.85:63336</a><br> 2014.10.09 16:32:21 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">1876</font></a>: Connection closed: 1611 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.10 01:52:46 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">440</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:64017">127.0.0.1:64017</a><br> 2014.10.10 01:52:46 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">440</font></a>: s_connect: connected <a href="http://54.244.8.28:465">54.244.8.28:465</a><br> 2014.10.10 01:52:46 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">440</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> connected remote server from <a href="http://172.31.3.85:64018">172.31.3.85:64018</a><br> 2014.10.10 01:52:47 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">440</font></a>: Connection closed: 5129 byte(s) sent to SSL, 360 byte(s) sent to socket<br> 2014.10.10 08:32:20 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3548</font></a>: Service <a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a> accepted connection from <a href="http://127.0.0.1:64423">127.0.0.1:64423</a><br> 2014.10.10 08:32:30 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3548</font></a>: s_connect: s_poll_wait <a href="http://54.68.159.203:465">54.68.159.203:465</a>: TIMEOUTconnect exceeded<br> 2014.10.10 08:32:40 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3548</font></a>: s_connect: s_poll_wait <a href="http://54.213.190.197:465">54.213.190.197:465</a>: TIMEOUTconnect exceeded<br> 2014.10.10 08:32:50 LOG3<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3548</font></a>: s_connect: s_poll_wait <a href="http://54.244.8.28:465">54.244.8.28:465</a>: TIMEOUTconnect exceeded<br> 2014.10.10 08:32:50 LOG5<a href="https://forums.aws.amazon.com/"><font color="#0066cc">3548</font></a>: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br><br> You can see that it stops, then I reload the configuration and it works again, and then eventually stops. Here is my configuration file:<br><br> engine = capi<br><br> cert = stunnel.pem<br><br> options = NO_SSLv2<br><br><a href="https://forums.aws.amazon.com/"><font color="#0066cc">ssmtp</font></a><br> accept = 465<br> connect = 25<br><br><a href="https://forums.aws.amazon.com/"><font color="#0066cc">smtp-tls-wrapper</font></a><br> accept = 2525<br> client = yes<br> connect = <a href="http://email-smtp.us-west-2.amazonaws.com:465">email-smtp.us-west-2.amazonaws.com:465</a><br><br> Thank you. <br clear="all"><br>-- <br></div><div>Mark F. Hannig<br></div><div><br></div>
</div>