Exchange event sinks. SMTP & MAPI?
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Exchange event sinks. SMTP & MAPI?

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Grant Sparks
Guest





Posted: Fri Oct 21, 2005 8:58 am    Post subject: Exchange event sinks. SMTP & MAPI? Reply with quote

Hi,

I realise that this is a frequently asked question, but none of the
solutions that I have read have helped me so far.

I have written some hooks (using C#.Net) for the smtp event sinks and I have
successfully registered for the following events-
OnTransportSubmission
OnPreCategorize
OnCategorize
OnPostCategorize

At this stage, my DLL simply writes to the event log when any of the above
events is fired.

Unfortunately the _only_ event sink that will fire _both_ for "SMTP events"
and for "Outlook Web Access MAPI events" is OnPostCategorize.

This is a problem because I am trying to write a mailinglist moderation
filter that will divert incoming messages from non-subscribers off to be
approved by a moderator prior to letting them through to the distribution
list. This seemingly simple task appears to be impossible to achieve in MS
Exchange.

By the time the messages reach the "OnPostCategorize" event, the addresses
have already been expanded to the mailinglist subscribers, so I no longer
have the information about what list the message was originally sent to, and
anyway I'd need to process each message hundreds of times instead of just
once which is silly.

I have read the KB article, Q288756, however in Exchange 2003 the
recommended configuration does not work, it simply bounces the messages
around between each of the virtual SMTPs until they get marked as
undeliverable.

Does anyone have any suggestions for how I can intercept both SMTP and MAPI
incoming mail, prior to the addresses being expanded for distribution lists?

--G

Back to top
Victor Ivanidze
Guest





Posted: Fri Oct 21, 2005 8:58 am    Post subject: Re: Exchange event sinks. SMTP & MAPI? Reply with quote

Hi,

you could try to use a store event sink (OnSyncSave) to do that,
I'm not sure if you will be able to detact original recipient addresses
though,

Regards,
Victor Ivanidze

"Grant Sparks" <grant.sparks@icemedia.com.au> wrote in message
news:Oq2MwAg1FHA.2064@TK2MSFTNGP09.phx.gbl...
Quote:
Hi,

I realise that this is a frequently asked question, but none of the
solutions that I have read have helped me so far.

I have written some hooks (using C#.Net) for the smtp event sinks and I
have successfully registered for the following events-
OnTransportSubmission
OnPreCategorize
OnCategorize
OnPostCategorize

At this stage, my DLL simply writes to the event log when any of the above
events is fired.

Unfortunately the _only_ event sink that will fire _both_ for "SMTP
events" and for "Outlook Web Access MAPI events" is OnPostCategorize.

This is a problem because I am trying to write a mailinglist moderation
filter that will divert incoming messages from non-subscribers off to be
approved by a moderator prior to letting them through to the distribution
list. This seemingly simple task appears to be impossible to achieve in
MS Exchange.

By the time the messages reach the "OnPostCategorize" event, the addresses
have already been expanded to the mailinglist subscribers, so I no longer
have the information about what list the message was originally sent to,
and anyway I'd need to process each message hundreds of times instead of
just once which is silly.

I have read the KB article, Q288756, however in Exchange 2003 the
recommended configuration does not work, it simply bounces the messages
around between each of the virtual SMTPs until they get marked as
undeliverable.

Does anyone have any suggestions for how I can intercept both SMTP and
MAPI incoming mail, prior to the addresses being expanded for distribution
lists?

--G




Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
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




Windows Server Dedicated Servers
New Topics Powered by phpBB