[no subject]

2007-10-02 Thread mj romero
Hello Spamassassin's users,For Spamassassin and DSPAM, in Bayes, it is possible 
to keep tokens by user? In which formats? It supports Oracle, MySQL, 
PostgreSQL…?Sorry for my english and thanks.
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

[no subject]

2007-10-02 Thread mj romero
Hello Spamassassin's users,For Spamassassin and DSPAM, in Bayes, it is possible 
to keep tokens by user? In which formats? It supports Oracle, MySQL, 
PostgreSQL…?Sorry for my english and thanks.
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: Huge size of bayes_journal

2006-03-27 Thread MJ
Hi Gary V, 

Sorry for the delayed reply.

>A clue was given to you in a previous post:
http://marc.theaimsgroup.com/?l=spamassassin-users&m=114269315700923&w=2

>But I am not getting the full picture. You said earlier that the bayes
files 
>were in /var/amavis/.spamassassin yet you say you changed the home
directory 
>of 'clamav' to /var/amavisd. Are your bayes files in 
>/var/amavis/.spamassassin or /var/amavisd/.spamassassin? What user is 
>running amavisd-new? Please do this for me as I asked before:

My bayes files are under "/var/amavis/.spamassassin" (sorry for the
typo)

>What do you have $daemon_user and $daemon_group set to in amavisd.conf?

$daemon_user = 'clamav'
$daemon_group = 'clamav'

>What does this say?: cat /etc/passwd | grep amavis

clamav:x:1005:103::/var/amavis:/bin/sh


>When you ran "/usr/local/bin/sa-learn -D --sync", what user were you
running 
>this as?

I was logged in as user "clamav" after changing the initially assigned
home directory of user clamav from something else to "/var/avamvis"

>Another hint, you also need to run 'sa-learn --sync --force-expire' as
your 
>amavisd-new user. If it takes some time to complete then it is probably

>working.




RE: Huge size of bayes_journal

2006-03-20 Thread MJ
Hi,
Many thanks Theo Van Dinter, Gary V and others who helped. As suggested
by Theo Van Dinter, I change the home directory of clamav user as
/var/amavisd and then executed "/usr/local/bin/sa-learn -D --sync" it
took around 6 hours but now "bayes_journal" has been reduced from 3.5 GB
42 KB. How I can prevent this problem from reoccuring?

___
Mohammad Junaid





RE: Huge size of bayes_journal

2006-03-18 Thread MJ
Hi Gary,

>The user 'clamav' should have a home dir of /var/amavis otherwise I
wouldn't 
>think the spamassasin files would end up in /var/amavis/.spamassassin.

>what does this say?
>cat /etc/passwd | grep clamav

clamav:x:1005:103::/home/clamav:/bin/false


>To run sa-learn as this user (who does not have a shell), I would run:
sudo -H -u clamav sa-learn --sync --force-expire

You want me to try above command?

>I would set up a cron job to run this daily as it seems you have
disabled 
>auto expire and sync as noted. You can't do that without manually
cleaning 
>up on a regular basis. You can do that if you do.

I didn't change anything related to auto expire or sync in amavisd.conf,
infact another machine with same configuration doesn't have such a huge
bayes_* files.

Any idea how to resolve this issue.

Many thanks,

Mohammad Junaid.




RE: Huge size of bayes_journal

2006-03-18 Thread MJ
>You can and probably should remove the journal file.  These are
unlearned tokens, so they aren't affecting the classification of mail.
The journal is >so huge that it might take days to learn, and it also
indicates that you are accumulating new material fairly quickly.  So
losing the current journal >file shouldn't hurt anything.

Hi Loren Wilton,

Are you sure that it will not have any adverse effect on my system, I am
not in the position to take any chance?

Many thanks.

Regards,
___
Mohammad Junaid






RE: Huge size of bayes_journal

2006-03-18 Thread MJ
Title: RE: Huge size of bayes_journal






Hi Theo,


I manage to switch to that user and executed the sa-learn command but since it has it' own home directory it created new .spamassassin directory under it's home directory. Actually "/var/amavisd/.spamassassin" which has these files is not a home directory for any user. So how to tell sa-learn command to read from this location?

I am afraid that my filesystem soon will be full.


Mohammad Junaid.






RE: Huge size of bayes_journal

2006-03-18 Thread MJ
Hi Theo van Dinter,

Thanks for you quick response.

>The "#" implies you're running as root.  Is that the same user as
amavis runs as?

No, there is another user for daemon with a false shell, can't be use to
login as a normal user.

>This isn't the same path as you posted before, so I'm not surprised
those files didn't change.

You mean which path? My bayes_* files are under
/var/amavis/.spamassassin.

Many thanks for your time.
___
Mohammad Junaid





RE: Huge size of bayes_journal

2006-03-18 Thread MJ
Hi Theo Van Dinter

>I don't know if amavisd does something special wrt bayes,

Do you need me to send amavisd.conf? usually they (mailing list of
amavisd-new) suggest to post SA related issues to this list and not on
Amavisd-new list.


>As the appropriate user, run "sa-learn -D --sync" and see what happens.

I did but still the same size, following is the output.
=
bash-2.03# /usr/local/bin/sa-learn -D --sync
[17329] dbg: logger: adding facilities: all
[17329] dbg: logger: logging level is DBG
[17329] dbg: generic: SpamAssassin version 3.1.0
[17329] dbg: config: score set 0 chosen.
[17329] dbg: util: running in taint mode? yes
[17329] dbg: util: taint mode: deleting unsafe environment variables,
resetting PATH
[17329] dbg: util: PATH included 'PATH', which is not absolute, dropping
[17329] dbg: util: PATH included '/usr/sbin', keeping
[17329] dbg: util: PATH included '/usr/bin', keeping
[17329] dbg: util: PATH included '/export/home/mg1', keeping
[17329] dbg: util: final PATH set to:
/usr/sbin:/usr/bin:/export/home/mg1
[17329] dbg: dns: is Net::DNS::Resolver available? yes
[17329] dbg: dns: Net::DNS version: 0.52
[17329] dbg: dns: name server: 212.119.64.2, family: 2, ipv6: 0
[17329] dbg: config: using "/etc/mail/spamassassin" for site rules pre
files
[17329] dbg: config: read file /etc/mail/spamassassin/init.pre
[17329] dbg: config: read file /etc/mail/spamassassin/v310.pre
[17329] dbg: config: using "/usr/local/share/spamassassin" for sys rules
pre files
[17329] dbg: config: using "/usr/local/share/spamassassin" for default
rules dir
[17329] dbg: config: read file /usr/local/share/spamassassin/10_misc.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_advance_fee.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_anti_ratware.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_body_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_compensate.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_dnsbl_tests.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_fake_helo_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_head_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_html_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_meta_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_net_tests.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_phrases.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_ratware.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/20_uri_tests.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/23_bayes.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_accessdb.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_antivirus.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_body_tests_es.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_body_tests_pl.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/25_dcc.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_domainkeys.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_hashcash.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/25_pyzor.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_razor2.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_replace.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/25_spf.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/25_textcat.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/25_uribl.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_de.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_fr.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_it.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_nl.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_pl.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/30_text_pt_br.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/50_scores.cf
[17329] dbg: config: read file /usr/local/share/spamassassin/60_awl.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/60_whitelist.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/60_whitelist_spf.cf
[17329] dbg: config: read file
/usr/local/share/spamassassin/60_whitelist_subject.cf
[17329] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[17329] dbg: config: read file /etc/mail/spamassassin/cyberia.cf
[17329] dbg: config: read file /etc/mail/spamassassin/local.cf
[17329] dbg: config: using "//.spamassassin/user_prefs" for user prefs
fi

Huge size of bayes_journal

2006-03-18 Thread MJ

Hi,
I am running postfix 2.2.4 on Solaris 8 with amavisd-new.2.3.2,
SpamAssassin 3.1.0 and Clamav 0.8.7.1 as an AV/AS gateway to my main
email system. The problem is that in our "/var/amavis/.spamassassin"
directory most of the files are increasing specially "bayes_jornal" is
reaching to 3.4 GB. I have read that this file should not be more than
few KB, Can anyone help what could be the reason? 

Here is the ls -l output for this directory.

==
bash-2.03# ls -l /var/amavis/.spamassassin

-rw---   1 clamav   clamav   335904768 Mar 18 12:01 auto-whitelist
-rw---   1 clamav   clamav 6 Mar 18 12:01
auto-whitelist.mutex
-rw---   1 clamav   clamav  2196 Mar 18 12:01 bayes.mutex
-rw---   1 clamav   clamav   3441876576 Mar 18 12:01 bayes_journal
-rw---   1 clamav   clamav   167813120 Mar 18 12:01 bayes_seen
-rw---   1 clamav   clamav   336117760 Mar 18 12:01 bayes_toks
==

Thanks,
Mohammad Junaid.