[root@fedora ~]# yum -y install perl-suidperl ← Qmail-Scannerインストールに必要なperl-suidperlをインストール
[root@fedora ~]# useradd -M -d /tmp -s /sbin/nologin qscand ← qscandユーザ作成
[root@fedora ~]# wget http://jaist.dl.sourceforge.net/sourceforge/qmail-scanner/qmail-scanner-2.01.tgz ← Qmail-Scannerダウンロード
※最新版のURLはダウンロードページで確認すること
[root@fedora ~]# tar zxvf qmail-scanner-2.01.tgz ← Qmail-Scanner展開
[root@fedora ~]# cd qmail-scanner-2.01 ← Qmail-Scanner展開先ディレクトリへ移動
[root@fedora qmail-scanner-2.01]# ./configure --install --scanners clamdscan,verbose_spamassassin --notify none ← configure
Building Qmail-Scanner 2.01...
***** NOTE ******
Qmail-Scanner doesn't have language translations for ja_JP.UTF-8,
- so defaulting to english...
[Hit <RETURN> to continue] ← 空ENTER
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 ← y応答
/usr/bin/uudecode works as expected on system...
The following binaries and scanners were found on your system:
mimeunpacker=/usr/bin/reformime
uudecode=/usr/bin/uudecode
Content/Virus Scanners installed on your System
max-scan-size=100000000
clamdscan=/usr/bin/clamdscan (which means clamscan won't be used as clamdscan is better)
verbose_spamassassin=/usr/bin/spamc
Qmail-Scanner details.
log-details=syslog
log-crypto=0
fix-mime=2
ignore-eol-check=0
debug=1
notify=none
redundant-scanning=yes
virus-admin=System Anti-Virus Administrator
local-domains='fedora.fedorasrv.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="clamdscan","verbose_spamassassin"
If that looks correct, I will now generate qmail-scanner-queue.pl
for your system...
Continue? ([Y]/N)
y ← y応答
Testing suid nature of /usr/local/bin/perl...
Looks OK...
Hit RETURN to create initial directory structure under /var/spool/qscan,
and install qmail-scanner-queue.pl under /var/qmail/bin:
perlscanner: generate new DB file from /var/spool/qscan/quarantine-events.txt
perlscanner: total of 12 entries.
Finished installation of initial directory structure for Qmail-Scanner
under /var/spool/qscan and qmail-scanner-queue.pl under /var/qmail/bin. ← 空ENTER
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 "Permission 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.
[root@fedora qmail-scanner-2.01]# cd ← Qmail-Scanner展開先ディレクトリを抜ける
[root@fedora ~]# mv ./qmail-scanner-2.01/contrib/test_installation.sh /root ← Qmail-Scannerテストツールを退避(後で使用するため)
[root@fedora ~]# rm -rf qmail-scanner-2.01 ← Qmail-Scanner展開先ディレクトリ削除
[root@fedora ~]# rm -f qmail-scanner-2.01.tgz ← ダウンロードしたQmail-Scanner削除
|
|