Fwd: Autolearn problem

2005-07-06 Thread crisppy fernandes
-- Forwarded message --
From: crisppy fernandes [EMAIL PROTECTED]
Date: Jul 6, 2005 3:33 PM
Subject: Re: Autolearn problem
To: Joe Borg [EMAIL PROTECTED]


On 7/6/05, Joe Borg [EMAIL PROTECTED] wrote:
 Hi Crisppy,
 Yes I've run that command and the output seems just fine.
 I've now noticed however that in my bayes directory there is a (strange)
 file called auto-whitelist.mutex. The file only has rw permissions for the
 user and the file seems to be created with the user and group of a given
 user on the system (e.g. me when I check my mail...not a system account).
 Also the file doesn't seem to be removed at any point. I suspect this is a
 lock file that is not being removed. Could this be the reason why I'm
 getting autolearn=fail?

 Regards,

Can't say for sure but definitely you don't require this kind of
.mutex file in bayes directory so you can check by moving or even by
removing that file from that dir.
and then test by sending few mails.

I hope it should work.


Crisppy f.


Re: Autolearn problem

2005-07-06 Thread crisppy fernandes
On 7/6/05, Joe Borg [EMAIL PROTECTED] wrote:
 Hi,
 I've tried moving the file. What happens is that a new one is created;
 usually belonging to a different user on the system and then, that get

This is something strange.

 stuck. In other words the problem keeps on reoccurring.

What all is there in your local.cf file. Is that file is used by many users.
if you are using any auto-whitelist related rules then check them
properly and if doubtful about any entry then just remove .
--lint , --sync and then test.

Crippy f.


procmailrc issue.

2005-07-05 Thread crisppy fernandes
Hi All

I am facing one issue with procmailrc file when spamassassin is run
through procmailrc as 
I call spamc from /etc/procmailrc, and it runs in privilege mode for
all my users.
This way they can put any thing in the file and in mins can get access
to the root user.  so big security risk to box.
At the same time i need to give them access to this file in their
virtual home directories so that they can add there recipies to the
file for spam filtering.
Can i resctrict them in some way to access and edit resources only in
local virtual environment and not get suid and sgid access to do
harmful things to root environment.

-- 
Crisppy Fernandes


Re: Bayes Problems

2005-04-26 Thread crisppy fernandes
On 4/14/05, J Thomas Hancock [EMAIL PROTECTED] wrote:
 I am having one heck of a time getting Bayes working with SpamAssassin.
 
 I am using postfix 2.2.2 and SA 3.00.2.  Postfix is being ran as the user
 postfix.  SA is being ran as postdrop.
 
 The following is the output from the syslog.
 
 spamd[22065]: debug: plugin:
 Mail::SpamAssassin::Plugin::Hashcash=HASH(0xa8b6820) implements
 'parse_config'
 spamd[22065]: debug: bayes: 22065 tie-ing to DB file R/O
 /home/postdrop/.spamassassin_toks
 spamd[22065]: debug: bayes: 22065 tie-ing to DB file R/O
 /home/postdrop/.spamassassin_seen
 spamd[22065]: debug: bayes: found bayes db version 3
 spamd[22065]: debug: bayes: Not available for scanning, only 35 ham(s) in
 Bayes DB  200
 spamd[22065]: debug: bayes: 22065 untie-ing
 spamd[22065]: debug: bayes: 22065 untie-ing db_toks
 spamd[22065]: debug: bayes: 22065 untie-ing db_seen
 spamd[22065]: debug: Score set 1 chosen.
 spamd[22065]: debug:  MIME PARSER START 
 spamd[22065]: debug: main message type: text/plain
 spamd[22065]: debug: parsing normal part
 spamd[22065]: debug: added part, type: text/plain
 spamd[22065]: debug:  MIME PARSER END 
 spamd[22065]: debug: using /tmp/spamd-22065-init/.spamassassin for user
 state dir
 spamd[22065]: debug: bayes: no dbs present, cannot tie DB R/O:
 /tmp/spamd-22065-init/.spamassassin/bayes_toks
 spamd[22065]: debug: metadata: X-Spam-Relays-Trusted:
 
 Unfortunately I have tinkered with this too much so I really can not list
 what I have or have not tried.
 
 Any input would be appreciated.
 
 Thank you,
 Tom
 

Don't worry.
This is spam behaviour change.
For making your spam database quickly work you can pick up Bayes
stater database from this site link below.

 http://www.fsl.com/support/

But it is always suggested that spam data base which is basically
based on bayesian logic should learn from its own.

Also command for making spamassassin learn any file or mail as spam or
ham mail, you can use this command

sa-learn --spam file/mail_box_path
sa-learn --ham file/mail_box_path


-- 
Crisppy Fernandes


Re: rewrite_subject 0 lint: 1 issues detected

2005-03-28 Thread crisppy fernandes
 After the scripts download the rules and try to merge them I get this error.
 
 Lint output: config: SpamAssassin failed to parse line, skipping:
 rewrite_subject 0
 lint: 1 issues detected.  please rerun with debug enabled for more
 information.

To solve this remove from your rules file (local.cf or user_prefs)
these two lines

rewrite_subject 0 
subject_tag [spam] 

and add new syntax i.e.
rewrite_header Subject [Spam]

and after adding these or any other rules, to debug run

spamassassin --lint -D

this will show you any more errors if there in the file and always
remember to run this command after editing your rules file to
synchronise it.


enjoy
-- 
Crisppy Fernandes


Re: bayes test

2005-03-18 Thread crisppy fernandes
 I wonder how I have to train spamassassin to get bayes_XX test start
 working.
 
 I have a rule that trains the bayessian filter with each email y
 received with the sa-learn tool.

You have not mentioned that rule and file in which you have written
that rule. if you can tell then it will help others to reply better.
anyway let me try to explain

bayes_XX wrks purely on basis of probability. It tries to find out
tokens in the mail which
match to  earlier learned tokens. Its always better that bayes rules
should learn themselves.
but we can always create rules to enhance the chances of that rule
appear with other tests.
they have their default score which you can check in files:
/usr/share/spamassassin/* directory.
and user created rules you can write in either
/etc/mail/spamassassin/local.cf or user specific file in its home
directory user_prefs file.
Any rule you write or scores you change do not forget to run the command 
spamassassin --lint
and for debugging you can add -D option.


 After some months of training (I
 thought I needed 200 of spam and 200 of ham) I haven't seen it yet.
 The last spam my spamassassin caught it had these tests:

yes its mentioned in spamassassin wiki documentation but reality is
much more than this.
Read man sa-learn , that will help you in understanding the process better.

For further queries mail to the list.
-- 
Crisppy Fernandes


Is spamassassin 3.0.2 wrked for any one just after install or upgrade

2005-03-18 Thread crisppy fernandes
Dev community,

This is to know from developers community is spamassassin wrked for
anyone just after upgrade or install.
Everyday one or other new user complaints abt this behaviour that
spamassassin after upgrade to 3.0.x version not seems to wrk.
After checking the man documents or wiki we come to know that , made
it learn 200 spam and ham then it will wrk. But even then it actually
not wrk. Corpus are not exact things to check for validity as per
sa-learn documentation.
Then is there any other easy way. using which a novice can wrk
with spamassassin without any need to bother abt learning and all.
After going through documentation i am able to understand that it
learn automatically on basis of its different rules.
But what about users who dont have big load of spams on their servers.

Simply here i want to point out is spamassassin.org should provide any
procedure which will make users wrk easy and they feel happy using
this s/w.

-/Crisppyf


Spam not wrking. Hot to train Bayes and make it wrk in beginning.

2005-03-06 Thread crisppy fernandes
/.spamassassin/auto-whitelist
debug: auto-whitelist (db-based):
[EMAIL PROTECTED]|ip=none scores 0/0
debug: AWL active, pre-score: -3.899, autolearn score: -3.899, mean:
undef, IP: undef
debug: DB addr list: untie-ing and unlocking.
debug: DB addr list: file locked, breaking lock.
debug: unlock: 10692 unlink /home/admin17/.spamassassin/auto-whitelist.lock
debug: Post AWL score: -3.899
debug: running body-text per-line regexp tests; score so far=-3.899
debug: running uri tests; score so far=-3.899
debug: running raw-body-text per-line regexp tests; score so far=-3.899
debug: running full-text regexp tests; score so far=-3.899
debug: is spam? score=-3.899 required=1
debug: tests=ALL_TRUSTED,BAYES_20,MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME
debug: 
subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__SANE_MSGID,__UNUSABLE_MSGID


-- 
Crisppy Fernandes
-- 
Crisppy Fernandes