-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ryan Steele wrote: > All, > > Just to double check... all of the plugins currently for my > SpamAssassin installation are located in > /usr/share/perl5/Mail/SpamAssassin/Plugin ...so, that's where I > stuck the .cf and .pm that come with the FuzzyOcrPlugin tarball. I > still get the image spams though...should the .cf actually be in > /etc/mail/spamassassin? I sort of want to have an idea of what's > right here before I go and push anything out on production boxes. > Thanks! > > Best Regards, Ryan > > decoder wrote:
All files should go to /etc/mail/spamassassin/. You can probably put the .pm file somewhere else, but I don't know if you need to change the .cf file then so it finds the plugin, so if you want to make sure, simply put both files there. Chris P.S.: Be aware that the current version does not do any error handling, if something goes wrong, the worst case is that all spamassassin checks are canceled. So pay attention when using this in a production environment. I am currently working on a new version with better error handling and will release it soon. > Fletcher Mattox wrote: > >>>> I seem to be missing something on the configuration of >>>> FuzzyOcr, or perhaps my knowledge of how to install plugins >>>> is lacking. I initially put this line in >>>> /etc/mail/spamassassin/init.pre: >>>> >>>> loadplugin FuzzyOcr >>>> /etc/mail/spamassassin/plugins/FuzzyOcr.pm >>>> >>>> and spamassassin complains: >>>> >>>> smtp.cs.utexas.edu$ spamassassin --lint [8948] warn: plugin: >>>> failed to load plugin >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm: No such file >>>> or directory smtp.cs.utexas.edu$ >>>> >>>> Huh? I don't understand why it is looking there for >>>> FuzzyOcr.pm, but ok, I'll rename it (and edit the path in >>>> init.pre): >>>> >>>> smtp.cs.utexas.edu$ mv >>>> /etc/mail/spamassassin/plugins/FuzzyOcr.pm \ >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm >>>> >>>> smtp.cs.utexas.edu$ spamassassin --lint [9334] warn: >>>> Subroutine new redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 56. >>>> [9334] warn: Subroutine parse_config redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 66. >>>> [9334] warn: Subroutine dummy_check redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 101. >>>> [9334] warn: Subroutine wrong_ctype redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 105. >>>> [9334] warn: Subroutine corrupt_img redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 119. >>>> [9334] warn: Subroutine check_fuzzy_ocr redefined at >>>> /lusr/perl5.8/etc/mail/spamassassin/FuzzyOcr.pm line 133. >>>> smtp.cs.utexas.edu$ >>>> >>>> Does anyone know why perl is generating these warnings? The >>>> plugin seems to work otherwise, i.e. it correctly identifies >>>> the images in the sample tar file. >>>> >>>> Thanks Fletcher >>>> >>>> > You should simply extract the tar.gz file into > /etc/mail/spamassassin/, there is no need to put anything in pre > files, everything is done in the cf file that is shipped :) > > Chris >>> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE5G0oJQIKXnJyDxURAtaOAJ9lL1ke5F64gG/REL3g5SAwFnzdawCgqVtV bToT+tDEGR/UepgrTUr9yYM= =ah+M -----END PGP SIGNATURE-----