在 Exchange Server,可以在边缘传输服务器上使用附件筛选功能来控制用户在电子邮件中是否可以收到附件。
需要注意:该功能仅在"边缘传输"服务器上可用,在“邮件服务器”上不可用。
可以使用下列类型的附件筛选功能来控制通过边缘传输服务器传入或传出的附件:
指定要筛选的确切文件名或文件扩展名。 例如,BadFileName.exe 或 *.exe。
指定要筛选的 MIME 内容类型值。 MIME 内容类型值指示附件是什么:例如,JPEG 图像、可执行文件或 Microsoft Excel 文件。 内容类型表示为 <类型>/ <子类型>。 例如,JPEG 图像文件表示为 image/jpeg。
如果你要查看附件筛选功能可以检测哪些文件扩展名和内容类型的完整列表,可以在"边缘传输"服务器上的 Exchange 命令行管理程序中运行以下命令:
Get-AttachmentFilterEntry | Format-Table -Auto Type,Name
定义好筛选文件类型后,可以配置要对包含这些附件类型的邮件采取的操作。具体有如下三个选项:
消息被阻止。 发件人收到一份未送达报告(也称为 NDR、发送状态通知、DSN 或退回邮件),该报告表明邮件因包含不可接受的附件而导致未送达。
可以在 NDR 中自定义该文本。 默认文本为: Message rejected due to unacceptable attachments。
从邮件中删除附件。 但是,允许通过邮件本身以及与筛选器不匹配的其他任何附件。
如果附件被剥离,则会将其替换为文本文件,解释删除该附件的原因。 这个是默认配置。
删除邮件。 发件人和收件人都不会收到通知。为了安全,缺少点人性化。
注意:
下表中介绍的是附件筛选中规定的默认附件。
| 类型 | 名称 |
|---|---|
| ContentType | application/hta |
| ContentType | application/javascript |
| ContentType | application/msaccess |
| ContentType | application/prg |
| ContentType | application/x-javascript |
| ContentType | application/x-msdownload |
| ContentType | message/partial |
| ContentType | text/javascript |
| ContentType | text/scriptlet |
| ContentType | x-internet-signup |
| FileName | *.ade |
| FileName | *.adp |
| FileName | *.app |
| FileName | *.asx |
| FileName | *.bas |
| FileName | *.bat |
| FileName | *.chm |
| FileName | *.cmd |
| FileName | *.com |
| FileName | *.cpl |
| FileName | *.crt |
| FileName | *.csh |
| FileName | *.exe |
| FileName | *.fxp |
| FileName | *.hlp |
| FileName | *.hta |
| FileName | *.inf |
| FileName | *.ins |
| FileName | *.isp |
| FileName | *.js |
| FileName | *.jse |
| FileName | *.ksh |
| FileName | *.lnk |
| FileName | *.mda |
| FileName | *.mdb |
| FileName | *.mde |
| FileName | *.mdt |
| FileName | *.mdw |
| FileName | *.mdz |
| FileName | *.msc |
| FileName | *.msi |
| FileName | *.msp |
| FileName | *.mst |
| FileName | *.ops |
| FileName | *.pcd |
| FileName | *.pif |
| FileName | *.prf |
| FileName | *.prg |
| FileName | *.ps1 |
| FileName | *.ps1xml |
| FileName | *.ps11 |
| FileName | *.ps11xml |
| FileName | *.ps2 |
| FileName | *.ps2xml |
| FileName | *.psc1 |
| FileName | *.psc2 |
| FileName | *.reg |
| FileName | *.scf |
| FileName | *.scr |
| FileName | *.sct |
| FileName | *.shb |
| FileName | *.shs |
| FileName | *.url |
| FileName | *.vb |
| FileName | *.vbe |
| FileName | *.vbs |
| FileName | *.wsc |
| FileName | *.wsf |
| FileName | *.wsh |
| FileName | *.xnk |

