<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have an issue when using Stunnel. Can somebody help� me?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a module on my network that sends non-SSL e-mail but my ISP (Sympatico.ca) is accepting only SSL communication.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'>This is my stunnel.conf file:<o:p></o:p></p><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>cert = stunnel.pem<o:p></o:p></p><p class=MsoNormal>protocol = smtp<o:p></o:p></p><p class=MsoNormal>; Some performance tunings<o:p></o:p></p><p class=MsoNormal>socket = l:TCP_NODELAY=1<o:p></o:p></p><p class=MsoNormal>socket = r:TCP_NODELAY=1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>; Some debugging stuff useful for troubleshooting<o:p></o:p></p><p class=MsoNormal>debug = 7<o:p></o:p></p><p class=MsoNormal>output = stunnel.log<o:p></o:p></p><p class=MsoNormal>; Use it for client mode<o:p></o:p></p><p class=MsoNormal>client = yes<o:p></o:p></p><p class=MsoNormal>; Service-level configuration<o:p></o:p></p><p class=MsoNormal>[smtp]<o:p></o:p></p><p class=MsoNormal>accept=192.168.1.17:25<o:p></o:p></p><p class=MsoNormal>connect = smtphm.sympatico.ca:25<o:p></o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And this is my log:<o:p></o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:1644]: Service smtp accepted FD=316 from 192.168.1.200:12149<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:1644]: Creating a new thread<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:1644]: New thread created<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: Service smtp started<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG5[2468:2684]: Service smtp accepted connection from 192.168.1.200:12149<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG6[2468:2684]: connect_blocking: connecting 65.55.172.251:25<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: connect_blocking: s_poll_wait 65.55.172.251:25: waiting 10 seconds<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG5[2468:2684]: connect_blocking: connected 65.55.172.251:25<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG5[2468:2684]: Service smtp connected remote server from 192.168.1.17:3013<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: Remote FD=392 initialized<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG6[2468:2684]: Client-mode smtp protocol negotiations started<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 220 BLU0-SMTP6.phx.gbl Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at� Tue, 13 Dec 2011 16:55:06 -0800 <o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� -> 220 BLU0-SMTP6.phx.gbl Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at� Tue, 13 Dec 2011 16:55:06 -0800 <o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� -> EHLO localhost<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-BLU0-SMTP6.phx.gbl Hello [65.94.163.170]<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-TURN<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-SIZE 41943040<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-ETRN<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-PIPELINING<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-DSN<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-ENHANCEDSTATUSCODES<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-8bitmime<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-BINARYMIME<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-CHUNKING<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-VRFY<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-TLS<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250-STARTTLS<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 250 OK<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� -> STARTTLS<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]:� <- 220 2.0.0 SMTP server ready<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG6[2468:2684]: Client-mode smtp protocol negotiations succeeded<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): before/connect initialization<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 write client hello A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 read server hello A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 read server certificate A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 read server done A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 write client key exchange A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 write change cipher spec A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 write finished A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:06 LOG7[2468:2684]: SSL state (connect): SSLv3 flush data<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]: SSL state (connect): SSLv3 read finished A<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 1 items in the session cache<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]: 86477 client connects (SSL_connect())<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]: 86477 client connects that finished<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 client renegotiations requested<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 server connects (SSL_accept())<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 server connects that finished<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 server renegotiations requested<o:p></o:p></p><p class=MsoNormal><span lang=FR-CA>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 session cache hits<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CA>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 external session cache hits<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CA>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 session cache misses<o:p></o:p></span></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]:��� 0 session cache timeouts<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG6[2468:2684]: SSL connected: new session negotiated<o:p></o:p></p><p class=MsoNormal><span lang=FR-CA>2011.12.13 19:55:07 LOG6[2468:2684]: Negotiated ciphers: DES-CBC3-SHA SSLv3 Kx=RSA Au=RSA Enc=3DES(168) Mac=SHA1<o:p></o:p></span></p><p class=MsoNormal>2011.12.13 19:55:07 LOG6[2468:2684]: Compression: null, expansion: null<o:p></o:p></p><p class=MsoNormal><span style='background:yellow;mso-highlight:yellow'>2011.12.13 19:55:07 LOG7[2468:2684]: SSL alert (write): fatal: protocol version<o:p></o:p></span></p><p class=MsoNormal><span style='background:yellow;mso-highlight:yellow'>2011.12.13 19:55:07 LOG3[2468:2684]: SSL_read: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number</span><o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG5[2468:2684]: Connection reset: 19 bytes sent to SSL, 219 bytes sent to socket<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]: Service smtp finished (0 left)<o:p></o:p></p><p class=MsoNormal>2011.12.13 19:55:07 LOG7[2468:2684]: str_stats: 16 block(s), 353 data byte(s), 544 control byte(s)<o:p></o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What am I doing wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Rene<o:p></o:p></p></div></body></html>