You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Kate Kleinschafer <ka...@rheel.co.nz> on 2009/05/12 23:03:00 UTC

problem getting spamassassin to invoke fuzzyocr

Hi All

I have found that FuzzyOcr is not being run properly.
On a message that has image spam (png) when I run spamassassin -t 
MESSAGE.MAI it picks it up correctly and gives
 pts rule name              description
---- ---------------------- 
--------------------------------------------------
 1.4 SARE_ADULT2            BODY: Contains adult material
-3.0 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]
 0.1 RDNS_DYNAMIC           Delivered to trusted network by host with
                            dynamic-looking rDNS
 0.0 DYN_RDNS_AND_INLINE_IMAGE Contains image, and was sent by dynamic
                            rDNS
  12 FUZZY_OCR              BODY:


when I run it as postfix (user that runs spamassassin)
sudo -u postfix spamassassin -p 
/etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI
pts rule name              description
---- ---------------------- 
--------------------------------------------------
 1.4 SARE_ADULT2            BODY: Contains adult material
-3.0 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]
 0.1 RDNS_DYNAMIC           Delivered to trusted network by host with
                            dynamic-looking rDNS
 0.0 DYN_RDNS_AND_INLINE_IMAGE Contains image, and was sent by dynamic
                            rDNS

So all the same apart from FuzzyOCR
The Fuzzy log for when it ran as postfix is at: 
http://www.pastebin.ca/1420926

I am unsure now how to find out why it is behaving this way.
Thanks
Kate



Re: [sa] Re: problem getting spamassassin to invoke fuzzyocr

Posted by Lists <li...@rheel.co.nz>.
Charles Gregory wrote:
> On Wed, 13 May 2009, Lists wrote:
>> Do you mean in /etc/mail/spamassassin/FuzzyOcr?
>
> I'm not familiar with the module in particular, but that
> behaviour - runnable as one user (or root) but not another - is nearly 
> always some sort of permission issue. So if the permissions in the 
> directory look alright, look at the permissions on the directory 
> itself, look at the permissions on any files/executables that install 
> to other directories to make that plugin work, etc, etc.
>
> - Charles
>
>
>
Is there a way I can run
sudo -u postfix spamassassin -p 
/etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI

and see exactly what it is trying to access and as what user?

This would enable to check permissions alot easier.

Thanks
Kate

Re: [sa] Re: problem getting spamassassin to invoke fuzzyocr

Posted by Charles Gregory <cg...@hwcn.org>.
On Wed, 13 May 2009, Lists wrote:
> Do you mean in /etc/mail/spamassassin/FuzzyOcr?

I'm not familiar with the module in particular, but that
behaviour - runnable as one user (or root) but not another - is nearly 
always some sort of permission issue. So if the permissions in the 
directory look alright, look at the permissions on the directory itself, 
look at the permissions on any files/executables that install to other 
directories to make that plugin work, etc, etc.

- Charles




Re: problem getting spamassassin to invoke fuzzyocr

Posted by Lists <li...@rheel.co.nz>.
Charles Gregory wrote:
> On Wed, 13 May 2009, Kate Kleinschafer wrote:
>> when I run it as postfix (user that runs spamassassin)
>> So all the same apart from FuzzyOCR
>> I am unsure now how to find out why it is behaving this way.
>
> Check for execute group permissions on the FuzzyOCR modules, make sure
> they are in a group of which postfix is a member....
>
> - Charles
Apologies for posting direct before Charles.

Do you mean in /etc/mail/spamassassin/FuzzyOcr?
if so they are:
-rw-r--r-- 1 root root 31374 Oct  7  2008 Config.pm
-rw-r--r-- 1 root root  4107 Oct  7  2008 Deanimate.pm
-rw-r--r-- 1 root root 14415 Oct  7  2008 Hashing.pm
-rw-r--r-- 1 root root  1903 Oct  7  2008 Logging.pm
-rw-r--r-- 1 root root  8313 Oct  7  2008 Misc.pm
-rw-r--r-- 1 root root  1117 Oct  7  2008 Preprocessor.pm
-rw-r--r-- 1 root root  3708 Oct  7  2008 Scanset.pm
-rw-r--r-- 1 root root  2911 Oct  7  2008 Scoring.pm

Re: problem getting spamassassin to invoke fuzzyocr

Posted by Charles Gregory <cg...@hwcn.org>.
On Wed, 13 May 2009, Kate Kleinschafer wrote:
> when I run it as postfix (user that runs spamassassin)
> So all the same apart from FuzzyOCR
> I am unsure now how to find out why it is behaving this way.

Check for execute group permissions on the FuzzyOCR modules, make sure
they are in a group of which postfix is a member....

- Charles