Spam inside images
gmourani at privalodc.com
Wed Nov 22 14:07:57 GMT 2006
Thanks for your nice and quick replies, this help me a lot. Erik van der
Leun recommended to go with the ocrtext patch approch (see further down in
this message) where Randal Phil talk about implementing FuzzyOcr to do it.
I would like to know what's the difference between both technic and
according to users experiences with them, which one is recommended,
> Gerhard Mourani wrote:
>> Hello list,
>> I would like to know if someone know how to make MailScanner scan inside
>> images for spam. I receive lot of this kind of new spam now. There are
>> inside the image and cannot be detected by spamassasin which check for
>> texts only.
> 1. cd to /etc/mail/spamassassin
> 2. download the patch file from:
> 3. type 'patch < patch-ocrtext'
> This will create two files in your current directory called
> ocrtext.cf and ocrtext.pm
> 4. Edit v310.pre and add the following lines:
> # OCR - performs Optical Character Recognition on spam images
> loadplugin ocrtext /etc/mail/spamassassin/ocrtext.pm
> loadplugin Mail::SpamAssassin::Timeout
> 5. Edit the ocrtext.cr file and change the following settings:
> ## This points to your gocr binary not just the path. Try 'which
> gocr_path /usr/local/bin/gocr
> ## This is JUST the path to your pnm binarys ( i.e. pngtopnm, giftopnm,
> jpegtopnm )
> pnmtools_path /usr/bin
> 6. Run spamassassin -D --lint and check for errors.
> If all went well restart spamassassin or force it to reread it's config
> however you would on your system.
> Then try typing something like 'tail -f /var/log/mail.log | grep
> SPAMPIC_ALPHA', on a high volume server you should see some rules
> matching after a few minutes. If so then you are OCR'ing the images!
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner