SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERV

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERV
Author Message
m scopes



Joined: 19 Sep 2000
Posts: 1

Post USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERVICE Reply with quote

I am using microsoft Outlook on my server.

I am trying to use MAPI interface to our mail system with 24x7 as a service.
The 24X7 job is quite simple once a file is detected, a notification mail is send and the file is
deleted

I believe that the files containing the "Microcoft Outlook " mail profile configuration
for "system" is lacking. Do you know which file is accessed in order to retrieve Internet mail "properties"
NTUSER.DAT?

You can see from the log below that "my 24X7" works correctly when I don't use 24X7 as a
service.

When I take the same script with 24x7 as a service, I get the message

"Sending mail failed: Logon Failed!"

MY 24X7 LOG:

User is "system" as a service KO

18/09/00 18:01:27 1 4 send mail only by MAPI Semaphore file(s) C:\mscopes\aa.txt found.
18/09/00 18:01:27 0 4 send mail only by MAPI Job started.
18/09/00 18:01:30 1 4 send mail only by MAPI Sending mail failed: Logon Failed!
18/09/00 18:01:33 0 4 send mail only by MAPI Job finished.
18/09/00 18:04:33 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler terminating...
18/09/00 18:04:52 0 0 24x7 Scheduler 24x7 Scheduler starting...
18/09/00 18:09:06 0 0 24x7 Scheduler 24x7 Scheduler terminating...

SCRIPT TESTED BEFORE AS "NOT A SERVICE" OK
18/09/00 18:09:15 0 0 24x7 Scheduler 24x7 Scheduler starting...
18/09/00 18:10:13 1 4 send mail only by MAPI Semaphore file(s) C:\mscopes\aa.txt found.
18/09/00 18:10:13 0 4 send mail only by MAPI Job started.
18/09/00 18:10:28 0 4 send mail only by MAPI Start message sent.
18/09/00 18:10:32 0 4 send mail only by MAPI Job finished.

user "a local user" and
RESULT WHEN USED AS A SERVICE KO
18/09/00 18:16:09 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler starting...
18/09/00 18:20:40 1 4 send mail only by MAPI Semaphore file(s) C:\mscopes\aa.txt found.
18/09/00 18:20:40 0 4 send mail only by MAPI Job started.
18/09/00 18:20:43 1 4 send mail only by MAPI Sending mail failed: Logon Failed!

Mon Sep 18, 2000 12:49 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6509

Post Re: USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERV Reply with quote

MAPI will not work with services running as local system because these services get loaded before Network connections are setup, and thus it prevents MAPI from working properly. You should use SMTP interface in such cases.

: I am using microsoft Outlook on my server.

: I am trying to use MAPI interface to our mail system with 24x7 as a service.
: The 24X7 job is quite simple once a file is detected, a notification mail is
: send and the file is
: deleted

: I believe that the files containing the "Microcoft Outlook " mail
: profile configuration
: for "system" is lacking. Do you know which file is accessed in
: order to retrieve Internet mail "properties"
: NTUSER.DAT?

: You can see from the log below that "my 24X7" works correctly when
: I don't use 24X7 as a
: service.

: When I take the same script with 24x7 as a service, I get the message

: "Sending mail failed: Logon Failed!"

: MY 24X7 LOG: User is "system" as a service KO

: 18/09/00 18:01:27 1 4 send mail only by MAPI Semaphore file(s)
: C:\mscopes\aa.txt found.
: 18/09/00 18:01:27 0 4 send mail only by MAPI Job started.
: 18/09/00 18:01:30 1 4 send mail only by MAPI Sending mail failed: Logon
: Failed!
: 18/09/00 18:01:33 0 4 send mail only by MAPI Job finished.
: 18/09/00 18:04:33 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler
: terminating...
: 18/09/00 18:04:52 0 0 24x7 Scheduler 24x7 Scheduler starting...
: 18/09/00 18:09:06 0 0 24x7 Scheduler 24x7 Scheduler terminating...

: SCRIPT TESTED BEFORE AS "NOT A SERVICE" OK
: 18/09/00 18:09:15 0 0 24x7 Scheduler 24x7 Scheduler starting...
: 18/09/00 18:10:13 1 4 send mail only by MAPI Semaphore file(s)
: C:\mscopes\aa.txt found.
: 18/09/00 18:10:13 0 4 send mail only by MAPI Job started.
: 18/09/00 18:10:28 0 4 send mail only by MAPI Start message sent.
: 18/09/00 18:10:32 0 4 send mail only by MAPI Job finished.

: user "a local user" and
: RESULT WHEN USED AS A SERVICE KO
: 18/09/00 18:16:09 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler
: starting...
: 18/09/00 18:20:40 1 4 send mail only by MAPI Semaphore file(s)
: C:\mscopes\aa.txt found.
: 18/09/00 18:20:40 0 4 send mail only by MAPI Job started.
: 18/09/00 18:20:43 1 4 send mail only by MAPI Sending mail failed: Logon
: Failed!

Tue Sep 19, 2000 4:56 am View user's profile Send private message
m.scopes



Joined: 20 Sep 2000
Posts: 1

Post Re: USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERV Reply with quote

: MAPI will not work with services running as local system because these
: services get loaded before Network connections are setup, and thus it
: prevents MAPI from working properly. You should use SMTP interface in such
: cases.

That means that I cannot use the "Email watch" functionaly of 24x7?

I do get messages in the Window NT application event log:

"Votre profil n'a pas été chargé correctement, mais votre session a été ouverte avec le profil par défaut du système. Veuillez corriger le problème et fermer la session. (5)"
It's basically saying that the default profil has been loaded instead of system one?


Tue Sep 19, 2000 12:31 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6509

Post Re: USING MAPI MAIL INTERFACE WITH 24X7 AS NT SERV Reply with quote

Well,.. you can use it if you setup the 24x7 to run either as a standalone application (why not put a shotcut to the "Startup" folder, then finish it by changing the shortcut Run property to "Run Minimized") or
setup 24x7 to run as service under some user account different from the LocalSystem.

Answering your second question: the specified profile was not found (not visible to the service?), that's why the default profile was used instead. If the specified profile does exist, change the service logon account to one that owns the profile).

: That means that I cannot use the "Email watch" functionaly of 24x7?

: I do get messages in the Window NT application event log: "Votre profil
: n'a pas été chargé correctement, mais votre session a été ouverte avec le
: profil par défaut du système. Veuillez corriger le problème et fermer la
: session. (5)"
: It's basically saying that the default profil has been loaded instead of
: system one?

Wed Sep 20, 2000 11:05 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.