none
is it possible to get client type(OWA, outlook) in Transport Agent? RRS feed

  • Question

  • I want to implement a Transport Agent, it will process email differently according to the client type. is it possible? Can i get the client type information in Trasnport Agent? 
    Wednesday, September 30, 2015 8:07 AM

Answers

All replies

  • Hello there,

    please refer below link

    https://technet.microsoft.com/en-us/library/bb123536(v=exchg.150).aspx

    Cheers

    Dinesh

    • Proposed as answer by Dinesh Gabhane Thursday, October 1, 2015 11:54 AM
    Wednesday, September 30, 2015 8:40 AM
  • Hi,

    Do you want to send email in different ways according to the type of client (mobile devices, Outlook etc)? I don't believe this is possible with native Exchange tools.

    Transport rules can be configured to make changes to the way an email is delivered based on certain criteria but messages sent according to client type is not an option. See more information here: https://technet.microsoft.com/en-us/library/dd351127(v=exchg.150).aspx.

    Let me know if this answers your question.

    Thanks.


    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    Wednesday, September 30, 2015 9:25 AM
  • Generally no there is no supported way (or mandatory property that is set in a message to state the client used) of getting the client information from a message that was sent but there are a few workaround that may work for you depending on your environment, client versions etc, the best thing to do is use a MAPI Editor like MFCMapi or OutlookSpy and look at a few message that you want to process in your transport Agent (that are in the Inbox (don't use the copy in the SentItems as some MAPI properties are transmitted). Eg in 2013/16 there is a ClientInfo property

    But whether these will be set really depend on your environment but if you do see them in your message using a MAPI editor then you should be able to process them in a Transport Agent using the TNEFReader to process the Mapi properties on a message.

    Cheers
    Glen

    Thursday, October 1, 2015 2:55 AM
  • Hi,

    I've had a look at the message headers when messages are sent using OWA, Outlook, Outlook Anywhere or ActiveSync.

    ActiveSync emails don't have the below line in their message headers. 

    X-Originating-IP: [100.110.120.130]

    In this case, please test out the below transport rule which will identify emails sent by non-ActiveSync devices and apply a rule. In the example below, emails from Non-ActiveSync devices from the administrator mailbox are rejected with a custom message:

    Other than this, I don't know of any ways to do this with Exchange. You may be able to find 3rd party mobile device management tools or Outlook add-ins that may help.

    Let me know if this answers your question.

    Thanks.


    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.


    • Edited by Mark Gossa Thursday, October 1, 2015 2:11 PM
    Thursday, October 1, 2015 2:09 PM
  • thanks. but i can't see the "ClientInfo"
    Friday, October 9, 2015 7:54 AM
  • thanks. but i can't find the "X-Originating-IP" when message is send by outlook.

    Friday, October 9, 2015 7:56 AM
  • Hi,

    You'll only see X-Originating-IP if sent using Outlook in your domain. I cannot work out a way to achieve your request. Please can you consider a workaround.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    Friday, October 9, 2015 3:09 PM
  • yes, finally i workarounded this by get the client type from MessageTracingLog. 

    I can get the MessageID in TransportAgent, and I read the correspond MessageTracingLog, that contains the client information. e.g. OWA,AirSync.

    Thanks every one.

    Wednesday, December 2, 2015 9:16 AM
  • Hi,

    Please see here for a handy script that you can use with the message tracking logs to provide the client type: http://markgossa.blogspot.com/2015/11/exchange-what-type-of-client-sent-email.html.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Marked as answer by Bard.Zhang Thursday, December 3, 2015 2:00 AM
    Wednesday, December 2, 2015 11:54 AM