- 论坛徽章:
- 0
|
想去掉邮件附件文件类型过滤,我用的是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 编辑 ] |
|