不扫描RAR格式下的文档
系统:redhat7.3+MailScanner+spamassassin+clamav<br><br>
<br>不想让MailScanner扫描RAR格式下的文档,只要是RAR格式的文件,无论里面是什么都不要扫描,能发能收。<br>
<br>请教众多高手如何设置?
[ 本帖最后由 gdmzyzx 于 2006-7-17 16:56 编辑 ] 重新定义一下mailscanner的规则就可以了 谢谢
# Find zip archives by filename or by file contents?
# Finding them by content is a far more reliable way of finding them, but
# it does mean that you cannot tell your users to avoid zip file checking
# by renaming the file from ".zip" to "_zip" and tricks like that.
# Only set this to no (i.e. check by filename only) if you don't want to
# reliably check the contents of zip files. Note this does not affect
# virus checking, but it will affect all the other checks done on the contents
# of the zip file.
# This can also be the filename of a ruleset.
Find Archives By Content = no
我在MailScanner.conf中设置这个以后还是被拦截了。
请告之详细的设置方法。
谢谢 楼主看一下
filetype.rules.conf就知道了如何了 在filetype.rules.conf中
allow text - -
allow script - -
allow archive - -
allow postscript - -
allow zip - -
allow self-extract No self-extracting archives No self-extracting archives allowed
在filename.rules.conf中
allow /.rar$ - -
allow /.zip$ - -
还是不行。
请版主告之详细的设置方法
谢谢! 原帖由 scyzxp 于 2006-6-12 22:46 发表
楼主看一下
filetype.rules.conf就知道了如何了
MailScanner过滤附件有两个文件:
1.filename.rules.conf(allow/deny文件后缀)
2.filetype.rules.conf(allow/deny文件类型)
就一切OK了! 在filename.rules.conf中的设置:
# Deny filenames ending with CLSID's
deny \{{25,}\} Filename trying to hide its real type Files containingCLSID's are trying to hide their real type
# Deny filenames with lots of contiguous white space in them.
deny \s{10,} Filename contains lots of white space A long gap in a name is often used to hide part of it
# Allow repeated file extension, e.g. blah.zip.zip
allow (\.{3})\1$ - -
# Deny all other double file extensions. This catches any hidden filenames.
allow \.{2,3}\s*\.{3}$ Found possible filename hiding Attempt to hide real filename extension
请教一下这些是什么意思,如何设置? 只需在Mailscanner.conf 中,修改配置:
Maximum Archive Depth = 0
該設置設為“0”後,將不會對壓縮包中的文件進行filename.rules.conf和filetype.rules.conf規則的過濾。
如果也想允許加密的壓縮包也可以不作以上過濾,修改配置:
Allow Password-Protected Archives = yes
即可。 # virus checking, but it will affect all the other checks done on the contents
页:
[1]
