You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bruce Sackett <br...@oecnw.com> on 2014/07/08 17:54:14 UTC

I was wrong - Bayes filter not quite right

So I was able to get the Bayes filter working under spamassassin -D as the ‘amavis’ user (which should be correct), but when I run a live message through the mail server, it is apparently NOT using Bayes.  Any ideas on where/how I could troubleshoot that specifically?

--Bruce Sackett – e: bruce@oecnw.com - w: www.oecnw.com - p: 541.342.3325 - tw: @OECTECH - fb: www.facebook.com/oecnw


Re: I was wrong - Bayes filter not quite right

Posted by motty cruz <mo...@gmail.com>.
I had similar issue, I am running FreeBSD, in my etc/group

vscan:*:110:clamav

also, cd /var
ls -la

drwxr-x---- 8           vscan           vscan   amavis

because inside /var/amavisd
db .spamassassin

Thanks,



On Wed, Jul 9, 2014 at 1:26 PM, Bruce Sackett <br...@oecnw.com> wrote:

> On Jul 8, 2014, at 9:42 AM, John Hardin <jh...@impsec.org> wrote:
> >
> > On Tue, 8 Jul 2014, motty cruz wrote:
> >
> >> Hi Bruce,
> >> I was having similar issues, can you do  su - vscan and restart amavisd
> >> service?
> >
> > user "vscan" != user "amavis".
> >
> >> On Tue, Jul 8, 2014 at 8:54 AM, Bruce Sackett <br...@oecnw.com> wrote:
> >>
> >>> So I was able to get the Bayes filter working under spamassassin -D as
> the
> >>> ‘amavis’ user (which should be correct), but when I run a live message
> >>> through the mail server, it is apparently NOT using Bayes.  Any ideas
> on
> >>> where/how I could troubleshoot that specifically?
> >
> > Which user is amavisd running under? If it's indeed running under user
> "vscan" then training and testing Bayes as user "amavis" probably won't
> help any.
> >
> > --
> > John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
> > jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
> > key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
> > -----------------------------------------------------------------------
> >  Gun Control laws cannot reduce violent crime, because gun control
> >  laws focus obsessively on a tool a criminal might use to commit a
> >  crime rather than the criminal himself and his act of violence.
> > -----------------------------------------------------------------------
> > 12 days until the 45th anniversary of Apollo 11 landing on the Moon
>
>
> I’ve carefully verified the user the service is running under is ‘amavis’
> and that I can su amavis and successfully get Bayes results with
> spamassassin -D < (TESTEMAIL)
>
> It’s very strange - like the service is ignoring the bases database even
> though as the user it reads it just fine.  The DB for that user has around
> 2000 spam and 500 ham right at the moment, and not reporting any errors.
>
>

Re: I was wrong - Bayes filter not quite right

Posted by Bruce Sackett <br...@oecnw.com>.
On Jul 8, 2014, at 9:42 AM, John Hardin <jh...@impsec.org> wrote:
> 
> On Tue, 8 Jul 2014, motty cruz wrote:
> 
>> Hi Bruce,
>> I was having similar issues, can you do  su - vscan and restart amavisd
>> service?
> 
> user "vscan" != user "amavis".
> 
>> On Tue, Jul 8, 2014 at 8:54 AM, Bruce Sackett <br...@oecnw.com> wrote:
>> 
>>> So I was able to get the Bayes filter working under spamassassin -D as the
>>> ‘amavis’ user (which should be correct), but when I run a live message
>>> through the mail server, it is apparently NOT using Bayes.  Any ideas on
>>> where/how I could troubleshoot that specifically?
> 
> Which user is amavisd running under? If it's indeed running under user "vscan" then training and testing Bayes as user "amavis" probably won't help any.
> 
> -- 
> John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
> jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
> key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
> -----------------------------------------------------------------------
>  Gun Control laws cannot reduce violent crime, because gun control
>  laws focus obsessively on a tool a criminal might use to commit a
>  crime rather than the criminal himself and his act of violence.
> -----------------------------------------------------------------------
> 12 days until the 45th anniversary of Apollo 11 landing on the Moon


I’ve carefully verified the user the service is running under is ‘amavis’ and that I can su amavis and successfully get Bayes results with spamassassin -D < (TESTEMAIL)

It’s very strange - like the service is ignoring the bases database even though as the user it reads it just fine.  The DB for that user has around 2000 spam and 500 ham right at the moment, and not reporting any errors.


Re: I was wrong - Bayes filter not quite right

Posted by John Hardin <jh...@impsec.org>.
On Tue, 8 Jul 2014, motty cruz wrote:

> Hi Bruce,
> I was having similar issues, can you do  su - vscan and restart amavisd
> service?

user "vscan" != user "amavis".

> On Tue, Jul 8, 2014 at 8:54 AM, Bruce Sackett <br...@oecnw.com> wrote:
>
>> So I was able to get the Bayes filter working under spamassassin -D as the
>> ‘amavis’ user (which should be correct), but when I run a live message
>> through the mail server, it is apparently NOT using Bayes.  Any ideas on
>> where/how I could troubleshoot that specifically?

Which user is amavisd running under? If it's indeed running under user 
"vscan" then training and testing Bayes as user "amavis" probably won't 
help any.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Gun Control laws cannot reduce violent crime, because gun control
   laws focus obsessively on a tool a criminal might use to commit a
   crime rather than the criminal himself and his act of violence.
-----------------------------------------------------------------------
  12 days until the 45th anniversary of Apollo 11 landing on the Moon

Re: I was wrong - Bayes filter not quite right

Posted by motty cruz <mo...@gmail.com>.
Hi Bruce,
I was having similar issues, can you do  su - vscan and restart amavisd
service?

make sure you vscan user can read /var/amavisd.

also, you must feed about 200+ ham/spam emails to activate bayes.

Thanks,


On Tue, Jul 8, 2014 at 8:54 AM, Bruce Sackett <br...@oecnw.com> wrote:

> So I was able to get the Bayes filter working under spamassassin -D as the
> ‘amavis’ user (which should be correct), but when I run a live message
> through the mail server, it is apparently NOT using Bayes.  Any ideas on
> where/how I could troubleshoot that specifically?
>
> --Bruce Sackett – e: bruce@oecnw.com - w: www.oecnw.com - p: 541.342.3325 -
> tw: @OECTECH - fb: www.facebook.com/oecnw
>
>