I tried installing spamassassin in webmin as follows :
Step 1 : Webmin >> Others >> Perl Modules >> Install
This gave error to me . Several perl modules were missing. Then, I installed the perl modules that were given in error message as missing, as follows :
Step 2: perl -MCPAN -e shell
Give ‘no’ if you are prompted with any question. You should get the following prompt.
cpan>
Then, install the perl modules that are missing.
cpan>install HTML::Parser cpan>install DB_File cpan>install Net::DNS ..etc
If perl module installation has completed successfully you will get something like this :
/usr/bin/make install -- OK
After installing these modules you can either install spamassassin using perl module or using webmin.
Steps 3:
If perl module, give
cpan>Mail::SpamAssassin
For installing using webmin follow step1.
Step 4 :
Create .procmailrc file in the user’s home directory. There are lots of sample .procmailrc files.
Some of them.
1. http://www.math.uiuc.edu/~hildebr/computer/procmail.sample2 2. http://www.hccfl.edu/pollock/AUnix1/dot.procmailrc
Now, Spamassassin is ready to filter spams.
Test by sending spam and non spam mails to the domain. It should work fine.:)