发新话题
打印

[求助] 不扫描RAR格式下的文档

不扫描RAR格式下的文档

系统:redhat7.3+MailScanner+spamassassin+clamav<br>
<br>
<br>不想让MailScanner扫描RAR格式下的文档,只要是RAR格式的文件,无论里面是什么都不要扫描,能发能收。<br>
<br>请教众多高手如何设置?

[[i] 本帖最后由 gdmzyzx 于 2006-7-17 16:56 编辑 [/i]]

TOP

重新定义一下mailscanner的规则就可以了
------------------------------------
开源邮件技术社区
linux,unix,Freebsd
Tmail技术支持社区
http://www.thismail.org/bbs
------------

TOP

谢谢
# 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中设置这个以后还是被拦截了。
请告之详细的设置方法。
谢谢

TOP

楼主看一下
filetype.rules.conf就知道了如何了
------------------------------------
开源邮件技术社区
linux,unix,Freebsd
Tmail技术支持社区
http://www.thismail.org/bbs
------------

TOP

在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$              -                      -
还是不行。
请版主告之详细的设置方法
谢谢!

TOP

引用:
原帖由 scyzxp 于 2006-6-12 22:46 发表
楼主看一下
filetype.rules.conf就知道了如何了
MailScanner过滤附件有两个文件:
  1.filename.rules.conf(allow/deny文件后缀)
    2.filetype.rules.conf(allow/deny文件类型)
就一切OK了!
------------------------------------
开源邮件技术社区
linux,unix,Freebsd
Tmail技术支持社区
http://www.thismail.org/bbs
------------

TOP

在filename.rules.conf中的设置:
# Deny filenames ending with CLSID's
deny    \{[a-hA-H0-9-]{25,}\}   Filename trying to hide its real type                           Files containing  CLSID'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   (\.[a-z0-9]{3})\1$              -       -

# Deny all other double file extensions. This catches any hidden filenames.
allow   \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$   Found possible filename hiding                          Attempt to hide real filename extension
请教一下这些是什么意思,如何设置?

TOP

只需在Mailscanner.conf 中,修改配置:
Maximum Archive Depth = 0
該設置設為“0”後,將不會對壓縮包中的文件進行filename.rules.conf和filetype.rules.conf規則的過濾。
如果也想允許加密的壓縮包也可以不作以上過濾,修改配置:
Allow Password-Protected Archives = yes
即可。

TOP

# virus checking, but it will affect all the other checks done on the contents

TOP

发新话题
  清除 Cookies - 联系我们 - 邮件技术资讯网 - Archiver - WAP - 繁體中文
当前时区 GMT+8, 现在时间是 2008-7-6 16:31

本论坛为非盈利中立机构,论坛所有言论纯属发表者个人意见,与《 邮件技术资讯网》论坛立场无关。内容所涉及的版权和法律相关事宜请参考各自所有者的条款。
如果认定侵犯了您的权利,请联系我们尽快处理。本论坛原创内容请联系本站后再行转载并务必保留我站信息。此声明修改不再另行通知,本论坛保留最终解释权。
*本论坛QQ群:1#群2233231(推荐) 2#群2598254(已满) 3#群15974064(推荐) 4#群14173252(推荐)*
Powered by Discuz! 6.0.0  © 2001-2007 Comsenz Inc.