HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Anyone figured out to integrate FuzzyOCR into ISPConfig on Ubuntu? (http://www.howtoforge.com/forums/showthread.php?t=9265)

friday 21st December 2006 19:20

Anyone figured out to integrate FuzzyOCR into ISPConfig on Ubuntu?
 
With image only spam on the rise, I went looking for a way to block this with the default postfix configs. But, I don't think postfix has become that advanced, yet....

But, after a few searches on google, I stumbled upon fuzzyocr, and it seems to have success with those who know how to install it with their spamassassin boxes. Unfortunately, I'm not as proficient with linux as these above people are, and rely heavily on falko's guides for much of my server's tasks.

I found this little howto:
http://www200.pair.com/mecham/spam/image_spam.html
but, his configurations are quite different than those of the default ISPconfig install on an Ubuntu box. I'll try to set up my own test box, but I don't think I'll get it right on the first, heck, second try. But, if anyone has any success installing fuzzyocr on a box similar to mine, please post your steps.

Thanks in advance.

martinfst 21st December 2006 21:40

I'm going to do this, but not this year. I just completed the basic install of a Ubuntu 6.10 and ISPConfig and I'm now completing the configuration. I'll also be adding Shorewall / Snort to this setup, so lot's of work in the pipeline. First priority: holidays.

I'll be documenting my steps .......

till 22nd December 2006 12:29

This software looks very interesting, I will have a look at it and how to integrate it in ISPConfig.

bschultz 26th March 2007 02:18

Has anyone gotten this to work? I tried following the howto linked above and it says that gifcicle is not available. If I Google gifcicle, I come across a image creation program. Is it the same?

falko 26th March 2007 17:22

Did you take a look at this tutorial? http://www.howtoforge.com/fight_imag...r_spamassassin

bschultz 26th March 2007 17:50

Thanks, Falko. Missed that one.

Brian

EDIT... I still can't apt-get gifcicle. Here's the error:

Quote:

debian:~# apt-get install netpbm gifsicle libungif-bin gocr ocrad libstring-approx-perl libmldbm-sync-perl imagemagick tesseract-ocr

Reading Package Lists... Done
Building Dependency Tree... Done

netpbm is already the newest version.

Package gifsicle is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package gifsicle has no installation candidate

Hans 26th March 2007 19:41

I had the same message "Package gifsicle is not available" on my Debian Sarge system. I think it is only available for Ubuntu 6.10 and Debian Etch.

falko 27th March 2007 16:31

It's available for Debian Sarge from backports.org: http://backports.org/debian/pool/main/g/gifsicle/ :)

Hans 27th March 2007 20:42

That's good to know! :)

bschultz 28th March 2007 02:35

Falko,

Thanks for your help on this. I appreciate it.

I added the backports into my /etc/apt/sources list and everything went well with the how-to until I ran the test at the end. Here's the result:

Quote:

Subroutine FuzzyOcr::O_CREAT redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
Subroutine FuzzyOcr::O_EXCL redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
Subroutine FuzzyOcr::O_RDWR redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
[10777] warn: plugin: failed to parse plugin /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm: Can't locate FuzzyOcr/Logging.pm in @INC (@INC contains: /etc/mail/spamassassin lib /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[10777] warn: BEGIN failed--compilation aborted at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[10777] warn: plugin: failed to create instance of plugin FuzzyOcr: Can't locate object method "new" via package "FuzzyOcr" at (eval 202) line 1.
[10777] info: config: failed to parse line, skipping: focr_global_wordlist /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.words
[10777] info: config: failed to parse line, skipping: focr_bin_helper pnmnorm, pnminvert, convert, ppmtopgm, tesseract
[10777] info: config: failed to parse line, skipping: focr_path_bin /usr/local/netpbm/bin:/usr/local/bin:/usr/bin
[10777] info: config: failed to parse line, skipping: focr_preprocessor_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.preps
[10777] info: config: failed to parse line, skipping: focr_scanset_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.scansets
[10777] info: config: failed to parse line, skipping: focr_enable_image_hashing 2
[10777] info: config: failed to parse line, skipping: focr_digest_db /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.hashdb
[10777] info: config: failed to parse line, skipping: focr_db_hash /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.db
[10777] info: config: failed to parse line, skipping: focr_db_safe /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.safe.db
[10777] info: config: failed to parse line, skipping: focr_end_config
[10777] info: config: failed to parse line, skipping: use_dcc 1
[10777] info: config: failed to parse line, skipping: dcc_path /usr/bin/dccproc
[10777] info: config: failed to parse line, skipping: dcc_add_header 1
[10777] info: config: failed to parse line, skipping: dcc_dccifd_path /usr/sbin/dccifd
[10777] info: config: failed to parse line, skipping: pyzor_add_header 1
[10777] warn: rules: failed to run FUZZY_OCR_CORRUPT_IMG test, skipping:
[10777] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10777] warn: )
[10777] warn: rules: failed to run FUZZY_OCR_WRONG_CTYPE test, skipping:
[10777] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10777] warn: )
[10777] warn: rules: failed to run FUZZY_OCR_WRONG_EXTENSION test, skipping:
[10777] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10777] warn: )
[10777] warn: rules: failed to run FUZZY_OCR_KNOWN_HASH test, skipping:
[10777] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10777] warn: )
[10777] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[10777] warn: rules: failed to run FUZZY_OCR test, skipping:
[10777] warn: (Can't locate object method "fuzzyocr_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10777] warn: )
debian:/# /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --debug FuzzyOcr < /usr/src/FuzzyOcr-3.5.1/samples/ocr-gif.eml > /dev/null
Subroutine FuzzyOcr::O_CREAT redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
Subroutine FuzzyOcr::O_EXCL redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
Subroutine FuzzyOcr::O_RDWR redefined at /usr/share/perl/5.8/Exporter.pm line 65.
at /usr/lib/perl/5.8/POSIX.pm line 19
[10807] warn: Parameter to use lib must be directory, not file at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 22
[10807] warn: plugin: failed to parse plugin /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm: Can't locate FuzzyOcr/Logging.pm in @INC (@INC contains: /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin lib /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[10807] warn: BEGIN failed--compilation aborted at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[10807] warn: plugin: failed to create instance of plugin FuzzyOcr: Can't locate object method "new" via package "FuzzyOcr" at (eval 202) line 1.
[10807] info: config: failed to parse line, skipping: focr_global_wordlist /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.words
[10807] info: config: failed to parse line, skipping: focr_bin_helper pnmnorm, pnminvert, convert, ppmtopgm, tesseract
[10807] info: config: failed to parse line, skipping: focr_path_bin /usr/local/netpbm/bin:/usr/local/bin:/usr/bin
[10807] info: config: failed to parse line, skipping: focr_preprocessor_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.preps
[10807] info: config: failed to parse line, skipping: focr_scanset_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.scansets
[10807] info: config: failed to parse line, skipping: focr_enable_image_hashing 2
[10807] info: config: failed to parse line, skipping: focr_digest_db /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.hashdb
[10807] info: config: failed to parse line, skipping: focr_db_hash /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.db
[10807] info: config: failed to parse line, skipping: focr_db_safe /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.safe.db
[10807] info: config: failed to parse line, skipping: focr_end_config
[10807] info: config: failed to parse line, skipping: use_dcc 1
[10807] info: config: failed to parse line, skipping: dcc_path /usr/bin/dccproc
[10807] info: config: failed to parse line, skipping: dcc_add_header 1
[10807] info: config: failed to parse line, skipping: dcc_dccifd_path /usr/sbin/dccifd
[10807] info: config: failed to parse line, skipping: pyzor_add_header 1
[10807] warn: rules: failed to run FUZZY_OCR_CORRUPT_IMG test, skipping:
[10807] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10807] warn: )
[10807] warn: rules: failed to run FUZZY_OCR_WRONG_CTYPE test, skipping:
[10807] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10807] warn: )
[10807] warn: rules: failed to run FUZZY_OCR_WRONG_EXTENSION test, skipping:
[10807] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10807] warn: )
[10807] warn: rules: failed to run FUZZY_OCR_KNOWN_HASH test, skipping:
[10807] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10807] warn: )
[10807] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[10807] warn: rules: failed to run FUZZY_OCR test, skipping:
[10807] warn: (Can't locate object method "fuzzyocr_check" via package "Mail::SpamAssassin::PerMsgStatus" at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/SpamAssassin/PerMsgStatus.pm line 2647.
[10807] warn: )
Any ideas?


All times are GMT +2. The time now is 12:25.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.