this is what I did with my Fedora Core 4 / Amavisd / Postfix / Spamassassin
--------start--------
1. upgrade the SpamAssassin to 3.1.4 or above (I used v3.1.6)
2. download the requirement
a. netpbm (yum install netpbm-progs)
b. ImageMagick (yum install ImageMagick)
c. libungif and libungif-progs (yum install libungif-progs)
d. perl Digest::MD5, String::Approxperl -MCPAN -e shell
install Digest::MD5
install String::Approx e. ExifTool (yum install perl-Image-ExifTool)
3. Follow this procedure on patching and installing libungif and gocr
(http://www200.pair.com/mecham/spam/image_spam.html)
a. libungifb. GOCR
Download, extract, patch, compile and install gocr:c. install FuzzyOcr*** We will use a new patch Robert LeBlanc created for this particular version of FuzzyOcr.*** Then place the files:cp FuzzyOcr.pm /etc/mail/spamassassin/
cp FuzzyOcr.cf /etc/mail/spamassassin/
cp FuzzyOcr.words.sample /etc/mail/spamassassin/FuzzyOcr.words d. edit FuzzyOcr.cf and TEST IT.. follow the procedure on the website
http://www200.pair.com/mecham/spam/image_spam.html
e. install Imageinfo plugins for false positive
** look for Plugin of Spamassassin ***edit v310.pre
*** and insert (at the bottom):loadplugin Mail::SpamAssassin: lugin::ImageInfo *** Edit imageinfo.cf and lower any scores that are 3.0 or more to half their value. This is to help prevent false positives:
vi imageinfo.cf
4. check spamassassin by "spamassassin --lint"
if no error.. restart your amavisd and mail server |