Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / December 2006

Tip: Looking for answers? Try searching our database.

how to create MAPI profile without knowing single mailbox in a exchange server?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
john - 30 Nov 2006 11:01 GMT
Hi,
I saw one question posted based on MAPI asking what is exactly
profile... even i have similer queries...

to get exchange server information i am using "CreateProfile" and
providing 3 parameters as profilename, mailbox name and server name.
And using this profile i am able to retrieve other mailboxes
information and public folder information...
     My question is
1. If I connect to somebody else (say customer) exchange server,
without knowing even a single  mail box name in that exchange server,
how to create this profile?
2. How to delete existing unwanted profiles?
3. If i create a profile usin any mailbox name in a server, i am able
to retrieve all information of other users mailbox also!!! how this is
possible?
Please help in understanding the concepts clearly of this MAPI
connection.
Regards,
john
Dan Mitchell - 30 Nov 2006 16:50 GMT
"john" <levi2john@gmail.com> wrote in news:1164884460.240896.22540
@f1g2000cwa.googlegroups.com:
> 1. If I connect to somebody else (say customer) exchange server,
> without knowing even a single  mail box name in that exchange server,
> how to create this profile?

You can't. How would you do this in (say) Outlook? If they've allowed
anonymous access, you could connect that way and get the GAL, or point
an LDAP client at the server and try and get the name of something that
way.

(see http://blogs.msdn.com/mstehle/archive/2006/02/24/538320.aspx )

> 2. How to delete existing unwanted profiles?

IProfAdmin::DeleteProfile.

> 3. If i create a profile usin any mailbox name in a server, i am able
> to retrieve all information of other users mailbox also!!! how this is
> possible?

Which information are you reading that you don't expect to be able to
read?

(Are you the same person as shivaraj? It's confusing trying to work out
which questions need answering for them, and which for you -- it would
be much easier if you'd stick to one identity when posting, or if you're
co-workers, if only one of you could post questions).

-- dan
shivaraj - 05 Dec 2006 07:17 GMT
Hi ,
Thanks for earlier comments but could any one please help in
clarifying/resolving other things wrt MAPI ?

1. Is is possible to get Exchange MAILBOX STORE name using MAPI ?
the hierarchy of System manager is :

First Organization -> Server -> First Storage Group -> Mailbox Store ->
Mailboxes

I know which server i am connected to and i am able to get all maiboxes
in that server using "GetMailboxTable" for that server. But not getting
on which "mailbox store" these mailboxes are sitting. I have 4 mailbox
stores each corresponding to 10 mailboxes. I am ablet to get all 40
mailboxes but not getting the mapping of mailbox to mailbox store.
Found a related article in net
http://groups.google.co.in/group/microsoft.public.win32.programmer.messaging/bro
wse_frm/thread/3b3f879248ffa3ac/aedeb755d30d6012?lnk=st&q=MAPI+%2B+retrieve+all+
mailbox+stores&rnum=1&hl=en#aedeb755d30d6012

saying its not possible through MAPI ...  is that so?

2. I have one more setting where in 2 cluster nodes are having exchagne
server installed and configured as exchange virtual server ( exchange
cluster ). in that "HrOpenExchangePrivateStore" and
"HrOpenExchangePublicStore" functions are failing returning some big
negative number. Any inputs for this? ( Note: the first parameter to
these function is a session to MAPI and that is created successfully).
Let me know if anyone wants to have code access....

Please let me know your views as this is very urgent for me.

Regards,
Shivaraj

> "john" <levi2john@gmail.com> wrote in news:1164884460.240896.22540
> @f1g2000cwa.googlegroups.com:
[quoted text clipped - 26 lines]
>
>  -- dan
Dan Mitchell - 05 Dec 2006 22:03 GMT
> Found a related article in net
> http://groups.google.co.in/group/microsoft.public.win32.programmer.mess
> aging/browse_frm/thread/3b3f879248ffa3ac/aedeb755d30d6012?lnk=st&q=MAPI
> +%2B+retrieve+all+mailbox+stores&rnum=1&hl=en#aedeb755d30d6012 saying
> its not possible through MAPI ...  is that so?

I haven't tried it myself, so I'm not sure, sorry. That said, if Dmitry
and Siegfried both think it's not possible, then I'd be pretty sure it's
not possible.. You could do what's mentioned there and use ADSI (or
LDAP) to try and get more info about where the mailbox lives, I guess.

> 2. I have one more setting where in 2 cluster nodes are having
> exchagne server installed and configured as exchange virtual server (
> exchange cluster ). in that "HrOpenExchangePrivateStore" and
> "HrOpenExchangePublicStore" functions are failing returning some big
> negative number. Any inputs for this?

Well, the very large negative number will be a HRESULT -- try using
'error lookup' in devstudio, or 'err.exe', or just poke around in the
header files to find out what the actual error is. That should point you
in the right direction.

-- dan
shivaraj - 06 Dec 2006 07:21 GMT
Hi Dan,
Thanks for your quick reply.

>  Well, the very large negative number will be a HRESULT -- try using
> 'error lookup' in devstudio, or 'err.exe', or just poke around in the
> header files to find out what the actual error is. That should point you
> in the right direction.

The error code I am getting is 80004005 and the info I got regarding
this is  "80004005 as meaning the script could not access your data.
The most likely reason is a permissions related problem".  To make sure
this is the problem with permissions I installed "Exchange Explorer"
tool and through this i am able to access the public folder information
by providing "http://evs_server/public/" as 'Exchange store URL' with
other priviledges. (where evs_server is the exchange EVS name). So not
sure why this is failing here.

Regards,
Shivaraj

> > Found a related article in net
> > http://groups.google.co.in/group/microsoft.public.win32.programmer.mes
[quoted text clipped - 21 lines]
>
>  -- dan
Dan Mitchell - 06 Dec 2006 22:41 GMT
> The error code I am getting is 80004005 and the info I got regarding
> this is  "80004005 as meaning the script could not access your data.
[quoted text clipped - 4 lines]
> other priviledges. (where evs_server is the exchange EVS name). So not
> sure why this is failing here.

Sorry, I really have no idea. I don't know enough (anything) about how
clusters / virtual servers work, so I'm not sure where to start. I suppose
you could check permissions and whatnot, change your code to log in as an
admin or something, but I'm just guessing at this point.

good luck!

-- dan
shivaraj - 07 Dec 2006 12:44 GMT
No problem Dan.  Once again thanks for your valuable suggestions which
helped me to clarify many things in exchange as I was totally new to
this !!!

    Meanwhile does anybody have answer for my previous question? Even
if somebody has a VB script which will collect mailbox and public
folder properties in EXCHANGE CLUSTER environment, will be helpful for
me to understand the permissions and access privileges to get my code
work.

   I tried many VB scripts (webdev, cdo, exoledb) which are able to
collect info in stand alone machine but failing with 80004005 error for
Exchange cluster. Seems to be some permissions issue but no idea what's
going wrong!!

Regards,
Shivaraj

> > The error code I am getting is 80004005 and the info I got regarding
> > this is  "80004005 as meaning the script could not access your data.
[quoted text clipped - 13 lines]
>
>  -- dan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.