如何讓mailscanner 不掃瞄壓縮檔?

今天在查詢mail-log時發現,副理寄出去的信中附件是壓縮檔時如zip檔
中有包含.exe(確定不是病毒)他還是會掃描有時會勿判所以信就無法寄出

 

若要修改不掃描壓縮檔請修改設定檔 /etc/MailScanner/MailScanner.conf
# The maximum depth to which zip archives will be unpacked, to allow for
# checking filenames and filetypes within zip archives.
#
# Note: This setting does *not* affect virus scanning in archives at all.
#
# To disable this feature set this to 0.
# A common useful setting is this option = 0, and Allow Password-Protected
# Archives = no. That block password-protected archives but does not do
# any filename/filetype checks on the files within the archive.
# This can also be the filename of a ruleset.
Maximum Archive Depth = 0 (將此設定改為0就可以)

修改後要重新啟動MailScanner 服務

PS:

有利用eicar 的測試病毒檔將他壓縮為zip後,還是可以掃到病毒的



本篇瀏覽人數: 517
本篇發表於 Linux其他問題。將永久鏈結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>