Spam Detection Using SpamAssassin with PYTHEAS MailGate
Use this method if you have a problem (or do not want) to use the
PerlSaRepo on http://www.pytheas.com/Pmg/PerlSaRepo.
Installing the Necessary Perl Modules
Perl uses modules to extend the language's capabilities. Many of them are included
with the core distribution, but many others are available. SpamAssassin
requires several modules which are not in the core distribution of ActivePerl.
Install the DB_File, IP-Country, Mail-SPF-Query and Win32-Registry-File modules
- Open a command line window.
- Type:
PPM-Shell
note 1: PPM connects to the repository via TCP Port 80 so you should be connected
to the Internet and keep this port open.
note 2: if PPM finds several repositories from where a module can be
installed, it will show a list of these instead of installing the requested
module. In this case, type INSTALL n to install the module from
repository number n.
- At the PPM> prompt, type:
repo list
If you already have the tcool and trouchelle58 repositories in the list,
skip the two repo add steps.
- At the PPM> prompt, type:
install PPM-Repositories
Then: repo suggest
Then: repo add tcool
Expected response:
Downloading ActiveState Package Repository packlist...not modified
Downloading tcool packlist...done
Updating tcool database...done
Repo n added.
- At the PPM> prompt, type:
repo add trouchelle58
- At the PPM> prompt, type:
repo list
Please note the numbers for the ActiveState, tcool and trouchelle repositories.
In the following repository commands, we assume that these have the numbers 1 resp. 2 resp. 3.
- At the PPM> prompt, type:
repo off 3
We disable the trouchelle repository.
-
At the PPM> prompt, type:
install DB_File
Expected response:
Downloading DB_File-1.816
(...)
Updating files in site area...done
8 files installed
- Still at the PPM> prompt, type:
install IP-Country
Expected response:
Downloading IP-Country-2.27
(...)
Updating files in site area...done
21 files installed
- At the PPM> prompt, type:
repo off 1
We disable the ActiveState repository.
- At the PPM> prompt, type:
install Net-DNS
Expected response:
Downloading Net-DNS-0.61
Downloading Net-IP-1.25
(...)
Updating files in site area...done
109 files installed
- At the PPM> prompt, type:
repo on 1
We enable the ActiveState repository.
- Still at the PPM> prompt, type:
install Mail-SPF
Expected response:
Downloading Mail-SPF-2.00...done
(...)
Updating files in site area...done
66 files installed
- At the PPM> prompt, type:
repo on 3
We enable the trouchelle repository again.
-
Still at the PPM> prompt, type:
install Win32-Registry-File
Expected response:
Downloading Win32-Registry-File-1.10
Downloading Tie-IxHash-1.21
(...)
Updating files in site area...done
5 files installed
-
Still at the PPM> prompt, type:
install NetAddr-IP
Expected response:
Downloading NetAddr-IP-4.026...done
(...)
Updating files in site area...done
63 files installed
- Type:
quit
|