Office 365和传输代理 [英] Office 365 and Transport Agents

查看:140
本文介绍了Office 365和传输代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Exchange 2013服务器上,我可以创建一个smtpReceiveAgent 传输代理来执行
上显示的任务
此页面
,这是c# 代码( VB代码也可以在网页上找到: -

On an Exchange 2013 server I can create an smtpReceiveAgent transport agent to perform the task shown on this page, which is this c# code (VB code is also available on the webpage): -

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Exchange.Data.Transport;
using Microsoft.Exchange.Data.Transport.Smtp;

namespace MyAgents
{
    public sealed class MyAgentFactory : SmtpReceiveAgentFactory
    {
        public override SmtpReceiveAgent CreateAgent(SmtpServer server)
        {
            return new MyAgent();
        }
    }
    public class MyAgent : SmtpReceiveAgent
    {
        public MyAgent()
        {
            this.OnEndOfData += new EndOfDataEventHandler(MyEndOfDataHandler);
        }
        private void MyEndOfDataHandler (ReceiveMessageEventSource source, EndOfDataEventArgs e)

        {
            // The following line appends text to the subject of the message that caused the event.
            e.MailItem.Message.Subject += " - this text appended by MyAgent";
        }
    }
}

如何在Office 365 Exchange实施中执行类似操作?

How can I do something similar on my Office 365 Exchange implementation?

谢谢,保罗。

推荐答案


已回答:
Exchange 2013中的传输代理:
 "从Exchange 2007开始,Exchange版本中提供传输代理。传输代理为
。"

Answered: Transport agents in Exchange 2013: "Transport agents are available in versions of Exchange starting with Exchange 2007. Transport agents are not supported in Office 365 or Exchange Online."

以下是我实际想要做的事情: - 如果是外发电子邮件'To'地址与模式匹配,阻止电子邮件并立即通知发件人。

Here's what I actually want to do: - If an outgoing email 'To' address matches a pattern, block the email and immediately inform the sender.

由于客户问题,我无法使用传输规则/ DLP。

I am unable to use Transport Rules/DLP because of a customer issue.

谢谢,

保罗。


这篇关于Office 365和传输代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆