You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Peter P. Benac" <pp...@emacolet.com> on 2004/04/22 19:06:11 UTC
Re: Why doesn't 'local.cf' get read when mimedefang calls
spamassassin?
>
> I just checked mine and it's the same. I am guessing whatever is in the
> sa-mimedefang.cf file doesn't matter.
> I have sa-mimedefang.cf and it's empty (only comments). I have 34 other
> .cf
> files in /etc/mail/spamassassin and they are all being used properly.
>
> I might have hacked my MD to do this, but I don't remember doing so, and I
> know I didn't re-hack it when I upgraded to 2.41, not sure what is going
> on!
>
>
SA is being called with a specific config file and then SA reads all the
rest.
If I remember right the -r test for the existence of a non-zero readable
file. If your sa-mimedefang.cf is empty then it will fail the test and
skip to local.cf and will not fail.
Regards,
Pete
Re: Why doesn't 'local.cf' get read when mimedefang calls
spamassassin?
Posted by Henry Leparskas <hl...@astro.uwo.ca>.
And thanks for the 'heads-up' on the 're-read' case for the mimedefang
init script. Now I don't have to restart sendmail every time!
Henry
> Peter, Fred,
> You guys are great. I hadn't thought of looking at the perl code!
> I'll solve this '.cf' problem and then will see what goes on with this
> site-wide bayes stuff. I agree, Fred, that I probably just need group
> readable permissions on the directory. I'll give that a shot.
> First let me see if I can get 'sa-learn' to use
> '/etc/mail/spamassassin/bayes' as a working directory by su'ing to root
> from my regular directory and then calling 'sa-learn'.
>
>
> Cheers,
> Henry
>
> > >
> > > I just checked mine and it's the same. I am guessing whatever is in the
> > > sa-mimedefang.cf file doesn't matter.
> > > I have sa-mimedefang.cf and it's empty (only comments). I have 34 other
> > > .cf
> > > files in /etc/mail/spamassassin and they are all being used properly.
> > >
> > > I might have hacked my MD to do this, but I don't remember doing so, and I
> > > know I didn't re-hack it when I upgraded to 2.41, not sure what is going
> > > on!
> > >
> > >
> > SA is being called with a specific config file and then SA reads all the
> > rest.
> >
> > If I remember right the -r test for the existence of a non-zero readable
> > file. If your sa-mimedefang.cf is empty then it will fail the test and
> > skip to local.cf and will not fail.
> >
> > Regards,
> > Pete
> >
>
Re: Why doesn't 'local.cf' get read when mimedefang calls
spamassassin?
Posted by Henry Leparskas <hl...@astro.uwo.ca>.
Peter, Fred,
You guys are great. I hadn't thought of looking at the perl code!
I'll solve this '.cf' problem and then will see what goes on with this
site-wide bayes stuff. I agree, Fred, that I probably just need group
readable permissions on the directory. I'll give that a shot.
First let me see if I can get 'sa-learn' to use
'/etc/mail/spamassassin/bayes' as a working directory by su'ing to root
from my regular directory and then calling 'sa-learn'.
Cheers,
Henry
> >
> > I just checked mine and it's the same. I am guessing whatever is in the
> > sa-mimedefang.cf file doesn't matter.
> > I have sa-mimedefang.cf and it's empty (only comments). I have 34 other
> > .cf
> > files in /etc/mail/spamassassin and they are all being used properly.
> >
> > I might have hacked my MD to do this, but I don't remember doing so, and I
> > know I didn't re-hack it when I upgraded to 2.41, not sure what is going
> > on!
> >
> >
> SA is being called with a specific config file and then SA reads all the
> rest.
>
> If I remember right the -r test for the existence of a non-zero readable
> file. If your sa-mimedefang.cf is empty then it will fail the test and
> skip to local.cf and will not fail.
>
> Regards,
> Pete
>