Java

本类阅读TOP10

·使用MyEclipse开发Struts框架的Hello World!(录像1)
·hibernate配置笔记
·AOP编程入门--Java篇
·linux下Tomcat 5.0.20 与 Apache 2 安装/集成/配置
·在win2003下整合了整合Tomcat5.5+ apache_2.0.53+ mod_jk_2.0.47.dll
·构建Linux下IDE环境--Eclipse篇
·Jsp 连接 mySQL、Oracle 数据库备忘(Windows平台)
·ASP、JSP、PHP 三种技术比较
·Tomcat5.5.9的安装配置
·AWT GUI 设计笔记(二)

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
SpamAssassin 3.02 在windows下的安装。

作者:未知 来源:月光软件站 加入时间:2005-5-13 月光软件站

 
 
SpamAssassin 在windows下的安装
 
SpamAssassin http://spamassassin.apache.org/ 是一个非常优秀的开源的反垃圾邮件过滤器。
支持很多邮件服务器。包括apache james,经过简单的配置,也可以使用SpamAssassin 来进行垃圾邮件过滤。
下面是在windows下安装SpamAssassin 的过程。
1.下载:
a.perl 5.8.6.811
 
b.SpamAssassin 3.0.2
 
c.nmake
 
 
2.安装,
a.先安装perl,运行按默认安装即可,我的安装在D:\Perl
b.运行Nmake15.exe,然后按提示在Nmake15.exe所在的目录下生成NMAKE.EXE和NMAKE.ERR,把这两个文件复制到D:\Perl\bin
c.在联网的状态下,进入到命令行,
运行。
 
c1.
D:\Perl\bin>ppm install DB_File
====================
Install 'DB_File' version 1.810 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\site\lib\auto\DB_File\DB_File.bs
Installing D:\Perl\site\lib\auto\DB_File\DB_File.dll
Installing D:\Perl\site\lib\auto\DB_File\DB_File.exp
Installing D:\Perl\site\lib\auto\DB_File\DB_File.lib
Installing D:\Perl\html\site\lib\DB_File.html
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing D:\Perl\site\lib\DB_File.pm
Installing D:\Perl\site\lib\auto\DB_File\autosplit.ix
Successfully installed DB_File version 1.810 in ActivePerl 5.8.6.811.
 
 
c2.
 

D:\Perl\bin>ppm install HTML-Parser
Note: Package 'HTML-Parser' is already installed.

 
c3.
 

D:\Perl\bin>ppm install Digest-SHA1
Note: Package 'Digest-SHA1' is already installed.

 
c4.
 
D:\Perl\bin>ppm install Time-HiRes
====================
Install 'Time-HiRes' version 1.49 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\site\lib\auto\Time\HiRes\HiRes.bs
Installing D:\Perl\site\lib\auto\Time\HiRes\HiRes.dll
Installing D:\Perl\site\lib\auto\Time\HiRes\HiRes.exp
Installing D:\Perl\site\lib\auto\Time\HiRes\HiRes.lib
Installing D:\Perl\html\site\lib\Time\HiRes.html
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing D:\Perl\site\lib\Time\HiRes.pm
Successfully installed Time-HiRes version 1.49 in ActivePerl 5.8.6.811.
 
c5.
 

D:\Perl\bin>ppm install IP-Country
====================
Install 'Geography-Countries' version 1.4 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\Geography\Countries.html
Installing D:\Perl\site\lib\Geography\Countries.pm
Successfully installed Geography-Countries version 1.4 in ActivePerl 5.8.6.811.
====================
Install 'IP-Country' version 2.18 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\IP\Authority.html
Installing D:\Perl\html\site\lib\IP\Country.html
Installing D:\Perl\html\site\lib\IP\Country\Fast.html
Installing D:\Perl\html\site\lib\IP\Country\MaxMind.html
Installing D:\Perl\html\site\lib\IP\Country\Medium.html
Installing D:\Perl\html\site\lib\IP\Country\Slow.html
Installing D:\Perl\html\bin\ip2cc.html
Installing D:\Perl\site\lib\IP\Authority.pm
Installing D:\Perl\site\lib\IP\Country.pm
Installing D:\Perl\site\lib\IP\Country\Fast.pm
Installing D:\Perl\site\lib\IP\Country\MaxMind.pm
Installing D:\Perl\site\lib\IP\Country\Medium.pm
Installing D:\Perl\site\lib\IP\Country\Slow.pm
Installing D:\Perl\site\lib\IP\Country\Fast\cc.gif
Installing D:\Perl\site\lib\IP\Country\Fast\ip.gif
Installing D:\Perl\site\lib\IP\Authority\auth.gif
Installing D:\Perl\site\lib\IP\Authority\ipauth.gif
Installing D:\Perl\bin\ip2cc
Installing D:\Perl\bin\ip2cc.bat
Successfully installed IP-Country version 2.18 in ActivePerl 5.8.6.811.
 
c6.
 

D:\Perl\bin>ppm install Mail-SPF-Query
====================
Install 'Net-DNS' version 0.48 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\Net\DNS.html
Installing D:\Perl\html\site\lib\Net\DNS\FAQ.html
Installing D:\Perl\html\site\lib\Net\DNS\Header.html
Installing D:\Perl\html\site\lib\Net\DNS\Nameserver.html
Installing D:\Perl\html\site\lib\Net\DNS\Packet.html
Installing D:\Perl\html\site\lib\Net\DNS\Question.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver.html
Installing D:\Perl\html\site\lib\Net\DNS\RR.html
Installing D:\Perl\html\site\lib\Net\DNS\Update.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\A.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\AAAA.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\AFSDB.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\CERT.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\CNAME.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\DNAME.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\EID.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\HINFO.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\ISDN.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\LOC.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\MB.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\MG.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\MINFO.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\MR.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\MX.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\NAPTR.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\NIMLOC.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\NS.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\NSAP.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\NULL.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\OPT.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\PTR.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\PX.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\RP.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\RT.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\SOA.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\SRV.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\SSHFP.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\TKEY.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\TSIG.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\TXT.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\Unknown.html
Installing D:\Perl\html\site\lib\Net\DNS\RR\X25.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver\Base.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver\Cygwin.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver\Recurse.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver\UNIX.html
Installing D:\Perl\html\site\lib\Net\DNS\Resolver\Win32.html
Installing D:\Perl\site\lib\Net\DNS.pm
Installing D:\Perl\site\lib\Net\DNS\FAQ.pod
Installing D:\Perl\site\lib\Net\DNS\Header.pm
Installing D:\Perl\site\lib\Net\DNS\Nameserver.pm
Installing D:\Perl\site\lib\Net\DNS\Packet.pm
Installing D:\Perl\site\lib\Net\DNS\Question.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver.pm
Installing D:\Perl\site\lib\Net\DNS\RR.pm
Installing D:\Perl\site\lib\Net\DNS\Update.pm
Installing D:\Perl\site\lib\Net\DNS\RR\A.pm
Installing D:\Perl\site\lib\Net\DNS\RR\AAAA.pm
Installing D:\Perl\site\lib\Net\DNS\RR\AFSDB.pm
Installing D:\Perl\site\lib\Net\DNS\RR\CERT.pm
Installing D:\Perl\site\lib\Net\DNS\RR\CNAME.pm
Installing D:\Perl\site\lib\Net\DNS\RR\DNAME.pm
Installing D:\Perl\site\lib\Net\DNS\RR\EID.pm
Installing D:\Perl\site\lib\Net\DNS\RR\HINFO.pm
Installing D:\Perl\site\lib\Net\DNS\RR\ISDN.pm
Installing D:\Perl\site\lib\Net\DNS\RR\LOC.pm
Installing D:\Perl\site\lib\Net\DNS\RR\MB.pm
Installing D:\Perl\site\lib\Net\DNS\RR\MG.pm
Installing D:\Perl\site\lib\Net\DNS\RR\MINFO.pm
Installing D:\Perl\site\lib\Net\DNS\RR\MR.pm
Installing D:\Perl\site\lib\Net\DNS\RR\MX.pm
Installing D:\Perl\site\lib\Net\DNS\RR\NAPTR.pm
Installing D:\Perl\site\lib\Net\DNS\RR\NIMLOC.pm
Installing D:\Perl\site\lib\Net\DNS\RR\NS.pm
Installing D:\Perl\site\lib\Net\DNS\RR\NSAP.pm
Installing D:\Perl\site\lib\Net\DNS\RR\NULL.pm
Installing D:\Perl\site\lib\Net\DNS\RR\OPT.pm
Installing D:\Perl\site\lib\Net\DNS\RR\PTR.pm
Installing D:\Perl\site\lib\Net\DNS\RR\PX.pm
Installing D:\Perl\site\lib\Net\DNS\RR\RP.pm
Installing D:\Perl\site\lib\Net\DNS\RR\RT.pm
Installing D:\Perl\site\lib\Net\DNS\RR\SOA.pm
Installing D:\Perl\site\lib\Net\DNS\RR\SRV.pm
Installing D:\Perl\site\lib\Net\DNS\RR\SSHFP.pm
Installing D:\Perl\site\lib\Net\DNS\RR\TKEY.pm
Installing D:\Perl\site\lib\Net\DNS\RR\TSIG.pm
Installing D:\Perl\site\lib\Net\DNS\RR\TXT.pm
Installing D:\Perl\site\lib\Net\DNS\RR\Unknown.pm
Installing D:\Perl\site\lib\Net\DNS\RR\X25.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver\Base.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver\Cygwin.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver\Recurse.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver\UNIX.pm
Installing D:\Perl\site\lib\Net\DNS\Resolver\Win32.pm
Successfully installed Net-DNS version 0.48 in ActivePerl 5.8.6.811.
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib/html/site/lib/Net/
DNS: Directory not empty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib/html/site/lib/Net:
 Directory not empty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib/html/site/lib: Dir
ectory not empty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib/html/site: Directo
ry not empty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib/html: Directory no
t empty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328/blib: Directory not emp
ty at D:/Perl/site/lib/PPM/Repository.pm line 247
Can't remove directory C:\TEMP/Net-DNS-0-2784-1110293328: Directory not empty at
 D:/Perl/site/lib/PPM/Repository.pm line 247
====================
Install 'Net-CIDR-Lite' version 0.15 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\Net\CIDR\Lite.html
Installing D:\Perl\site\lib\Net\CIDR\Lite.pm
Successfully installed Net-CIDR-Lite version 0.15 in ActivePerl 5.8.6.811.
====================
Install 'Sys-Hostname-Long' version 1.2 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\Sys\Hostname\Long.html
Installing D:\Perl\site\lib\Sys\Hostname\Long.pm
Installing D:\Perl\site\lib\Sys\Hostname\testall.pl
Successfully installed Sys-Hostname-Long version 1.2 in ActivePerl 5.8.6.811.
====================
Install 'Mail-SPF-Query' version 1.997 in ActivePerl 5.8.6.811.
====================
Installing D:\Perl\html\site\lib\Mail\SPF\Query.html
Installing D:\Perl\site\lib\Mail\SPF\Query.pm
Installing D:\Perl\bin\spfd
Installing D:\Perl\bin\spfd.bat
Installing D:\Perl\bin\spfquery
Installing D:\Perl\bin\spfquery.bat
Successfully installed Mail-SPF-Query version 1.997 in ActivePerl 5.8.6.811.
 
 
c7.
 

D:\Perl\bin>ppm install Net-DNS
Note: Package 'Net-DNS' is already installed.
 
(在安装Mail-SPF-Query时被自动安装好了。)
 
 
 
d.解压Mail-SpamAssassin-3.0.2.zip,到D:\Mail-SpamAssassin-3.0.2
 
e.编译
 

D:\Perl\bin>cd D:\Mail-SpamAssassin-3.0.2
 
D:\Mail-SpamAssassin-3.0.2>PERL makefile.pl
Build spamc.exe (environment must be set up for C compiler)? (y/n) [y] n
What email address or URL should be used in the suspected-spam report
text for users who want more information on your filter installation?
(In particular, ISPs should change this to a local Postmaster contact)
default text: [the administrator of that system] lizongbo@gmail.com
 
Check network rules during 'make test' (test scripts may fail due to
network problems)? (y/n) [n] y
 
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::SpamAssassin
Makefile written by ExtUtils::MakeMaker 6.17
 
 
 
f.nmake
 

D:\Mail-SpamAssassin-3.0.2>nmake
 
Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
 
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/AutoWhitelist.pm >blib\lib\Mail\Sp
mAssassin\AutoWhitelist.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Dns.pm >blib\lib\Mail\SpamAssassin
Dns.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Message/Metadata/Received.pm >blib
lib\Mail\SpamAssassin\Message\Metadata\Received.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Message/Metadata.pm >blib\lib\Mail
SpamAssassin\Message\Metadata.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/BayesStore.pm >blib\lib\Mail\SpamA
sassin\BayesStore.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Message/Node.pm >blib\lib\Mail\Spa
Assassin\Message\Node.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Locker.pm >blib\lib\Mail\SpamAssas
in\Locker.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/PluginHandler.pm >blib\lib\Mail\Sp
mAssassin\PluginHandler.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Conf.pm >blib\lib\Mail\SpamAssassi
\Conf.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Util.pm >blib\lib\Mail\SpamAssassi
\Util.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Message.pm >blib\lib\Mail\SpamAssa
sin\Message.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/ArchiveIterator.pm >blib\lib\Mail\
pamAssassin\ArchiveIterator.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/MailingList.pm >blib\lib\Mail\Spam
ssassin\MailingList.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Conf/Parser.pm >blib\lib\Mail\Spam
ssassin\Conf\Parser.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Reporter.pm >blib\lib\Mail\SpamAss
ssin\Reporter.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Locales.pm >blib\lib\Mail\SpamAssa
sin\Locales.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Conf/LDAP.pm >blib\lib\Mail\SpamAs
assin\Conf\LDAP.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/HTML.pm >blib\lib\Mail\SpamAssassi
\HTML.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/DBBasedAddrList.pm >blib\lib\Mail\
pamAssassin\DBBasedAddrList.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/SQLBasedAddrList.pm >blib\lib\Mail
SpamAssassin\SQLBasedAddrList.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin/Hashcash.pm >blib\lib\Mail\
pamAssassin\Plugin\Hashcash.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin.pm >blib\lib\Mail\SpamAssas
in\Plugin.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm >blib\lib\Mail\
pamAssassin\Plugin\URIDNSBL.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/PersistentAddrList.pm >blib\lib\Ma
l\SpamAssassin\PersistentAddrList.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin.pm >blib\lib\Mail\SpamAssassin.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Locker/Flock.pm >blib\lib\Mail\Spa
Assassin\Locker\Flock.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/BayesStore/SQL.pm >blib\lib\Mail\S
amAssassin\BayesStore\SQL.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin/SPF.pm >blib\lib\Mail\SpamA
sassin\Plugin\SPF.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Bayes.pm >blib\lib\Mail\SpamAssass
n\Bayes.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Conf/SQL.pm >blib\lib\Mail\SpamAss
ssin\Conf\SQL.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/TextCat.pm >blib\lib\Mail\SpamAssa
sin\TextCat.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/NetSet.pm >blib\lib\Mail\SpamAssas
in\NetSet.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/PerMsgStatus.pm >blib\lib\Mail\Spa
Assassin\PerMsgStatus.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/BayesStore/DBM.pm >blib\lib\Mail\S
amAssassin\BayesStore\DBM.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Constants.pm >blib\lib\Mail\SpamAs
assin\Constants.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/PerMsgLearner.pm >blib\lib\Mail\Sp
mAssassin\PerMsgLearner.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/EvalTests.pm >blib\lib\Mail\SpamAs
assin\EvalTests.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Locker/Win32.pm >blib\lib\Mail\Spa
Assassin\Locker\Win32.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin/RelayCountry.pm >blib\lib\M
il\SpamAssassin\Plugin\RelayCountry.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Locker/UnixNFSSafe.pm >blib\lib\Ma
l\SpamAssassin\Locker\UnixNFSSafe.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Plugin/Test.pm >blib\lib\Mail\Spam
ssassin\Plugin\Test.pm
D:\Perl\bin\perl.exe build/preprocessor -Mconditional -Mvars -DVERSION=3.000002
-DPREFIX=D:\Perl\site <lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm >blib\
ib\Mail\SpamAssassin\Util\RegistrarBoundaries.pm
        D:\Perl\bin\perl.exe build/preprocessor  -Mvars  -DVERSION="3.000002"
DPREFIX="D:\Perl\site"  -DDEF_RULES_DIR="D:\Perl\site/share/spamassassin"  -DLO
AL_RULES_DIR="D:\Perl\site/etc/mail/spamassassin"  -DINSTALLSITELIB="D:\Perl\si
e\lib"  -DCONTACT_ADDRESS="lizongbo@gmail.com" -Msharpbang  -DPERL_BIN="D:\Perl
bin\perl.exe"  -DPERL_WARN=""  -DPERL_TAINT="" -m755 -isa-learn.raw -osa-learn
        D:\Perl\bin\perl.exe -MExtUtils::Command -e cp sa-learn blib\script\sa-
earn
        pl2bat.bat blib\script\sa-learn
        D:\Perl\bin\perl.exe build/preprocessor  -Mvars  -DVERSION="3.000002"
DPREFIX="D:\Perl\site"  -DDEF_RULES_DIR="D:\Perl\site/share/spamassassin"  -DLO
AL_RULES_DIR="D:\Perl\site/etc/mail/spamassassin"  -DINSTALLSITELIB="D:\Perl\si
e\lib"  -DCONTACT_ADDRESS="lizongbo@gmail.com" -Msharpbang  -DPERL_BIN="D:\Perl
bin\perl.exe"  -DPERL_WARN=""  -DPERL_TAINT="" -m755 -ispamassassin.raw -ospama
sassin
        D:\Perl\bin\perl.exe -MExtUtils::Command -e cp spamassassin blib\script
spamassassin
        pl2bat.bat blib\script\spamassassin
 
D:\Mail-SpamAssassin-3.0.2>
 
g.安装
 

D:\Mail-SpamAssassin-3.0.2>nmake INSTALL
 
Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
 
Installing D:\Perl\site\lib\Mail\SpamAssassin.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\AutoWhitelist.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Dns.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\BayesStore.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Locker.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\PluginHandler.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Conf.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Util.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Message.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\ArchiveIterator.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\MailingList.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Reporter.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Locales.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\HTML.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\DBBasedAddrList.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\SQLBasedAddrList.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\PersistentAddrList.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Bayes.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\TextCat.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\NetSet.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\PerMsgStatus.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Constants.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\PerMsgLearner.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\EvalTests.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Message\Metadata.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Message\Node.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Message\Metadata\Received.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Conf\Parser.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Conf\LDAP.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Conf\SQL.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin\Hashcash.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin\URIDNSBL.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin\SPF.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin\RelayCountry.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Plugin\Test.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Locker\Flock.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Locker\Win32.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Locker\UnixNFSSafe.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\BayesStore\SQL.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\BayesStore\DBM.pm
Installing D:\Perl\site\lib\Mail\SpamAssassin\Util\RegistrarBoundaries.pm
Installing D:\Perl\bin\sa-learn
Installing D:\Perl\bin\sa-learn.bat
Installing D:\Perl\bin\spamassassin
Installing D:\Perl\bin\spamassassin.bat
Appending installation info to D:\Perl\lib/perllocal.pod
        D:\Perl\bin\perl.exe "-MExtUtils::Command" -e mkpath D:\Perl\site/etc/ma
il/spamassassin
        D:\Perl\bin\perl.exe -MFile::Spec -MFile::Copy  -e "copy(q{rules/local.c
f}, q{D:\Perl\site/etc/mail/spamassassin/local.cf}) unless -f q{D:\Perl\site/etc
/mail/spamassassin/local.cf};"
        D:\Perl\bin\perl.exe -MFile::Spec -MFile::Copy  -e "copy(q{rules/init.pr
e}, q{D:\Perl\site/etc/mail/spamassassin/init.pre}) unless -f q{D:\Perl\site/etc
/mail/spamassassin/init.pre};"
        D:\Perl\bin\perl.exe "-MExtUtils::Command" -e mkpath D:\Perl\site/share/
spamassassin
        D:\Perl\bin\perl.exe -e "map unlink, <D:\Perl\site/share/spamassassin/*>
"
        D:\Perl\bin\perl.exe build/preprocessor -Mvars  -DVERSION="3.000002"  -D
PREFIX="D:\Perl\site"  -DDEF_RULES_DIR="D:\Perl\site/share/spamassassin"  -DLOCA
L_RULES_DIR="D:\Perl\site/etc/mail/spamassassin"  -DINSTALLSITELIB="D:\Perl\site
\lib"  -DCONTACT_ADDRESS="lizongbo@gmail.com" -m644 -Irules -OD:\Perl\site/share
/spamassassin 10_misc.cf 20_anti_ratware.cf 20_body_tests.cf 20_compensate.cf 20
_dnsbl_tests.cf 20_drugs.cf 20_fake_helo_tests.cf 20_head_tests.cf 20_html_tests
.cf 20_meta_tests.cf 20_phrases.cf 20_porn.cf 20_ratware.cf 20_uri_tests.cf 23_b
ayes.cf 25_body_tests_es.cf 25_hashcash.cf 25_spf.cf 25_uribl.cf 30_text_de.cf 3
0_text_fr.cf 30_text_nl.cf 30_text_pl.cf 50_scores.cf 60_whitelist.cf user_prefs
.template triplets.txt languages
        D:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 D:\Perl\site/share
/spamassassin
 
h.设置
记事本打开d:\perl\bin\spamasasssin.bat
在第二行(@echo off)后面加上下面两行:
SET RES_NAMESERVERS=192.168.9.1
SET LANG=zh_CN
 
 
 
 
 
 
下载垃圾邮件过滤规则文件:http://www.ccert.edu.cn/spam/sa/Chinese_rules.cf
然后覆盖:D:\Perl\site\etc\mail\spamassassin\local.cf
 
 
打开local.cf,在最后加上
 
use_razor2 0
use_dcc 0
use_pyzor 0
 
 
D:\Perl\site\etc\mail\spamassassin
新建pod.bat。
内容如下:
 
REM Run from the top of the SpamAssassin install directory
mkdir \spamdocs
mkdir \spamdocs\geek
mkdir \spamdocs\plugins
del \spamdocs\*.* 
del \spamdocs\geek\*.*
del \spamdocs\plugins\*.*
call pod2html spamassassin.raw --outfile \spamdocs\spamassassin.html 
call pod2html sa-learn. --outfile \spamdocs\sa-learn.html
call pod2html lib\mail\spamassassin\AutoWhiteList.pm --outfile \spamdocs\geek\AutoWhiteList.html 
call pod2html lib\mail\spamassassin\Bayes.pm --outfile \spamdocs\Bayes.html 
call pod2html lib\mail\spamassassin\Message\Metadata.pm --outfile \spamdocs\geek\MessageMetaData.html 
call pod2html lib\mail\spamassassin\Message\Node.pm --outfile \spamdocs\geek\MessageNode.html 
call pod2html lib\mail\spamassassin\BayesStore\SQL.pm --outfile \spamdocs\geek\BayesStoreSQL.html 
call pod2html lib\mail\spamassassin\BayesStore.pm --outfile \spamdocs\geek\BayesStore.html 
call pod2html lib\mail\spamassassin\conf.pm --outfile \spamdocs\conf.html 
call pod2html lib\mail\spamassassin\Conf\SQL.pm --outfile \spamdocs\geek\confSQL.html 
call pod2html lib\mail\spamassassin\Conf\LDAP.pm --outfile \spamdocs\geek\confLDAP.html 
call pod2html lib\mail\spamassassin\Conf\Parser.pm --outfile \spamdocs\geek\confParser.html 
call pod2html lib\mail\spamassassin\permsgstatus.pm --outfile \spamdocs\geek\permsgstatus.html
call pod2html lib\mail\spamassassin\message.pm --outfile \spamdocs\geek\message.html --quiet
call pod2html lib\mail\spamassassin\permsglearner.pm --outfile \spamdocs\geek\permsglearner.html
call pod2html lib\mail\spamassassin\plugin.pm --outfile \spamdocs\geek\PluginsArchitecture.html
call pod2html lib\mail\spamassassin\persistentaddrlist.pm --outfile \spamdocs\geek\Persistentaddrlist.html 
call pod2html lib\mail\spamassassin\SQLBasedAddrList.pm --outfile \spamdocs\geek\SQLBasedAddrList.html 
call pod2html lib\mail\spamassassin.pm --outfile \spamdocs\geek\spamassassinclass.html 
cd lib\mail\spamassassin\plugin
for %%f in (*.*) do call pod2html %%f --outfile \spamdocs\plugins\%%f.html --quiet
cd ..\..\..\..
 
 测试:
 

D:\MAIL-S~1.2>spamassassin -D < sample-spam.txt
复制 D:\Mail-SpamAssassin-3.0.2\spamd\spamd.raw到D:\Perl\bin
 
参考 http://wiki.apache.org/spamassassin/SpamdOnWindows 制作SpamD.bat
运行SpamD.bat就可以启动spamassassin了。
 
 
 
参考:
 
 



相关文章

相关软件