SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Email Not Working When Running As NT Service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Email Not Working When Running As NT Service
Author Message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Email Not Working When Running As NT Service Reply with quote


I am running 24x7 version 2.1.2 and having problems sending email when running it as an NT service. I get this error:

"An error occured while executing 24x7 script: Line 1: Sending mail failed: Logon Failed!"

Now, the odd thing is, of course, the job works when it's run on the console. I'm using the same MS Exchange profile and login as the service (using "logon as in the services control panel). I've tried changing the profile name but it didn't seem to help.

Any ideas?

Derek


Mon May 22, 2000 4:22 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Re: Email Not Working When Running As NT Service Reply with quote

MAPI may not work If you start service as a LocalSystem. It may have difficulties accessing network resources. In that case you should use configure and use SMTP email method (see Tools/Options/General tab/Email settings).

: I am running 24x7 version 2.1.2 and having problems sending email when
: running it as an NT service. I get this error: "An error occured
: while executing 24x7 script: Line 1: Sending mail failed: Logon
: Failed!"

: Now, the odd thing is, of course, the job works when it's run on the console.
: I'm using the same MS Exchange profile and login as the service (using
: "logon as in the services control panel). I've tried changing the
: profile name but it didn't seem to help.

: Any ideas?

: Derek

Mon May 22, 2000 10:26 am View user's profile Send private message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Re: Email Not Working When Running As NT Service Reply with quote

OK. I configured it using SMTP and it works. However, I was running it as a user and not LocalSystem, so I'm not sure why MAPI was working. It would be nice to get it to work since I like to use some of the Outlook functionalities.

: MAPI may not work If you start service as a LocalSystem. It may have
: difficulties accessing network resources. In that case you should use
: configure and use SMTP email method (see Tools/Options/General tab/Email
: settings).

Mon May 22, 2000 8:23 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Re: Email Not Working When Running As NT Service Reply with quote

This is is not a 24x7 Scheduler limitation, but simply the way Windows MAPI (Messaging Application Program Interface) is implemented. MAPI itself requires certain permissions for accessing network resources and communicating with the Exchange (or other) Mail Server.
MAPI also requires access to the User Desktop. When invoked from the 24x7
Service MAPI inherits security attributes of the 24x7 Scheduler including
"no access" to desktop. As a result of that it fails and returns some
errors. Remember that by Windows NT design a service may either have access
to the network or to the desktop (this is by security reasons).
----------------------------------------------
You have the following workarounds:
If you do not need 24x7 to start unattended after computer reboot (using
LocalSystem account) consider running it as normal application, you can place a shortcut to the StartUp menu. In shortcut properties select RunMinimized so that it will appear in the system tray area only.
Or consider using STMP email interface provided with the 24x7.
----------------------------------------------
: OK. I configured it using SMTP and it works. However, I was running it as a
: user and not LocalSystem, so I'm not sure why MAPI was working. It would
: be nice to get it to work since I like to use some of the Outlook
: functionalities.

Mon May 22, 2000 11:47 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.