Spam inside images
Randal, Phil
prandal at herefordshire.gov.uk
Wed Nov 22 14:17:33 GMT 2006
FuzzyOcr 3.4.2 is the way to go.
It's under active development, is well supported, and has a growing
community of users.
Cheers,
Phil
--
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf
> Of Gerhard Mourani
> Sent: 22 November 2006 14:08
> To: MailScanner discussion
> Subject: Re: Spam inside images
>
> Hello list,
>
> 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,
> preferable, etc?
>
> Gerhard,
>
> > 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.
> >>
> >> Gerhard,
> >>
> >>
> > 1. cd to /etc/mail/spamassassin
> > 2. download the patch file from:
> > http://antispam.imp.ch/patches/patch-ocrtext
> > 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'.
> > 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.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
More information about the MailScanner
mailing list