Exchange Server 中的组织范围内的免责声明、签名、页脚或标头Organization-wide disclaimers, signatures, footers, or headers in Exchange Server

可以将电子邮件免责声明、法律免责声明、泄漏声明、签名,或其他信息添加到传入或传出组织的电子邮件的顶部或底部。出于法律、业务或法规要求,可能需要执行此操作以确定潜在的不安全的电子邮件,或出于组织独有的其他原因,可能需要执行此操作。You can add an email disclaimer, legal disclaimer, disclosure statement, signature, or other information to the top or bottom of email messages that enter or leave your organization. You might be required to do this for legal, business, or regulatory requirements, to identify potentially unsafe email messages, or for other reasons that are unique to your organization.

若要创建免责声明,请使用将指定文本添加到电子邮件的操作来创建邮件流规则(也称为传输规则)。To create a disclaimer, you create a mail flow rule (also known as transport rule) with an action that adds the specified text to email messages. 可以配置规则以将免责声明应用到所有邮件(无条件),或者可以定义条件来确定何时添加免责声明(例如,当发件人是某个特定群体的成员时,当邮件包含特定字词或文本模式时,或仅传出的邮件时)。You can configure the rule to apply the disclaimer to all messages (no conditions), or you can define conditions that determine when the disclaimer is added (for example, when the sender is a member of a specific group, when the message includes specific words or text patterns, or outgoing messages only). 也可以定义例外以防止免责声明添加到邮件(例如,来自特定发件人的邮件、发送给特定收件人的邮件或已经包含免责声明的邮件)。You can also define exceptions that prevent the disclaimer from being added to messages (for example, messages from specific senders, messages sent to specific recipients, or messages that already contain the disclaimer). 若要对相同邮件应用多个免责声明,则需要使用多个规则。To apply multiple disclaimers to the same message, you need to use multiple rules. 有关邮件流规则的详细信息,请参阅Exchange Server 中的邮件流规则For more information about mail flow rules, see Mail flow rules in Exchange Server.

寻找过程吗?Looking for procedures? 请参阅Configure a Disclaimer or Other Email Header or FooterSee Configure a Disclaimer or Other Email Header or Footer.

示例Examples

注意:本主题中的示例不适合按方式使用。Note: The examples in this topic are not intended for use as-is. 请按照需要对其进行修改。Modify them for your needs.

类型Type 添加的示例文本Sample text added
法律 - 传出的邮件Legal - outgoing messages 此电子邮件和随之传送的任何文件都是保密的,仅供收件的个人或实体使用。如果您错误地收到此电子邮件,请通知系统管理员。This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager.
法律 - 传入的邮件Legal - incoming messages 明确要求员工不要制造诽谤性言论,不要侵犯或授权侵犯任何版权以及任何涉及到电子邮件通信的其他法律权利。收到这类电子邮件的员工必须立即通知主管。Employees are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Employees who receive such an email must notify their supervisor immediately.
请注意邮件的发送对象使用的是别名Notice that message was sent to an alias 此邮件的发送对象是销售讨论组。This message was sent to the Sales discussion group.
签名 - 为每位员工使用唯一数据Signature - uses unique data for each employee Kathleen MayerKathleen Mayer
销售部门Sales Department
ContosoContoso
www.contoso.comwww.contoso.com
kathleen@contoso.comkathleen@contoso.com
单元格:111-222-1234cell: 111-222-1234
广告Advertisement 单击此处可查看 3 月的详细信息Click here for March specials

免责声明的位置Location for your disclaimer

可以选择在邮件的开头(预置),或者在邮件的末尾(追加)插入免责声明。You can choose whether to insert the disclaimer at the beginning of the message (prepend), or at the end of the message (append).

在 EAC 中,选择操作" 追加免责声明"或" 将免责声明应用到邮件">" 在前面预置免责声明"。In the EAC, you select the action Append the disclaimer or Apply a disclaimer to the message > prepend a disclaimer.

在 Exchange 命令行管理程序中,将_ApplyHtmlDisclaimerTextLocation_参数与值Append (默认)或Prepend结合使用。In the Exchange Management Shell, you use the ApplyHtmlDisclaimerTextLocation parameter with the value Append (default) or Prepend.

格式化免责声明Format your disclaimer

以下是可以用于免责声明文本的格式设置。Here's the formatting that you can use in your disclaimer text.

信息类型Type of information 说明Description
纯文本Plain text 最大长度为 5000 个字符,包括任何 HTML 标记和内联级联样式表 (CSS)。The maximum length is 5,000 characters, including any HTML tags and inline Cascading Style Sheets (CSS).
HTML 和内联 CSSHTML and inline CSS 您可以使用 HTML 和内联 CSS 样式设置文本的格式。You can use HTML and inline CSS styles to format the text. 例如,使用<HR>标记在免责声明之前添加一行。For example, use the <HR> tag to add a line before the disclaimer.
如果将免责声明添加到纯文本邮件,则忽略 HTML。HTML is ignored if the disclaimer is added to a plain text message.
图像Images 使用<IMG>标记指向 Internet 上可用的图像。Use the <IMG> tag to point to an image available on the Internet. 例如,<IMG src="http://contoso.com/images/companylogo.gif" alt="Contoso logo">For example, <IMG src="http://contoso.com/images/companylogo.gif" alt="Contoso logo">.
默认情况下,Outlook 和 Web 上的 Outlook(以前称为 Outlook Web App)阻止外部 Web 内容,包括图像。By default, Outlook and Outlook on the web (formerly known as Outlook Web App) block external web content, including images. 用户需要确认并下载阻止的外部内容。Users need to acknowledge and download the blocked external content. 我们建议您测试带有IMG标记的免责声明,以验证它们是否按所需方式显示。We recommend that you test disclaimers that have IMG tags to verify they display the way you want.
用于个性化签名的用户信息User information for personalized signatures 您可以使用令牌从每个用户的 Active Directory 帐户添加唯一属性DisplayName,例如FirstName LastName PhoneNumber Email FaxNumber、、、、、和。 DepartmentYou can use tokens to add unique attributes from each user's Active Directory account, such as DisplayName, FirstName, LastName, PhoneNumber, Email, FaxNumber, and Department. 语法是将属性名称括在两个百分号中(例如, %%DisplayName%%)。The syntax is to enclose the attribute name in two percent signs (for example, %%DisplayName%%).
有关可在免责声明和个性化签名中使用的属性的完整列表,请参阅在ADAttribute Exchange Server 中的邮件流规则条件和例外(谓词)中的属性说明。For a complete list of attributes that can be used in disclaimers and personalized signatures, see the description for the ADAttribute property in Mail flow rule conditions and exceptions (predicates) in Exchange Server.

下面是一个 HTML 免责声明的示例,其中包含一个签名、一个IMG标记和一个嵌入的 CSS。Here's an example of an HTML disclaimer that includes a signature, an IMG tag, and embedded CSS.

<div style="font-size:9pt;  font-family: 'Calibri',sans-serif;">
%%displayname%%<br/>
%%title%%<br/>
%%company%%<br/>
%%street%%<br/>
%%city%%, %%state%% %%zipcode%%</div>
&nbsp;<br/>
<div style="background-color:#D5EAFF; border:1px dotted #003333; padding:.8em; ">
<div><img alt="Fabrikam"  src="http://fabrikam.com/images/fabrikamlogo.png"></div>
<span style="font-size:12pt;  font-family: 'Cambria','times new roman','garamond',serif; color:#ff0000;">HTML Disclaimer Title</span><br/>
<p style="font-size:8pt; line-height:10pt; font-family: 'Cambria','times roman',serif;">This message contains confidential information and is intended only for the individual(s) addressed in the message. If you aren't the named addressee, you should not disseminate, distribute, or copy this e-mail. If you aren't the intended recipient, you aren'tified that disclosing, distributing, or copying this e-mail is strictly prohibited.  </p>
<span style="padding-top:10px; font-weight:bold; color:#CC0000; font-size:10pt; font-family: 'Calibri',Arial,sans-serif; "><a href="http://www.fabrikam.com">Fabrikam, Inc. </a></span><br/><br/>
</div>

免责声明规则的回退选项Fallback options for disclaimer rules

Exchange 不能修改某些邮件的内容(例如,加密的邮件)。Exchange can't modify the content of some messages (for example, encrypted messages). 对于将免责声明添加到邮件的规则,需要指定在无法添加免责声明的情况下应执行的操作。For rules that add disclaimers to messages, you need to specify what to do if the disclaimer can't be added. 这就是免责声明规则的回退选项This is known as the fallback option for the disclaimer rule. 可用的回退选项为:The available fallback options are:

  • Wrap:原始邮件封装在新的邮件信封中,并将免责声明文本插入到新邮件中。Wrap: The original message is wrapped in a new message envelope, and the disclaimer text is inserted into the new message. 此为默认值。This is the default value.

    • 后续邮件流规则将应用于新的邮件信封,而不是应用于原始邮件。因此,使用比其他规则更低的优先级配置这些规则。Subsequent mail flow rules are applied to the new message envelope, not to the original message. Therefore, configure these rules with a lower priority than other rules.

    • 如果无法将原始邮件封装在新邮件信封中,则不会传递原始邮件。邮件以未送达报告的形式退回给发件人(也称为 NDR 或退回邮件)。If the original message can't be wrapped in a new message envelope, the original message isn't delivered. The message is returned to the sender in an non-delivery report (also known as an NDR or bounce message).

  • Ignore:忽略该规则,并在不声明的情况下传递邮件Ignore: The rule is ignored and the message is delivered without the disclaimer

  • 拒绝:将邮件以 NDR 的的的发件人的邮件返回给发件人。Reject: The message is returned to the sender in an NDR.

在 EAC 中,可以选择规则操作中的回退选项。In the EAC, you select the fallback option in the rule action. 在 Exchange 命令行管理程序中,使用_ApplyHtmlDisclaimerFallbackAction_参数。In the Exchange Management Shell, you use the ApplyHtmlDisclaimerFallbackAction parameter.

划定免责声明的作用域Scope your disclaimer

在制定免责声明时,应考虑它们适用于哪些邮件。例如,可以为内部邮件和外部邮件,或者特定部门中的用户发送的邮件指定不同的免责声明。为了确保只让对话中的第一封邮件收到免责声明,需要添加一个例外,以防止免责声明文本一次次地应用到相同的邮件。As you work on your disclaimers, consider which messages they should apply to. For example, you might want different disclaimers for internal and external messages, or for messages sent by users in specific departments. To make sure only the first message in a conversation gets a disclaimer, add an exception that prevents the disclaimer text from being applied to the same messages over and over again.

以下是您可以使用的一些条件和例外的示例。Here are some examples of the conditions and exceptions you can use.

说明Description EAC 中的条件和例外Conditions and exceptions in EAC New-TransportRule 或 Set-TransportRule cmdlet Exchange 命令行管理程序 中的条件和例外Conditions and exceptions in the Exchange Management Shell for the New-TransportRule or Set-TransportRule cmdlets
收件人位于 Exchange 组织外部。配置例外,以便已包含免责声明文本"CONTOSO 法律声明"的邮件不必再次应用该免责声明。The recipient is located outside your Exchange organization. An exception is configured so messages that already contain the disclaimer text "CONTOSO LEGAL NOTICE" don't have the disclaimer applied again. Condition: The recipient is located > Outside the organizationCondition: The recipient is located > Outside the organization
Exception: The subject or body > Subject or body matches these text patterns > CONTOSO LEGAL NOTICEException: The subject or body > Subject or body matches these text patterns > CONTOSO LEGAL NOTICE
-FromScope NotInOrganization -ExceptIf -SubjectOrBodyMatches "CONTOSO LEGAL NOTICE"
带有可执行性附件的传入邮件Incoming messages with executable attachments 条件1:发件人位于 > 组织外部Condition 1: The sender is located > Outside the organization
Condition 2: Any attachment > has executable contentCondition 2: Any attachment > has executable content
-FromScope NotInOrganization -AttachmentHasExecutableContent
发件人是市场营销部Sender is in the marketing department 条件:发件人 > 是此组 > _组名称_的成员Condition: The sender > is a member of this group > group name -FromMemberOf "Marketing Team"
从外部发件人发送到销售讨论组的每封邮件Every message that comes from an external sender to the sales discussion group 条件1:发件人位于 > 组织外部Condition 1: The sender is located > Outside the organization
条件2: " > 发件人" 或 "抄送" 框包含此人 > 组名称Condition 2: The message > To or Cc box contains this person > group name
-FromScope NotInOrganization -SentTo "Sales Discussion Group"
在长达一个月的时间内将广告预加在传出邮件上Prepend an advertisement to outgoing messages for one month 条件1:收件人位于 > 组织外部Condition 1: The recipient is located > Outside the organization
在" 在以下日期激活此规则"和" 在以下日期停用此规则"字段中输入日期。Enter the dates in the Activate this rule on the following date and Deactivate this rule on the following date fields.
-ApplyHtmlDisclaimerLocation Prepend -SentToScope NotInOrganization -ActivationDate '03/1/2016' -ExpiryDate '03/31/2016'

有关可用于将免责声明作为目标的条件和例外的完整列表,请参阅邮件流规则条件和 Exchange Server 中的例外(谓词)For a complete list of conditions and exceptions that you can use to target the disclaimer, see Mail flow rule conditions and exceptions (predicates) in Exchange Server.

有关详细信息For more information

Configure a Disclaimer or Other Email Header or FooterConfigure a Disclaimer or Other Email Header or Footer

Exchange Server 中的邮件流规则(exchange 2016 和 exchange 2019)Mail flow rules in Exchange Server (Exchange 2016 and Exchange 2019)

Exchange Online 中的邮件流规则(传输规则)Mail flow rules (transport rules) in Exchange Online

Exchange Online Protection 中的邮件流规则(传输规则)Mail flow rules (transport rules) in Exchange Online Protection