Home > Microsoft Exchange Tips > Exchange Server Administration Tips > SMTP transport event sink issue with MAPI messages
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

SMTP transport event sink issue with MAPI messages


Serdar Yegulalp
09.13.2005
Rating: -3.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Please let others know how useful this tip is via the rating scale at the end of it. Do you have a useful Exchange or Outlook tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize.


Exchange "event sinks" are mechanisms by which a programmer can create custom code that triggers when a certain event takes place in Exchange -- for instance, when new e-mail arrives or when a message is sent out.

Among the various event sink types available in Exchange are SMTP transport event sinks, which can trap and handle all outgoing e-mail messages sent via SMTP.

There's a programmatic quirk to the way SMTP event sinks work. If you use an SMTP event sink to modify the contents of an outgoing MAPI message -- i.e., a message sent using a MAPI client like Outlook -- the modifications will not take.

They'll work without an error. They'll even show up within the scope of the event sink. But once the message is actually sent through SMTP, the changes will not be reflected in the sent message.

The reason for this is subtle, but not all that complicated. When the SMTP event sink fires, Exchange converts the MAPI message to a copy in SMTP format for the event sink to process. But this converted copy isn't actually sent -- it's just used for the event sink's proces...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters

Microsoft Exchange Server Scripts and Programming
Removing old disclaimers from Exchange Server 2003
How to run Exchange Management Shell cmdlets in Exchange Server 2007
Automate complex Exchange 2007 Management Shell tasks via scripting
Exchange event sink scripting error when configuring email disclaimer
EMS add-on tool generates graphical Exchange Server 2007 reports
A primer on the Exchange Server 2007 Exchange Management Shell
How to generate HTML reports with the Exchange Management Shell (EMS)
Use the Exchange Management Shell Set command to block senders
How to test Exchange Management Shell commands
Grant or deny permissions to access a user's Exchange 2007 mailbox

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
application program interface  (SearchExchange.com)
event sink  (SearchExchange.com)
synchronous groupware  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


sing. Once the event sink finishes, the converted copy of the message is discarded and the original MAPI message is processed instead.

Microsoft states that this behavior is by design, since the sink is only supposed to modify messages that are received in SMTP format. Otherwise, outgoing mail could be broken before ever being processed.

If you want an SMTP sink to modify all e-mail coming through it, one way to do this is to place the event sink on a border Exchange server, rather than the originating server, or have outbound e-mail sent to a smart host through an SMTP connector. This will force the message to be converted to SMTP first, which will in turn allow it to be modified by any SMTP event sinks.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.


Do you have comments on this tip? Let us know.
Related information from SearchExchange.com:

  • Tech Glossary: SMTP
  • Reference Center: Exchange Server scripts and programming



    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts