我的 spamcontrol 安装完成后,发现邮件不经过 clamv 和 spamassassin 的检查。
总结了以下,还是在安装之前没有好好看conf-spamcontrol 文件,吸取教训!
我的配置:
qmail1.03 + smtp auth + spamassassin + clamv + vpopmail ....
检查 spamassassin 运行情况
检查 spamassassin 测试情况
正常
测试 clamv
# clamscan -r -l scan.txt /home/kreny/public_html/source/download/qmail/anti-spam/clamav-0.70/test/
--------------------------------------
Scan started: Sat Jun 12 16:00:09 2004
test//test1: ClamAV-Test-Signature FOUND
test//test2.zip: ClamAV-Test-Signature FOUND
test//test3.rar: ClamAV-Test-Signature FOUND
test//test2.badext: ClamAV-Test-Signature FOUND
-- summary --
Known viruses: 21896
Scanned directories: 2
Scanned files: 8
Infected files: 4
Data scanned: 0.00 MB
I/O buffer size: 131072 bytes
Time: 0.554 sec (0 m 0 s)
正常
查看 qmail-queue-scanner.pl 的运行和配置
再次configure qmail-scanner的源代码得出 (请看 spamassassin 上的 qmail-scanner 配置)
**************************
Cannot find evidence of QMAILQUEUE patch in /var/qmail/bin/qmail-smtpd!
This package REQUIRES that Qmail patch in order to operate.
Please read the README.html file again and download and install the patch
before continuing...
**************************
然后查看 http://qmail.org/qmailqueue-patch 的 QMAILQUEUE patch 和 http://www.fehcom.de/qmail/spamcontrol.html 里面写的 12. Recommended patches 中的 Bruce Guenter's QUEUE_EXTRA patch ,发现在 conf-spamcontrol 文件里面的 queue_extra 没有打开,于是修改为 yes。
重新patch spamcontrol并编译。
再次运行 configure qmail-scanner得出:
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
clamdscan=/usr/local/bin/clamdscan (which means clamscan won't be used as clamdscan is better)
fast_spamassassin=/usr/bin/spamc
Qmail-Scanner details.
log-details=mailstats.csv
fix-mime=2
ignore-eol-check=0
debug=1
notify=psender,nmlvadm,recips
redundant-scanning=no
virus-admin=postmaster@mydomain.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_scanner“,”fast_spamassassin"
If that looks correct, I will now generate qmail-scanner-queue.pl
for your system...
Continue? ([Y]/N)
问题解决!