拒绝所有 Microsoft Office 附件

拒绝所有 Microsoft Office 附件

我已经受够了带有 Microsoft Office 附件的垃圾邮件。我关心的人中没有一个人向我发送 Microsoft Office 文档,因此我想拒绝(使用礼貌消息)所有带有 Microsoft Office 附件的电子邮件。

我尝试了这个:

  # Reject messages that have serious MIME errors.
  #
  deny
    message     = Serious MIME defect detected ($demime_reason)
    demime      = *
    condition   = ${if >{$demime_errorlevel}{2}{1}{0}}


  # Unpack MIME containers and reject file extensions used by worms.
  # This calls the demime condition again, but it will return cached results.
  # Note that the extension list may be incomplete.
  #
  deny
    message     = We do not accept ".$found_extension" attachments here.
    demime      = bat:btm:cmd:com:cpl:dll:exe:lnk:msi:pif:prf:reg:scr:vbs:url

我收到此错误:cannot test demime condition in RCPT ACL

答案1

添加以下作品:

 # Reject known virus spreading file extensions.
 # Accepting these is pretty much braindead.
 deny
   message = contains $found_extension file (blacklisted).
   demime  = doc:docx:xls:xlsx

来源

相关内容