<div dir="ltr"><div>Hi, </div><div><br></div><div>I'm a new user using stunnel-5.03 on Windows SBS 2003.</div><div><br></div><div>I can't send email from Exchange but can from Outlook with same credentials on same network.</div>
<div><br></div><div>Email gets stuck in the exchange smtp queue.</div><div><br></div><div>Simple config:<br></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>; * Global options</div>
<div><br></div><div><div>debug = 7</div></div><div><div>output = stunnel.log</div></div><div><div>engine = capi</div></div><div>options = NO_SSLv2<br></div><div><div><br></div></div><div><div>; * Service definition</div></div>
<div><div><br></div></div><div><div>[SMTP]</div></div><div><div>client = yes</div></div><div><div>accept = 8465</div></div><div><div>connect = <a href="http://smtp.virginmedia.com:465">smtp.virginmedia.com:465</a></div></div>
<div><div>protocol = smtp</div></div></blockquote><div><br></div><div>Logs look good but nothing seems to go:<br></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>2014.08.08 22:15:07 LOG7[7284]: Dispatching signals from the signal pipe</div>
</div><div><div>2014.08.08 22:15:07 LOG7[7284]: Processing SIGNAL_RELOAD_CONFIG</div></div><div><div>2014.08.08 22:15:07 LOG5[7284]: Reading configuration from file stunnel.conf</div></div><div><div>2014.08.08 22:15:07 LOG7[7284]: Enabling support for engine 'capi'</div>
</div><div><div>2014.08.08 22:15:07 LOG7[7284]: Initializing engine #1 (capi)</div></div><div><div>2014.08.08 22:15:07 LOG6[7284]: Engine #1 (capi) initialized</div></div><div><div>2014.08.08 22:15:07 LOG5[7284]: FIPS mode disabled</div>
</div><div><div>2014.08.08 22:15:07 LOG7[7284]: Compression disabled</div></div><div><div>2014.08.08 22:15:07 LOG7[7284]: Snagged 64 random bytes from C:/.rnd</div></div><div><div>2014.08.08 22:15:07 LOG7[7284]: Wrote 1024 new random bytes to C:/.rnd</div>
</div><div><div>2014.08.08 22:15:07 LOG7[7284]: PRNG seeded successfully</div></div><div><div>2014.08.08 22:15:07 LOG6[7284]: Initializing service [SMTP]</div></div><div><div>2014.08.08 22:15:08 LOG7[7284]: No private key specified</div>
</div><div><div>2014.08.08 22:15:08 LOG7[7284]: SSL options set: 0x01000004</div></div><div><div>2014.08.08 22:15:08 LOG5[7284]: Configuration successful</div></div><div><div>2014.08.08 22:15:08 LOG7[7284]: Closing service [SMTP]</div>
</div><div><div>2014.08.08 22:15:08 LOG7[7284]: Service [SMTP] closed (FD=292)</div></div><div><div>2014.08.08 22:15:08 LOG7[7284]: Sessions cached before flush: 7</div></div><div><div>2014.08.08 22:15:08 LOG7[7284]: Sessions cached after flush: 0</div>
</div><div><div>2014.08.08 22:15:08 LOG7[7284]: Service [SMTP] closed</div></div><div><div>2014.08.08 22:15:08 LOG7[7284]: Service [SMTP] (FD=292) bound to <a href="http://0.0.0.0:8465">0.0.0.0:8465</a></div></div><div><div>
2014.08.08 22:15:08 LOG7[7284]: Signal pipe is empty</div></div><div><div>2014.08.08 22:16:03 LOG7[7284]: Service [SMTP] accepted (FD=392) from <a href="http://127.0.0.1:26642">127.0.0.1:26642</a></div></div><div><div>2014.08.08 22:16:03 LOG7[7284]: Creating a new thread</div>
</div><div><div>2014.08.08 22:16:03 LOG7[7284]: New thread created</div></div><div><div>2014.08.08 22:16:03 LOG7[7184]: Service [SMTP] started</div></div><div><div>2014.08.08 22:16:03 LOG5[7184]: Service [SMTP] accepted connection from <a href="http://127.0.0.1:26642">127.0.0.1:26642</a></div>
</div><div><div>2014.08.08 22:16:03 LOG6[7184]: s_connect: connecting <a href="http://62.254.26.219:465">62.254.26.219:465</a></div></div><div><div>2014.08.08 22:16:03 LOG7[7184]: s_connect: s_poll_wait <a href="http://62.254.26.219:465">62.254.26.219:465</a>: waiting 10 seconds</div>
</div><div><div>2014.08.08 22:16:03 LOG5[7184]: s_connect: connected <a href="http://62.254.26.219:465">62.254.26.219:465</a></div></div><div><div>2014.08.08 22:16:03 LOG5[7184]: Service [SMTP] connected remote server from <a href="http://10.0.0.2:26643">10.0.0.2:26643</a></div>
</div><div><div>2014.08.08 22:16:03 LOG7[7184]: Remote socket (FD=688) initialized</div></div><div><div>2014.08.08 22:16:14 LOG3[7184]: fd_getline: Unexpected socket close</div></div><div><div>2014.08.08 22:16:14 LOG5[7184]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket</div>
</div><div><div>2014.08.08 22:16:14 LOG7[7184]: Remote socket (FD=688) closed</div></div><div><div>2014.08.08 22:16:14 LOG7[7184]: Local socket (FD=392) closed</div></div><div><div>2014.08.08 22:16:14 LOG7[7184]: Service [SMTP] finished (0 left)</div>
</div><div><div>2014.08.08 22:16:14 LOG7[7184]: str_stats: 3 block(s), 4294966138 data byte(s), 150 control byte(s)</div></div><div><div>2014.08.08 22:16:14 LOG7[7184]: str_stats: 20 byte(s) at ..\src\network.c:413</div></div>
<div><div>2014.08.08 22:16:14 LOG7[7184]: str_stats: 20 byte(s) at ..\src\network.c:412</div></div><div><div>2014.08.08 22:16:14 LOG7[7184]: str_stats: 20 byte(s) at ..\src\network.c:411</div></div></blockquote><div><br></div>
<div>If I rem out the protocol = smtp then the mails go from the queue and  the logs seem to indicate a success:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>2014.08.08 22:02:14 LOG7[7284]: Service [SMTP] accepted (FD=688) from <a href="http://127.0.0.1:54520">127.0.0.1:54520</a></div>
<div>2014.08.08 22:02:14 LOG7[7284]: Creating a new thread</div><div>2014.08.08 22:02:14 LOG7[7284]: New thread created</div><div>2014.08.08 22:02:14 LOG7[10072]: Service [SMTP] started</div><div>2014.08.08 22:02:14 LOG5[10072]: Service [SMTP] accepted connection from <a href="http://127.0.0.1:54520">127.0.0.1:54520</a></div>
<div>2014.08.08 22:02:14 LOG6[10072]: s_connect: connecting <a href="http://62.254.26.219:465">62.254.26.219:465</a></div><div>2014.08.08 22:02:14 LOG7[10072]: s_connect: s_poll_wait <a href="http://62.254.26.219:465">62.254.26.219:465</a>: waiting 10 seconds</div>
<div>2014.08.08 22:02:14 LOG5[10072]: s_connect: connected <a href="http://62.254.26.219:465">62.254.26.219:465</a></div><div>2014.08.08 22:02:14 LOG5[10072]: Service [SMTP] connected remote server from <a href="http://10.0.0.2:54521">10.0.0.2:54521</a></div>
<div>2014.08.08 22:02:14 LOG7[10072]: Remote socket (FD=456) initialized</div><div>2014.08.08 22:02:14 LOG6[10072]: SNI: sending servername: <a href="http://smtp.virginmedia.com">smtp.virginmedia.com</a></div><div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): before/connect initialization</div>
<div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 write client hello A</div><div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 read server hello A</div><div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 read finished A</div>
<div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 write change cipher spec A</div><div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 write finished A</div><div>2014.08.08 22:02:14 LOG7[10072]: SSL state (connect): SSLv3 flush data</div>
<div>2014.08.08 22:02:14 LOG7[10072]:    6 items in the session cache</div><div>2014.08.08 22:02:14 LOG7[10072]:   13 client connects (SSL_connect())</div><div>2014.08.08 22:02:14 LOG7[10072]:   13 client connects that finished</div>
<div>2014.08.08 22:02:14 LOG7[10072]:    0 client renegotiations requested</div><div>2014.08.08 22:02:14 LOG7[10072]:    0 server connects (SSL_accept())</div><div>2014.08.08 22:02:14 LOG7[10072]:    0 server connects that finished</div>
<div>2014.08.08 22:02:14 LOG7[10072]:    0 server renegotiations requested</div><div>2014.08.08 22:02:14 LOG7[10072]:    7 session cache hits</div><div>2014.08.08 22:02:14 LOG7[10072]:    0 external session cache hits</div>
<div>2014.08.08 22:02:14 LOG7[10072]:    0 session cache misses</div><div>2014.08.08 22:02:14 LOG7[10072]:    0 session cache timeouts</div><div>2014.08.08 22:02:14 LOG6[10072]: SSL connected: previous session reused</div>
<div>2014.08.08 22:02:16 LOG6[10072]: Read socket closed (readsocket)</div><div>2014.08.08 22:02:16 LOG7[10072]: Sending close_notify alert</div><div>2014.08.08 22:02:16 LOG7[10072]: SSL alert (write): warning: close notify</div>
<div>2014.08.08 22:02:16 LOG6[10072]: SSL_shutdown successfully sent close_notify alert</div><div>2014.08.08 22:02:16 LOG6[10072]: SSL socket closed (SSL_read)</div><div>2014.08.08 22:02:16 LOG7[10072]: Sent socket write shutdown</div>
<div>2014.08.08 22:02:16 LOG5[10072]: Connection closed: 80 byte(s) sent to SSL, 298 byte(s) sent to socket</div><div>2014.08.08 22:02:16 LOG7[10072]: Remote socket (FD=456) closed</div><div>2014.08.08 22:02:16 LOG7[10072]: Local socket (FD=688) closed</div>
<div>2014.08.08 22:02:16 LOG7[10072]: Service [SMTP] finished (0 left)</div><div>2014.08.08 22:02:16 LOG7[10072]: str_stats: 3 block(s), 4294963672 data byte(s), 150 control byte(s)</div><div>2014.08.08 22:02:16 LOG7[10072]: str_stats: 20 byte(s) at ..\src\network.c:413</div>
<div>2014.08.08 22:02:16 LOG7[10072]: str_stats: 20 byte(s) at ..\src\network.c:412</div><div>2014.08.08 22:02:16 LOG7[10072]: str_stats: 20 byte(s) at ..\src\network.c:411</div><div><br></div></blockquote>but all Mails bounce with:<div>
<br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>There was a SMTP communication problem with the recipient's email server.  Please contact your system administrator.</div><div>  <server.domain.local #5.5.0 smtp;530 Authentication Required (VM401)></div>
<div><br></div></blockquote>Any ideas?</div>