Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th May 2009, 23:49
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default FuzzyOCR 3.5.1 on an ISPConfig 2.2.32 server

I try to install FuzzyOCR 3.5.1 on an ISPConfig 2.2.32 server by following this howto to the letter: http://www.howtoforge.com/fight_imag...r_spamassassin

After executing the command: /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --debug FuzzyOcr < /usr/src/FuzzyOcr-3.5.1/samples/ocr-gif.eml > /dev/null

I get some errors:

[14495] 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 /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[14495] warn: BEGIN failed--compilation aborted at /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.pm line 24.
[14495] warn: Compilation failed in require at /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.10.0/Mail/SpamAssassin/PluginHandler.pm line 107.
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_global_wordlist /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.words
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_bin_helper pnmnorm, pnminvert, convert, ppmtopgm, tesseract
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_path_bin /usr/local/netpbm/bin:/usr/local/bin:/usr/bin
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_preprocessor_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.preps
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_scanset_file /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.scansets
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_enable_image_hashing 2
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_digest_db /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.hashdb
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_db_hash /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.db
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_db_safe /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.safe.db
[14495] info: config: failed to parse line, skipping, in "/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/FuzzyOcr.cf": focr_end_config
[14495] warn: rules: failed to run FUZZY_OCR_CORRUPT_IMG test, skipping:
[14495] warn: (Can't locate object method "dummy_check" via package "Mail::SpamAssassin::PerMsgStatus" at (eval 659) line 532, <$tmpfile> line 128.
[14495] warn: )
[14495] warn: rules: failed to run FUZZY_OCR test, skipping:
[14495] warn: (Can't locate object method "fuzzyocr_check" via package "Mail::SpamAssassin::PerMsgStatus" at (eval 724) line 19.
[14495] warn: )

What could be wrong?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2009, 18:10
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

FuzzyOcr/Logging.pm is not in the path, the mail perl module calling it cannot find it.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 13th May 2009, 00:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Hi Topdog,

Thanks for your help.
I thought it had something to do with that path indeed. In the mean time the problem is solved. I must say that i was only able to get it up and running by creating a symlink like this:

mkdir /etc/mail/
ln -s /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/ /etc/mail/spamassassin

Modifying the FuzzyOcr.cf file as described within the howto and leave everything in /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/ did not work for me.

But, it works now!
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #4  
Old 13th May 2009, 13:13
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Although i've added the words to be scanned into the file FuzzyOcr.words , still some image-spam passes through.

FuzzyOCR works fine, but it think it's also necesarry to tell Spamassassin to load the FuzzyOCR plugin by doing:

vi /etc/spamassassin/init.pre

and insert (at the bottom):
loadplugin FuzzyOcr /etc/mail/spamassassin/FuzzyOcr.pm

Correct me if i'm wrong! (it's not mentioned within the howto)
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #5  
Old 13th May 2009, 13:15
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

Oh you could just use my rpm, it does all that for you, http://www.topdog-software.com/oss/fuzzyocr/
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #6  
Old 13th May 2009, 19:19
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Hi Topdog,

Thanks for your offer to use your rpm. No doubt that it is a great solution, but i can't use it right now.
The FuzzyOCR anti-image SPAM solution is for an existing Debian Lenny server with ISPConfig 2.2.32.

I have te impression that the amount of image spam is decreasing now.

I am new to FuzzyOCR, but do you know if it makes any difference when Caps Lock is off or on, while adding new words to the file FuzzyOcr.words ?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #7  
Old 14th May 2009, 10:27
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

My bad, i thought you were using a rpm based distro, any way you can get a word list from here http://www.gbnetwork.co.uk/mailscanner/FuzzyOcr.words

FuzzyOCR is very resource intensive so i suggest you use it as the second line of defense, you should use the sanesecurity clamav signatures as your first defense against image/pdf spam.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #8  
Old 14th May 2009, 21:59
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Thanks for the link to the Wordlist and your feedback.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #9  
Old 19th May 2009, 01:12
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,233
Thanks: 69
Thanked 21 Times in 17 Posts
Default

thats weird.
I also had loads of imagespam coming through, followed the same tutorial, the test went fine ,teh sample was recognized as spam...

tried loading fuzzyocr like you suggested: loadplugin FuzzyOcr /etc/mail/spamassassin/FuzzyOcr.pm will see if it changes anything :-)
Reply With Quote
  #10  
Old 19th May 2009, 07:43
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

@Tenaka, same situation here.

After contacting Falko (the author, of the Howto) and reading this article, i've added the following to the file /etc/mail/spamassassin/v310.pre:

loadplugin FuzzyOcr /etc/mail/spamassassin/FuzzyOcr.pm
(at the bottom of the file)

So, i did not add this line to the file /etc/spamassassin/init.pre.

Still, sometimes image spam passes the server, although the words to be recognised are within the file file FuzzyOcr.words. So i don't understand.

What i also don't understand is that within the article some tests are explained. But after giving commands, like:

spamassassin --lint
or
spamassassin -t < animated-gif.eml

I've got the error: command not found.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server, postfix, gmail relay sjau Server Operation 3 14th December 2010 18:20
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
ispconfig - server migration best way sygram Installation/Configuration 3 26th October 2007 11:37
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 01:24.


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