- 论坛徽章:
- 0
|
我的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的安装过程 |
|