Chinaunix

标题: 问题解决:求助:使用AMAVISD过滤附件文件类型 [打印本页]

作者: zhanghj_ok    时间: 2006-12-01 10:26
标题: 问题解决:求助:使用AMAVISD过滤附件文件类型
想去掉邮件附件文件类型过滤,我用的是AMAVISD来实现的,试过如下修改,不行!

我的系统:
centos4.3+postfix+amavisd+extmail+spam_locker

vi /etc/amavisd.conf
...
# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extensions - CLSID
#edit by zhang_huajun at 2006-12-01
# qr'^application/x-msdownload$'i,             # block these MIME types
# qr'^application/x-msdos-program$'i,
# qr'^application/hta$'i,
...

service amavisd restart
postfix reload

还是发不了带EXE的附件,试着发了一封,返回两封系统邮件:

一,

No viruses were found.

Banned name: multipart/mixed | application/x-msdownload,.exe,.exe-ms,putty.exe
Content type: Banned (7,0)
Internal reference code for the message is 28228-01/XMxJZP-yA4kv

According to a 'Received:' trace, the message originated at: [192.168.200.33],
zhanghuajun (unknown [192.168.200.33])

Return-Path: <zhang_huajun at abc.com>
Message-ID: <01cb01c714eb$c7a38140$21c8a8c0@abc.com>
X-Mailer: Microsoft Outlook Express 6.00.3790.0
Subject: test
The message has been quarantined as: banned-XMxJZP-yA4kv

The message WAS NOT relayed to:
<zhang_huajun at abc.com>:
  550 5.7.1 Rejected, id=28228-01 - BANNED: multipart/mixed | application/x-msdownload,.exe,.exe-ms,putty.exe

二,
BANNED CONTENTS ALERT

Our content checker found
  banned name: multipart/mixed |
    application/x-msdownload,.exe,.exe-ms,putty.exe

in email presumably from you <zhang_huajun at abc.com>
to the following recipient:
-> zhang_huajun at abc.com

大家看看,谢谢

[ 本帖最后由 zhanghj_ok 于 2006-12-1 11:52 编辑 ]
作者: zhanghj_ok    时间: 2006-12-01 11:44
问题解决:‘

vi /etc/amavisd.conf

...

#edit by zhang_huajun at 2006-12-01
[ qr'^\.(exe|dll|zip|rar|arc|arj|zoo)$'=> 0 ],  # 在这里加支持的文件类型,并去掉原来的#号allow any within such archives
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ],  # allow any within such archives


...

service amavisd restart
postfix reload
作者: abel    时间: 2006-12-01 12:11
原帖由 zhanghj_ok 于 2006-12-1 11:44 发表
问题解决:‘

vi /etc/amavisd.conf

...

#edit by zhang_huajun at 2006-12-01
[ qr'^\.(exe|dll|zip|rar|arc|arj|zoo)$'=> 0 ],  # 在这里加支持的文件类型,并去掉原来的#号allow any within suc ...

現在還有人在寄 exe ? 別人寄給你 exe 你要收嗎 ?
所以如果可以看能不能設自有自己人才可以 exe




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2