RE: Envelope Rewrite Sink With Exchange 2003 SP2

  • From: "Michael B. Smith" <michael@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Tue, 28 Feb 2006 09:09:29 -0500

I'd suggest you turn off recipient filtering and do recipient filtering
in your event sink. 


The event sink that I've written for catchall e-mail addresses shows you
an example on how to do that:


To make your sink do what you want is pretty difficult (well, in
comparison to a OnArrival vbscript sink). You have to rewrite it to a
protocol sink and the rules for that are a little harder. And (as far as
I know) can't be done in vbscript. For more detailed information you
should take a look at the Exchange SDK.



From: William Holmes [mailto:wtholmes@xxxxxxxxxxxxxx] 
Sent: Monday, February 27, 2006 11:10 PM
To: [ExchangeList]
Subject: [exchangelist] Envelope Rewrite Sink With Exchange 2003 SP2



I have an event sink that rewrites envelope addresses in the form of
user+something@xxxxxxxxxxxx to user@xxxxxxxxxxxxx Where anything between
the + and the @ is considered a comment. Under Exchange 2003 SP2 with
Recipient Filtering Enabled with Filter Recipients who are not in the
directory enabled this filter does not work. The question I have is can
I hook an my event sink into the SMTP server prior to the Recipient
Filter so the address is rewritten prior to the Recipient Filter's


I register the sink using the smtpreg.vbs script from Microsoft using
the following command. 


cscript smtpreg.vbs /add 1 onarrival AddressRewrite
CDO.SS_SMTPOnArrivalSink "Mail FROM=*"


Could someone suggest where to register a sink that can work in the way
I would like it to.





List Archives:
Visit for more information about our other sites:
----------%0bYou>  are currently subscribed to this
Discussion List as: michael@xxxxxxxxxx
To <mailto:michael@xxxxxxxxxx%0bTo>  unsubscribe visit
abuse to info@xxxxxxxxxxxxxx 

Other related posts: