免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3041 | 回复: 2
打印 上一主题 下一主题

[Mail] 问题解决:求助:使用AMAVISD过滤附件文件类型 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-01 10:26 |只看该作者 |倒序浏览
想去掉邮件附件文件类型过滤,我用的是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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 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

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP