WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Need help sending to SMTP server using STunnel
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1273764929

Message started by Pat Sagers on May 13th, 2010 at 5:35pm

Title: Need help sending to SMTP server using STunnel
Post by Pat Sagers on May 13th, 2010 at 5:35pm
Based on the article found here: http://watchdirftp.blogspot.com/2009/02/gmail-as-your-smtp-server.html

I have setup my server to do exactly the same thing as based in the article.  However, it's not working as expected.  Using a port monitoring tool I see port 8025 open and the "state" says sending.  But it errors out and I get this error back:
*** seeIntegerParam(0,15,8025)
*** seeIntegerParam(0,29,1)
*** seeIntegerParam(0,62,2)
*** seeStringParam(0,58,gmailaccount@gmail.com)
*** seeStringParam(0,57,password)
*** seeSmtpConnect
<200:59027734>
VS Win32 Version 1.2.1 Build 1
SEE Win32 Version 4.0.8 Build 5
GdP Software                                      
CID=8720
<101:59027734>
vSocket: 0 created
vs: LogHandle = 1452
<102:59027734>
LocalHost = 'WDBOX'
<104:59027734>
Server = 'smtp.gmail.com'
ServerIP = 74.125.91.109
<105:59027859>
Socket=232, RemoteIP=4a7d5b6d, RemotePort=8025
ERROR(59048921): SockCode=-10060 SeeCode=-36 PrevState=104 ThisState=105 NextState=105
Error attempting to connect. Timed-out attempting to connect.vSocket: 0 closed
*** Releasing channel 0 ***

Here is the STunnel configuration file:
; SMTP configuration for Gmail
output = SMTPgmail.log
taskbar = no
cert = stunnel.pem
client = yes
[ssmtp]
accept = 208.72.36.222:8025
connect = smtp.gmail.com:465

On the firewall I have allowed 8025 out.  Do I need something more?  Any ideas would be greatly appreciated.

Thanks



Title: Re: Need help sending to SMTP server using STunnel
Post by Gert on May 14th, 2010 at 8:00am
Hello Pat,

It does seem your firewall (or antivirus) is blocking the connection somewhere. Can you see anything in the SMTPgmail.log file?

While the explanation is for FTP (not SMTP) the same applies. See this page for more info on socket error -10060:
http://help.globalscape.com/help/cuteftp7/socket_errors_10060,_10061,_10064,_10065.htm

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.