Questions tagged [exchange-transport-agents]

Exchange Server provides a library of classes that support the extension of the Exchange transport behavior and enable the reading, writing, and converting of content types. You can use these classes to create Exchange transport applications that read, write, and process messages in the transport pipeline.

30 questions
5
votes
2 answers

Editing an SMTP header with an Exchange 2007 Transport Agent

I'm currently writing an Exchange 2007 Transport Agent to replace some headers in all outgoing mails from a particular sender. I managed to replace the 'From' SMTP header successfully, but rewriting the 'Return-Path' header does not seem to work. To…
3
votes
1 answer

Where to find Microsoft.Exchange.Data.* assemblies

I am looking at implementing a Microsoft Exchange Transport Agent (http://msdn.microsoft.com/en-us/library/aa579185(v=exchg.140).aspx) to do some email processing, but I'm having trouble figuring out where to get the Microsoft.Exchange.Data.*…
jwynveen
  • 1,261
  • 3
  • 15
  • 34
2
votes
1 answer

C# Exchange 2007 Transport Agent

Im trying to write an exchange transport agent that tests to see if the subject line is empty, if it is than it inserts a default subject line. whenever i compiled, installed, and enabled this dll the server would no longer route email... using…
Jeff
  • 1,609
  • 3
  • 20
  • 25
2
votes
1 answer

Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients

I am trying to create a TransportAgent that reroutes an internal email to a remote server for further processing, but the email comes over in Microsoft's internal TNEF format (no content conversion is being applied). I would like it to be in the…
2
votes
1 answer

Will a transport agent execute before journaling occurs exchange 2013?

I am currently working on proof of concept for a new system, but it is based on a transport agent executing before journaling takes place. My question is: Will a transport agent that adds text to the subject of all messages occur before the…
2
votes
1 answer

Exchange Server 2007 Transport Agent Issue

This is the first time i am working on Exchange Server Development. Below is a simple Transport Agent that i am using, this agent should simply update the email Subjects as shown below in the code. using System; using…
2
votes
0 answers

How to identify client type in Exchange 2010 c#

I faced with a need to identify client type in Exchange 2010 in my current work project. In my scenario I have Exchange agent which observe mailflow on Exchange server. If incoming email message has attachments of some type (for example, MS Word)…
1
vote
4 answers

Exchange Server Transport Agent Won't Load, "Built By a Newer Runtime"

I have built a simple transport agent (using .NET 4.0) for exchange 2010 and I'm trying to install it using the exchange management shell, but I run across this error: Could not load file or assembly 'file:///C:\Program Files\Microsoft\Exchange…
1
vote
1 answer

Outlook can't show body of TNEF email exported from Exchange transport agent

I'm exporting emails by Exchange 2016 transport agent and saving them to disk. Outlook successfully opens all the emails, resolve headers, but ts is not able to show body of messages sent from Outlook client. Type is: Content-Type:…
Miroslav Adamec
  • 1,060
  • 1
  • 15
  • 23
1
vote
1 answer

Getting location from EmailMessage in exchange

I can read an EmailMessage. Now I need to get the location property using C#. I can access the properties like Subject, From, To and etc but did not find any property like Location Basically I am developing a custom transport agent for Exchange. In…
1
vote
1 answer

Exchange Transport Agent Bounce MailItem

In our Exchange RoutingAgent, we would like to be able to bounce an email back to the sender in the event of an unexpected exception. We would also like to be able to send the bounce message to some pre-defined admin email too if possible. Is there…
1
vote
1 answer

Exchange Routing Agent Detect Email Direction

We have an Exchange Trasport Agent, which is specifically a RoutingAgent. In the OnSubmittedMessage event we need to inspect the MailItem and determine if it is outbound or inbound. I am currently looking at using the SmtpServer.AcceptedDomains…
1
vote
3 answers

install transport Agent (Exchange) programmatically

Is it possible to install a Transport Agent to Exchange Server within a C# programm? Normally you create your Agent .dll, then you need to open Exchange Management Shell and execute the following commands: Install-TransportAgent -Name "Agent Name"…
1
vote
2 answers

Exchange Transport Agent - Creating a MailItem

I've been writing an Exchange Transport Agent, and I seem to have everything figured out in terms of actually developing it. But now it's time for testing, and I've hit a problem. I'm listening for the OnEndOfData event so that I can peek at the…
1
vote
1 answer

Exchange transport agent to check senders of email message

I would like to write an Exchange transport agent to check email message senders against a text file and based on that change email subject line. What would be C# code to check email senders? Should it be something like this? List
SeanZhang2012
  • 31
  • 1
  • 5
1
2