歡迎您光臨本站 註冊首頁

問題解決:求助:使用AMAVISD過濾附件文件類型

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

問題解決:求助:使用AMAVISD過濾附件文件類型

想去掉郵件附件文件類型過濾,我用的是AMAVISD來實現的,試過如下修改,不行!

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

vi /etc/amavisd.conf
...
# qr'\{{4,}(-{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: ,
zhanghuajun (unknown )

Return-Path: <zhang_huajun at abc.com>
Message-ID: <[email protected]>
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 編輯 ]
《解決方案》

問題解決:『

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
《解決方案》

原帖由 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

[火星人 ] 問題解決:求助:使用AMAVISD過濾附件文件類型已經有427次圍觀

http://coctec.com/docs/service/show-post-43613.html