roverm
asked on
Access mailbox via Windows Service
Hi all,
I've build a Windows Service in VB.NET which tries to retrieve the Inbox of a certain mailbox.
This doesn't work because the service is running under the Local System account.
If I change that to any valid user then still it doesn't work.
Now I wonder, is it possible in Exchange 2000 to set something like access rights for that mailbox so that the localsystem account can access it?
OS: Windows 2000 Server
Exchange 2000
Thanks!
D'Mzz!
RoverM
I've build a Windows Service in VB.NET which tries to retrieve the Inbox of a certain mailbox.
This doesn't work because the service is running under the Local System account.
If I change that to any valid user then still it doesn't work.
Now I wonder, is it possible in Exchange 2000 to set something like access rights for that mailbox so that the localsystem account can access it?
OS: Windows 2000 Server
Exchange 2000
Thanks!
D'Mzz!
RoverM
ASKER
I already added 'Everyone', 'SYSTEM' and 'SERVICE' to the mailbox rights.
Full access.
Still doesn't work!
Full access.
Still doesn't work!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, but what does it all mean? It's just a summary. I need to know how to set the right correct.
And, I don't have a 'Properties page'.
I am running Win2000Server with Active Directory. This mean that all user settings are done in the AD Manager.
FYI: Even when I run the application under the Owners name then it won't work!
And, I don't have a 'Properties page'.
I am running Win2000Server with Active Directory. This mean that all user settings are done in the AD Manager.
FYI: Even when I run the application under the Owners name then it won't work!
>>ry. This mean that all user settings are done in the AD Manager
NO! you need to assisn permissions in exchange forget everything you know about permissions, then open the exchange manager on the exchange server so your looking at the GLOBAL SETTINGS then drill down to the server level and start right clicking.
Pete
NO! you need to assisn permissions in exchange forget everything you know about permissions, then open the exchange manager on the exchange server so your looking at the GLOBAL SETTINGS then drill down to the server level and start right clicking.
Pete
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Pete,
Thanks so far but still no go...
I've added both SYSTEM and SERVICE accounts to the security tab in my Exchange server console.
Any other ideas?
Vahik,
I tried running under every possible user, including the administrator... didn't work.
I am using profiles, actually, 1 profile.
But even if I generate the profileobject runtime it won't work.
One strange(?) thing tho: I ported the complete code to a VBScript. This works just fine.
And when I put the VBS in the Windows Scheduler it works fine as well! Even when nobody's logged in!
D'Mzz!
RoverM
Thanks so far but still no go...
I've added both SYSTEM and SERVICE accounts to the security tab in my Exchange server console.
Any other ideas?
Vahik,
I tried running under every possible user, including the administrator... didn't work.
I am using profiles, actually, 1 profile.
But even if I generate the profileobject runtime it won't work.
One strange(?) thing tho: I ported the complete code to a VBScript. This works just fine.
And when I put the VBS in the Windows Scheduler it works fine as well! Even when nobody's logged in!
D'Mzz!
RoverM
Well i think u have answerd ur own question.Go to programming section and try to find out if there is any compatability issues when running vb.net against 2000 operating system.I bet that would run well on a 2003 system.sorry i dont have a clue about programming.
Good luck.
Good luck.
ASKER
Vahik,
The Q is also in the programming section ;-) I already did that.
But since it has to be something with userrights I turned to the Exchange exports.
Thanks tho.
D'Mzz!
RoverM
The Q is also in the programming section ;-) I already did that.
But since it has to be something with userrights I turned to the Exchange exports.
Thanks tho.
D'Mzz!
RoverM
:0)
hi roverm,
I have a very similar problem: I have implemented a VB6 service (ntsvc.ocx) which adds/removes scripting agents. From within a VB application: no problem. But by means of the service, everything seems to work, but the event service does not restart and the initialization fails. I suppose that it is related to insufficient access rights although I'm running the service as exchange admin LOGON account.
my question: do you have found a solution to your problem in the meantime...? would be a great help...
good luck, chris
I have a very similar problem: I have implemented a VB6 service (ntsvc.ocx) which adds/removes scripting agents. From within a VB application: no problem. But by means of the service, everything seems to work, but the event service does not restart and the initialization fails. I suppose that it is related to insufficient access rights although I'm running the service as exchange admin LOGON account.
my question: do you have found a solution to your problem in the meantime...? would be a great help...
good luck, chris
ASKER
Hi Chris,
I put all code in a VBScript and placed that script in the windows scheduler.
The script uses a normal profile to access the mailbox. Works great!
D'Mzz!
RoverM
I put all code in a VBScript and placed that script in the windows scheduler.
The script uses a normal profile to access the mailbox. Works great!
D'Mzz!
RoverM
ASKER
Hi all, closed this Q.
I didn't get the answer I was looking for but maybe in the future I will have more time to look into it.
Thanks !
D'Mzz!
RoverM
I didn't get the answer I was looking for but maybe in the future I will have more time to look into it.
Thanks !
D'Mzz!
RoverM
to assign rights to open another users inbox those rights need to be granted at the exchage server level, and given by using the Exchange system manager console.
Pete