Exchange 2000/2003 User Path

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Steffen Balslev (steffen_at_spamfighter.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 11:23:30 +0200

Hi boys and girls.

I'm developing an event sink for Exchange 2000 and 2003 recieving the
OnSyncSave store wide event.
The idea is to revieve the event and asynchronously process it on a
different thread.

Now it works as it should but my question to you is related to the post
processing of the items.

Let's set up a senario:

AD Users: Loginname Exchange Alias Primary email
                    User UserA
UserA@my-domain.com
                    UserB UserB
BUser@my-domain.com
                    UserC UserC
User@my-domain.com
                    UserD UserD
User@my-seconddomain.com

Incomming mails to usera@my-domain.com sink recieves url (sink param:
bstrURLItem) like:
file://./backofficestorage/my-domain.com/mbx/usera/inbox/newmail.eml

Using the definition from
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_the_file_url_scheme.asp?frame=true i
can resolve the path to a username.

Definition file://./backofficestorage/domain-name/MBX/user-alias/path
results in "usera" as the user, because the usera has exchange alias usera.

However when revieving mails for userb it looks a bit different, here I
recieve a url like:
file://./backofficestorage/my-domain.com/mbx/buser/inbox/newmail.eml

Using the definition from before I have to look for user with exchange alias
"buser" witch is not found. So I have changed the path definition to:
file://./backofficestorage/domain-name/mbx/user-primary-email-alias/path

This definition will help me find the user with user-primary-email-alias
"buser" so this works.

But but and but, when I recieve mails for UserC ex.
file://./backofficestorage/my-domain.com/mbx/user/inbox/newmail.eml I am
again faced with a problem. There are two users with the
user-primary-email-alias named "user" so Again I have to change the
definition, now its:
file://./backofficestorage/user-primary-email-domain-name/mbx/user-primary-email-alias/path

Now the big question is: DID I MISS SOMETHING, or is there an easier way to
lookup the owner of the new mail from the path of the mail that works with
out having to keep all of theese "fixes" in mind.

Regards

Steffen Balslev



Relevant Pages

  • Exchange 2000/2003 path (Also posted in microsoft.public.exchange.applications)
    ... I'm developing an event sink for Exchange 2000 and 2003 recieving the ... results in "usera" as the user, because the usera has exchange alias usera. ... However when revieving mails for userb it looks a bit different, ... when I recieve mails for UserC ex. ...
    (microsoft.public.exchange.applications)
  • =?Utf-8?Q?Re:_Event_Sink_f=C3=BCr_automatische_?= =?Utf-8?Q?Benachrichtigung?=
    ... Es gibt ein Store Event Sink namens PublicFolderNotificationEventSink. ... wenn Mails direkt vom Store ... Ressourcen-Management unter Exchange. ...
    (microsoft.public.de.exchange)
  • Re: SBS Email woes
    ... i've set up my exchange such that users can send mail to external ... domains but cannot recieve mails from them. ... > when you set up a user account in SBS each user gets a unique email address ...
    (microsoft.public.windows.server.sbs)
  • OL 03 rules problem
    ... my mails into a local pst file. ... Folder and to prompt me if I recieve messages from ... I am running in online or connected mode with Exchange ...
    (microsoft.public.outlook.general)
  • Re: OL 03 rules problem
    ... > my mails into a local pst file. ... > Recently these rules have stopped processing when new ... I recieve the item, ... > I am running in online or connected mode with Exchange ...
    (microsoft.public.outlook.general)