You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Sean Kennedy <sk...@tpno.org> on 2004/05/26 08:14:53 UTC

AWL - How do I know if it's working...

Hi folks, forgive me if this is a common question, the archives didn't 
have anything definitive, however...

I have never had this working, so I setup my 
/etc/mail/spamassassin/local.cf file like so...

use_auto_whitelist   1
auto_whitelist_path /var/spamd/white/
auto_whitelist_file_mode   0777 ( yeah yeah, i know.  I'm just testing 
it out ).

and I am calling spamd like so:

/usr/bin/spamd -d -x -a -u spamd

Now, I am doing bayes filtering as well, under /var/spamd/, and that is 
showing up as it should be.  But there are no files showing up under 
/var/spamd/white/ when I start the server. 

Is this normal?  I have never seen any files under this directory, so I 
assume it isn't working.  Does anybody see what I am doing wrong?  The 
/var/spamd, for the moment, is world read/writeable for testing purposes. 

Any help is greatly apprecaited.

Sean

Re: AWL - How do I know if it's working...

Posted by Sean Kennedy <sk...@tpno.org>.
Sean Kennedy wrote:

> Hi folks, forgive me if this is a common question, the archives didn't 
> have anything definitive, however...
>
> I have never had this working, so I setup my 
> /etc/mail/spamassassin/local.cf file like so...
>
> use_auto_whitelist   1
> auto_whitelist_path /var/spamd/white/
> auto_whitelist_file_mode   0777 ( yeah yeah, i know.  I'm just testing 
> it out ).
>
> and I am calling spamd like so:
>
> /usr/bin/spamd -d -x -a -u spamd
>
> Now, I am doing bayes filtering as well, under /var/spamd/, and that 
> is showing up as it should be.  But there are no files showing up 
> under /var/spamd/white/ when I start the server.
> Is this normal?  I have never seen any files under this directory, so 
> I assume it isn't working.  Does anybody see what I am doing wrong?  
> The /var/spamd, for the moment, is world read/writeable for testing 
> purposes.
> Any help is greatly apprecaited.
>
> Sean

Figures, I post to the mailing list, then I get "smart".

Anyways, I was a bit confused by the syntax of the config.  I assumed it
would follow the syntax of the bayes stuff, where I could feed it

auto_whitelist_path /var/spamd/white/

where white is a directory.  Well, it doesn't like that appearently.  So
I take off the '/', delete that directory which I made, and it suddenly
works.

*shrug* got me.  Thanks for the help.  ;)

Sean


Re: AWL - How do I know if it's working...

Posted by Sean Kennedy <sk...@tpno.org>.
Theo Van Dinter wrote:

>On Tue, May 25, 2004 at 11:14:53PM -0700, Sean Kennedy wrote:
>  
>
>>I have never had this working, so I setup my 
>>/etc/mail/spamassassin/local.cf file like so...
>>
>>use_auto_whitelist   1
>>    
>>
>
>that's only valid for 3.0, btw.  if you're running 2.x, you need to put
>-a on the commandline.  you don't mention what version you're using.
>
>  
>
doh.  I'm slow, you'll have to forgive me.  I'm using 2.61.  And I do 
put -a on the command line when calling spamd.  I turned on debuging, 
this is what I get:

May 25 23:26:15 moya spamd[16417]: debug: lock: 16417 created 
/var/spamd/white/.lock.moya.tpno.prv.16417
May 25 23:26:15 moya spamd[16417]: debug: lock: 16417 trying to get lock 
on /var/spamd/white/ with 0 retries
May 25 23:26:15 moya spamd[16417]: debug: lock: 16417 link to 
/var/spamd/white/.lock: link ok
May 25 23:26:15 moya spamd[16417]: debug: Tie-ing to DB file R/W in 
/var/spamd/white/
May 25 23:26:15 moya spamd[16417]: debug: unlock: 16417 unlink 
/var/spamd/white/.lock
May 25 23:26:15 moya spamd[16417]: debug: open of AWL file failed: 
Cannot open auto_whitelist_path /var/spamd/white/:

Now...I'm not expert at the best of times, and I am currently sleep 
deprived, but it looks like it can read and write to my /var/spamd/white 
directory.  I'm not entirely sure what the problem is. 

Thank you for your help so far, I appreciate it.

Sean

Re: AWL - How do I know if it's working...

Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, May 25, 2004 at 11:14:53PM -0700, Sean Kennedy wrote:
> I have never had this working, so I setup my 
> /etc/mail/spamassassin/local.cf file like so...
> 
> use_auto_whitelist   1

that's only valid for 3.0, btw.  if you're running 2.x, you need to put
-a on the commandline.  you don't mention what version you're using.

-- 
Randomly Generated Tagline:
You tell 'em Goldfish, You've been around the globe.