Ticket #445 ( Closed )

Short Description smtp timeout
Entered By: br@nwl When: 2000-02-09 12:08:23 Build: 2.0.7A
Categories Type: Question   Department: Product   Category: SurferScript
Description
I'm getting a timeout error trying to send email. The 
message in the log is:

ERROR(1050884792): SockCode=0 SeeCode=-8 PrevState=201 
ThisState=-1 NextState=201 Socket timed out.

How should I proceed?
Append By: WindSurfer  When: 2000-02-10 03:54:08  New Status: Pending Customer
Comment
This sounds like a problem getting to your SMTP server--try 
to make sure that A) you have the SMTP server declared 
properly in your mailprofile tag and B) your Screensurfer 
server can get to the SMTP server OK --maybe check with 
PING.

Append By: br@nwl  When: 2000-02-10 09:47:31  New Status: Pending IE
Comment
I'm emailing the script and complete log from the email 
failure.  The log seems to indicate that I'm finding the 
server ok, and I'm able to ping the ip address in the log.  
Could this be a version problem?  Is there a way to make 
the timeout longer?

Append By: WindSurfer  When: 2000-02-14 09:59:52  New Status: Pending Customer
Comment
While you can ping the server, it still looks from the log 
like the port 25 for SMTP isn't active on the target server, 
or there are other issues, such as:

1. No SMTP service active on the target mail server
2. The SMTP service is configured to listen on a different 
port than 25 (??!!)
3. The SMTP service has been configured to only accept 
connections from specific machines/address ranges.

Please check on the above for your mail server, especially 1 
and 3, since if it is Exchange, for example, you might just 
have the proprietary Microsoft mail protocols active on your 
server, and have the outside world connection (running SMTP) 
on another.
Append By: br@nwl  When: 2000-02-14 18:19:41  New Status: Pending IE
Comment
My test script worked perfectly with my cable modem mail 
server (after the logical modifications).  I don't know 
what's wrong with the isp's mail server, but I'm going to 
check that out next.  I don't see how 1, 2, or 3 could be 
the problem because I use this machine for my regular 
email, and I'm able to connect to port 25 using a telnet 
client.  It seems to me that 
the "...proprietary...protocols" suggestion may be the most 
likely.  I wasn't able to send mail using a freeware client 
called Pegasus, and it seems that I remember that Outlook 
Express doesn't even work.

I'll get back to you,
Bob
Append By: br@nwl  When: 2000-02-15 10:05:57  New Status: Pending IE
Comment
I was got all of the above clients to work using a longer 
timeout.  I was able to log in to port 25 using a telnet 
client and entered the email commands manually.  The server 
took 30 seconds to return the first response, so, I think I 
just need a longer timeout.  Can you handle that?

Thanks,
Bob
Append By: WindSurfer  When: 2000-02-16 14:44:16  New Status: Pending Customer
Comment
Sorry for the delay--we are adding new parameters to the 
TEMAILPROFILE tag to enable you to have control over the 
response timeout (current default is 25 seconds), the 
overall connect timeout (current default is 60 seconds) and 
while we are at it, the maximum line length (default is 79).

This should be ready later today--will let you know when it 
is ready.  Will require you to update your IELUA (base 
Screensurfer executable).
Append By: br@nwl  When: 2000-02-16 20:14:05  New Status: Pending IE
Comment
Is it the t2_0_7d.zip at the ftp site?
Append By: Big Kahuna  When: 2000-02-17 09:28:12  New Status: Pending Customer
Comment
Yes, go to ftp://www.screensurfer.com and the t2_0_7d.zip 
file is there.
Append By: br@nwl  When: 2000-02-17 11:15:20  New Status: Pending IE
Comment
Could you give me the syntax for the new TEMAILPROFILE 
parameters?

Thanks,
Bob
Append By: WindSurfer  When: 2000-02-17 11:41:08  New Status: Pending Customer
Comment
Actually, the correct file is 
ftp://www.screensurfer.com/T2_0_8A.zip for the TEMAILPROFILE 
parameter updates, which are:

ResponseWait=milliseconds (default is 25000)
ConnectWait=milliseconds (default is 60000)
LineLength=characters (default is 79)

Sorry for the delay, we're doing a number of 
fixes/enhancements for a number of customers at the 
moment...
Append By: br@nwl  When: 2000-02-17 13:20:40  New Status: Pending IE
Comment
My email worked like a charm after I set ResponseWait to 
60000.

I assumed you must be busy - the price of success.

Thanks for the help,
Bob