<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I am trying to use stunnel to act as a forwarder to GMail.</div><div><br></div><div>My config file looks like:</div>client = yes<br><br>socket = l:TCP_NODELAY=1<br>socket = r:TCP_NODELAY=1<br><br>[gmail]<br>accept = 25<br>connect = smtp.gmail.com:465<br>;CAfile = peer-gmail.pem<br>;verify = 3<br><br>I saved the peer certificate and when I attempt to send mail, the log looks like this:<br><br>2012.05.08 16:01:35 LOG5[31036:19408]: Service [gmail] connected remote server from 192.168.1.9:42580<br>2012.05.08 16:01:35 LOG4[31036:19408]: CERT: Verification error: unable to get local issuer certificate<br>2012.05.08 16:01:35 LOG4[31036:19408]: Certificate check failed: depth=1, /C=US/O=Google Inc/CN=Google Internet Authority<br>2012.05.08 16:01:35 LOG3[31036:19408]: SSL_connect: 14090086: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed<br>2012.05.08 16:01:35 LOG5[31036:19408]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br>2012.05.08 16:02:35 LOG5[31036:34312]: Service [gmail] accepted connection from 192.168.1.10:49303<br>2012.05.08 16:02:35 LOG5[31036:34312]: connect_blocking: connected 173.194.79.108:465<br>2012.05.08 16:02:35 LOG5[31036:34312]: Service [gmail] connected remote server from 192.168.1.9:42619<br>2012.05.08 16:02:36 LOG4[31036:34312]: CERT: Verification error: unable to get local issuer certificate<br>2012.05.08 16:02:36 LOG4[31036:34312]: Certificate check failed: depth=1, /C=US/O=Google Inc/CN=Google Internet Authority<br>2012.05.08 16:02:36 LOG3[31036:34312]: SSL_connect: 14090086: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed<br>2012.05.08 16:02:36 LOG5[31036:34312]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket<br><br>Please
tell me what I'm doing wrong so I can fix it.<br><br>Van Brown<br></div></body></html>