Exchange 2010: Forward Incomming Mail while modifying mail body RRS feed

  • Question

  • Hi all,

    how can I forward a mail while changing the body of the message.

    Idea is to set the out of office automatically and also enable the message forwarding.

    The person that gets the mails forwarded should recognize the emails that are forwarded.

    If we only add the forwarder, the person that gets the forwarded can't see if the mail was sent directly to it or was forwarded.

    Any ideas?
    EWS, Powershell, Transportrule?

    Thanks in advance


    Have a look at:
    Friday, June 10, 2011 1:39 PM


All replies

  • There are a few ways to do this the first would be just use the Exchange Management Shell to create a forwarding Inbox rule using


    Any mail forwarded using this will be prefixed with the "FW:" (or maybe "AW" for de) to set the Out of office status of a mailbox similarly you can use the EMS and


    Not sure what you mean by modifying the body of the message the rule will modify the subject for you to modify the body of a message would mean using a Transport Agent but doesn't sound like you need to do this.


    Monday, June 13, 2011 3:25 AM
  • Thank you for your answers.

    In the actual Exchange 2003 infrastucture, there is a custom eventsink.dll that adds a text to each forwarded message like: This mail was forwarded automatically.

    This event sink is awar on some extension attributes to figure out, what mail get the text line added.

    I'd like to rebuild that one using exchange 2010.

    So I proofed the inboxrules and the transport rules, but they do not seem to give the ability to do something like that.

    If I forward email using EWS, there is a method called createforward() where you can change the body, subject and any other attribute to fit the way you want to.

    But I can't run an script in a scheduled way on each account.

    So it should add the text on any incomming message.


    Any ideas inspite of the transport agents?


    Kind regards


    Have a look at:
    Tuesday, June 14, 2011 9:23 PM
  • The replacement in EWS for Store Event sinks is to use EWS Notifications you may want to look at streaming notifications then subscribe to every Inbox folder you want watched.

    Transport Agents are another option depending on what extension attributes your looking at with the event sink ? In transport agents if the messages are being sent internally there will be a TNEF stream where you can parse Mapi properties from using the TNEFReader eg You can Copy,Modify and send messages within a Transport Agent i would suggest you look at OnSubmission on OnRouted Transport Agent maybe something like


    Wednesday, June 15, 2011 10:21 AM
  • Thank you for your input.

    We now have to decide if we use inbox-rules or transport agents. (there is a good example in the exchange transport agent sdk for converting the body of an email)


    Kind regards,


    Have a look at:
    Wednesday, June 15, 2011 8:55 PM