免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: andywyz
打印 上一主题 下一主题

[Mail] 我的QMAIL服务怎么不能过滤病毒邮件了呀 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2004-07-15 08:08 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

[quote]原帖由 "gugong"]LibClamAV Error: cli_calloc(): Can't allocate memory (8 bytes).[/quote 发表:

哦,就这个错误,什么不能分配内存?这是clamav导致的还是qmail-scanner导致的呀!

论坛徽章:
0
22 [报告]
发表于 2004-07-15 12:17 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

把你安装 qmail-scanner 时的详细输出贴一下,如何 ?

论坛徽章:
0
23 [报告]
发表于 2004-07-15 14:30 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

已经发到你  lootan  AT  ehuilong.com  邮件了

论坛徽章:
0
24 [报告]
发表于 2004-07-15 15:09 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

安装 qmail-scanner 时的详细输出
我想看的是这个嘛。

还有你的机器配置,以及clamav 是怎样安装的

论坛徽章:
0
25 [报告]
发表于 2004-07-15 15:30 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

[root@surmail qmail-scanner-1.22]# ./configure --qmail-queue-binary /var/qmail/bin/qmail-queue --admin postmaster --domain sr.com --notify sender,admin --local-domains sur.com --lang en_GB --debug yes --unzip yes --scanners clamscan --install
Building Qmail-Scanner 1.22...


                ***** NOTE ******

Qmail-Scanner doesn't have language translations for zh_CN.GB18030,
- so defaulting to english...

[Hit <RETURN>; to continue]



This script will search your system for the virus scanners it knows
about, and will ensure that all external programs
qmail-scanner-queue.pl uses are explicitly pathed for performance
reasons.

Continue? ([Y]/N)
y

The following binaries and scanners were found on your system:

mimeunpacker=/usr/local/bin/reformime
unzip=/usr/bin/unzip

Content/Virus Scanners installed on your System

clamscan=/usr/local/bin/clamscan

Qmail-Scanner details.

log-details=0
fix-mime=2
ignore-eol-check=0
debug=1
notify=sender,admin
redundant-scanning=no
virus-admin=postmaster@sor.com
local-domains='sor.com'
silent-viruses='klez','bugbear','hybris','yaha','braid','nimda','tanatos','sobig','winevar','palyh','fizzer','gibe','cailont','lovelorn','swen','dumaru','sober','hawawi','holar-i','mimail','poffer','bagle','worm.galil','mydoom','worm.sco','tanx','novarg','\@mm'
scanners="clamscan_scanner"

If that looks correct, I will now generate qmail-scanner-queue.pl
for your system...
Continue? ([Y]/N)
y
Testing suid nature of /usr/bin/perl...
Looks OK...
Hit RETURN to create initial directory structure under /var/spool/qmailscan,
and install qmail-scanner-queue.pl under /var/qmail/bin:
perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 9 entries.

Finished installation of initial directory structure for Qmail-Scanner
under /var/spool/qmailscan and qmail-scanner-queue.pl under /var/qmail/bin.

Finished. Please read README(.html) and then go over the script
(/var/qmail/bin/qmail-scanner-queue.pl) to check paths/etc.

"/var/qmail/bin/qmail-scanner-queue.pl -r" should return some well-known virus
definitions to show that the internal perlscanner component is working.

That's it!



              ****** FINAL TEST ******

Please log into an unpriviledged account and run
/var/qmail/bin/qmail-scanner-queue.pl -g

If you see the error "Can't do setuid", or "ermission denied", then  
refer to the FAQ.

(e.g.  "setuidgid qmaild /var/qmail/bin/qmail-scanner-queue.pl -g"


That's it! To report success:

   % (echo 'First M. Last'; cat SYSDEF)|mail jhaar-s4vstats@crom.trimble.co.nz
Replace First M. Last with your name.
以上是安装QMAIL-SCAN的过程输出

grouadd clamav
useradd –g clamav –s /bin/false clamav
tar zxvf clamav-0.65.tar.gz
cd clamav-0.65
./configure
make check
make install
更新病毒库,freshclam
这是clamv的安装过程

论坛徽章:
0
26 [报告]
发表于 2004-07-15 16:37 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

Thu, 15 Jul 2004 16:03:09 CST:3350: run /usr/local/bin/clamscan -r -m --unzip --unrar --unzoo --lha --disable-summary --max-recursio
n=10 --max-space=100000  /var/spool/qmailscan/tmp/supormail.localdomain10898785864793350 2>;&1
Thu, 15 Jul 2004 16:03:09 CST:3350: --output of clamscan was:
LibClamAV Error: readdb(): Malformed pattern line 802 (file /var/spool/qmailscan/tmp/supormail.localdomain10898785864793350/clamav-b
e2b6e0ec041ca1d/viruses.db2).
LibClamAV Error: cli_calloc(): Can't allocate memory (8 bytes).
calloc_problem: Cannot allocate memory
ERROR: Database initialization error: Unable to allocate memory
--
真怪,上面说有错误,但我把/usr/local/bin/clamscan -r -m --unzip --unrar --unzoo --lha --disable-summary --max-recursio
n=10 --max-pace=100000 /var/spool/qmailscan/tmp/supormail.localdomain10898785864793350 2>;&1
这行拿出来单独运行就没问题,有病毒的还可以查到病毒呢!

论坛徽章:
0
27 [报告]
发表于 2004-07-15 17:06 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

  1. #        --unzip [yes|no]        Whether or not to forcibly unzip all zip files. Off
  2. #                                by default as most AV's do unzip'ping themselves.
复制代码



unzip 应为 no

你修改成这样,再安装 qmail-scanner,再看看 ?

论坛徽章:
0
28 [报告]
发表于 2004-07-16 17:36 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

我本地还是查不到病毒,不知道怎么回事,远程又可以。

论坛徽章:
0
29 [报告]
发表于 2004-07-16 17:42 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

哎。。。。绝望了    下星期再弄吧

论坛徽章:
0
30 [报告]
发表于 2004-07-16 19:46 |只看该作者

我的QMAIL服务怎么不能过滤病毒邮件了呀

[quote]原帖由 "znavy"]我本地还是查不到病毒,不知道怎么回事,远程又可以。[/quote 发表:



不懂你的话
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP