如何讓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後,還是可以掃到病毒的



本篇瀏覽人數: 1595
分類: Linux其他問題。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *