分享
 
 
 

SpamAssassin 3.02 在windows下的安装。

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

SpamAssassin 在windows下的安装

SpamAssassin http://spamassassin.apache.org/ 是一个非常优秀的开源的反垃圾邮件过滤器。

支持很多邮件服务器。包括apache james,经过简单的配置,也可以使用SpamAssassin 来进行垃圾邮件过滤。

下面是在windows下安装SpamAssassin 的过程。

1.下载:

a.perl 5.8.6.811

http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.6.811-MSWin32-x86-122208.msi

b.SpamAssassin 3.0.2

http://apache.justdn.org/spamassassin/Mail-SpamAssassin-3.0.2.zip

c.nmake

http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe

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\MailpamAssassin\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\MailpamAssassin\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\MailpamAssassin\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\MailpamAssassin\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 >blibib\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了。

参考:

http://wiki.apache.org/spamassassin/SpamdOnWindows

http://wiki.apache.org/spamassassin/InstallingOnWindows

http://www.openhandhome.com/howtosa.html

http://www.openhandhome.com/howtosa300.html

http://www.5dmail.net/html/2004-8-9/200489142853.htm

http://search.cpan.org/src/FELICITY/Mail-SpamAssassin-3.0.2/spamc/README.win

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有