如果有附件,如何添加免责声明? – Exchange 2010

目前我们有两段非常长的声明。 第一段涉及电子邮件内容本身。 第二段涉及附件(通常是AutoCAD图纸)以及如何使用/修改以及属于我公司的财产等。

我想将免责声明分成两部分,一部分总是附加的,另一部分只有在邮件上有附件时才附加。

这可能吗? 我search了谷歌,Technet,并在这里ServerFault,但无法find答案。

您需要两条运输规则 ,每条都有免责声明 :

# Our disclaimer, with HTML and fancy predicates: $DisclaimerText = @" <div style="color: #00FF00; font-family: 'Comic-sans'"> We, here at %%Company%% hate the environment, and want YOU to invest in additional storage! Please take these extra bytes of HTML as a sign of our gratitude towards your continued support of natural resource depletion *Patent forms*, *legal threats*, *copyright voodo* Trademark pending </div><div><img src="http://images.malware.biz/cutepuppy.jpg" /></div> "@ # Create a new transport rule for mails sent from inside the organization and out New-TransportRule -Name "LegalDisclaimer" -ApplyHtmlDisclaimerText $DisclaimerText -FromScope InOrganization -SentToScope NotInOrganization 

以上内容适用于从您的员工发送给外部收件人的所有电子邮件。

要仅在附件存在的情况下应用第二个免责声明,请testing附件大小是否超过0字节:

 # Another disclaimer, with HTML and fancy predicates: $AttachmentText = @" <div style="color: #FF0000; font-family: 'Comic-sans'"> We, here at %%Company%% still hate the environment, and want YOU to invest in even MORE additional storage! Please accept this huge attachment in our course of world domination. Thanks in Advance *Patent forms*, *legal threats*, *copyright voodo* Trademark pending </div><div><img src="http://images.malware.biz/cutepuppywithhat.jpg" /></div> "@ # Create a new transport rule with the same scopes, but for only emails with attachments New-TransportRule -Name "AttachmentDisclaimer" -AttachmentSizeOver 0 -ApplyHtmlDisclaimerText $AttachmentText -FromScope InOrganization -SentToScope NotInOrganization 

但是…不要使用它,免责声明是蹩脚的