Grant Sparks
Guest
|
Posted:
Fri Oct 21, 2005 8:58 am Post subject:
Exchange event sinks. SMTP & MAPI? |
|
|
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
|
|
Victor Ivanidze
Guest
|
Posted:
Fri Oct 21, 2005 8:58 am Post subject:
Re: Exchange event sinks. SMTP & MAPI? |
|
|
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
|
|
|