|
Posted by J.Alonso on April 5, 2006, 11:55 am
Please log in for more thread options
Hello there everybody
This problem is one that has been making me crazy for a week. I hope someone
knows the key to solve it!!!
I got a couple of 2003 Servers. One is running Exchange/SMTP, the other one
is runnig a scheduled task. The task wants to send an email using the SMTP
server. To do so, the task program, initializes network, creates a socket,
and connects to port 25.
If i double-click on the program ( not running as a task ), being logged on
as the user who runs the task, the program connects succesfully to the SMTP
server and send the email.
If i execute the task and the user is logged in, it also works fine.
BUT, if i logg of from the user, and the task is programmed every minute,
the task would not be able to establish the connection. The connect function
fails, returning -1, and WSAGetLastError o getsockopt, with SOL_SOCKET,
SO_ERROR, do not give me and idea why connect fails. They both say, 0 as the
error, which means, unknow error.
Well, i have no idea about policies on windows 2003 server. All i know is
that the user can launch tasks, because i have two other tasks running with
this user, and those tasks do not fail. They can on the other hand establish
TCP/IP connections on the local computer.
Does anybody have a clue ??
|
| Similar Threads | Posted | | scheduled task | June 14, 2007, 9:26 am |
| set up a scheduled task on windows 2003 | September 14, 2006, 3:30 am |
| Is it secure to define a password in a scheduled task ? | May 29, 2008, 5:29 am |
| Schedule a task | December 19, 2005, 9:56 am |
| Users tab in Task Manager on Windows 2003 | November 10, 2005, 12:28 pm |
| Granting Rights to Processes in Task Manager | May 3, 2006, 8:15 am |
| start/stop service as user from task scheduler | April 3, 2006, 11:25 am |
| Preventing RDT connection from outside | March 5, 2007, 12:51 pm |
| terminal service connection | September 14, 2006, 6:08 am |
| Computers Losing Connection ??? | January 11, 2007, 10:47 am |
|