You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by nigel <ni...@leighton.com> on 2007/01/19 10:25:48 UTC

Runing out of Disk Space

hi everyone, i'm pretty new to SpamAssassin.  Disk space on one of our
servers is running low and it seems that /var/spool/MailScanner/spamassassin
is using 4.4GB.  it is full of items like this

bayes_toks.expire7000

i roughly know what they do but is there a way to clear this out?  i thought
some were automatically removed after a while?

any help would be grateful

many thanks

Nigel Robson
-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8446224
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: Runing out of Disk Space

Posted by "Martin.Hepworth" <ma...@solidstatelogic.com>.
Hmm that looks very wrong..

Should be /var/lib if not blank nowaways..

I wonder if you're confusing the User State dir with the spamassassin
cache dir in MailScanner..

--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: Theo Van Dinter [mailto:felicity@apache.org]
> Sent: 22 January 2007 16:11
> To: users@spamassassin.apache.org
> Subject: Re: Runing out of Disk Space
>
> On Mon, Jan 22, 2007 at 01:50:02AM -0800, nigel wrote:
> > is this the line in MailScanner.conf that changes the location of
the
> DB?
> > SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
>
> It looks possible.  I have no idea about MailScanner.
>
> --
> Randomly Selected Tagline:
> "The best thing that came out of Italy is the road to the south." -
James
> Burke




**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.

Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.

Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 

Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************


Re: Runing out of Disk Space

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Jan 22, 2007 at 01:50:02AM -0800, nigel wrote:
> is this the line in MailScanner.conf that changes the location of the DB?
> SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

It looks possible.  I have no idea about MailScanner.

-- 
Randomly Selected Tagline:
"The best thing that came out of Italy is the road to the south." - James Burke

Re: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
is this the line in MailScanner.conf that changes the location of the DB?

SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

its the only thing in that file that seems to point to that location where i
have all those token files (unless i missed it )

Nigel


Theo Van Dinter-2 wrote:
> 
> On Fri, Jan 19, 2007 at 02:50:10PM -0800, nigel wrote:
>> so if it created a DB for me, how do i get rid of the 4.4GB of tokens
>> that
>> exist in /var/spool/MailScanner/spamassassin?
> 
> You need to properly use the right DB path.  Either a) run as the correct
> user, b) if you have privs use --dbpath, c) properly setup site-wide
> bayes.
> 
> The thing to notice in the debug output is that it's using
> /home/postfix/.spamassassin, not /var/spool/[...], probably because
> MailScanner isn't running as postfix or is configured to use a different
> directory outside the normal SA config.
> 
> -- 
> Randomly Selected Tagline:
> "It's now 1-1, an exact reversal of the score on Saturday." - Radio 5 Live
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8485990
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: Runing out of Disk Space

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Jan 19, 2007 at 02:50:10PM -0800, nigel wrote:
> so if it created a DB for me, how do i get rid of the 4.4GB of tokens that
> exist in /var/spool/MailScanner/spamassassin?

You need to properly use the right DB path.  Either a) run as the correct
user, b) if you have privs use --dbpath, c) properly setup site-wide bayes.

The thing to notice in the debug output is that it's using
/home/postfix/.spamassassin, not /var/spool/[...], probably because
MailScanner isn't running as postfix or is configured to use a different
directory outside the normal SA config.

-- 
Randomly Selected Tagline:
"It's now 1-1, an exact reversal of the score on Saturday." - Radio 5 Live

Re: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
so if it created a DB for me, how do i get rid of the 4.4GB of tokens that
exist in /var/spool/MailScanner/spamassassin?

thanks

Nigel


Theo Van Dinter-2 wrote:
> 
> On Fri, Jan 19, 2007 at 12:04:19PM -0800, nigel wrote:
>> debug: failed to load Net::DNS::Resolver: Can't locate Net/DNS.pm in @INC
> 
> You should get Net::DNS properly installed.  It's good stuff.
> 
>> debug: config: SpamAssassin failed to parse line, skipping: ARE "Adult"
>> Ruleset for SpamAssassin
> 
> Missing a comment or something.
> 
>> debug: bayes: no dbs present, cannot tie DB R/O:
>> /home/postfix/.spamassassin/bayes_toks
> 
> There is no Bayes DB in that location.
> 
>> debug: bayes: new db, set db version 3 and 0 tokens
> 
> So it made one for you.
> 
>> debug: bayes: expiry check keep size, 0.75 * max: 112500
>> debug: bayes: token count: 0, final goal reduction size: -112500
>> debug: bayes: reduction goal of -112500 is under 1,000 tokens.  skipping
>> expire.
> 
> You have no tokens since this is a new db and so it didn't do anything.
> 
> -- 
> Randomly Selected Tagline:
> "I'm not allowed to go to Home Depot anymore because I once made the
> mistake
>  of trying to build a deck."     - Hal Stern
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8458853
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: Runing out of Disk Space

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Jan 19, 2007 at 12:04:19PM -0800, nigel wrote:
> debug: failed to load Net::DNS::Resolver: Can't locate Net/DNS.pm in @INC

You should get Net::DNS properly installed.  It's good stuff.

> debug: config: SpamAssassin failed to parse line, skipping: ARE "Adult"
> Ruleset for SpamAssassin

Missing a comment or something.

> debug: bayes: no dbs present, cannot tie DB R/O:
> /home/postfix/.spamassassin/bayes_toks

There is no Bayes DB in that location.

> debug: bayes: new db, set db version 3 and 0 tokens

So it made one for you.

> debug: bayes: expiry check keep size, 0.75 * max: 112500
> debug: bayes: token count: 0, final goal reduction size: -112500
> debug: bayes: reduction goal of -112500 is under 1,000 tokens.  skipping expire.

You have no tokens since this is a new db and so it didn't do anything.

-- 
Randomly Selected Tagline:
"I'm not allowed to go to Home Depot anymore because I once made the mistake
 of trying to build a deck."     - Hal Stern

Re: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
here is the debug output

[postfix@lsr-gw1 postfix]$ sa-learn -D --force-expire
debug: SpamAssassin version 3.0.1
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/kerberos/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/postfix/bin', which doesn't exist, dropping.
debug: Final PATH set to:
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/21_leighton.cf
debug: config: read file /usr/share/spamassassin/22_leighton_porn.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/home/postfix/.spamassassin/user_prefs" for user prefs file
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: failed to load Net::DNS::Resolver: Can't locate Net/DNS.pm in @INC
(@INC contains: /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at
/usr/lib/perl5/site_perl/5.8.1/Mail/SpamAssassin/Plugin/URIDNSBL.pm line
113.

debug: plugin: registered
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8f11bac)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8ee344c)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8f11bac)
implements 'parse_config'
debug: config: SpamAssassin failed to parse line, skipping: ARE "Adult"
Ruleset for SpamAssassin
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x892fcf4)
inhibited further callbacks
debug: bayes: no dbs present, cannot tie DB R/O:
/home/postfix/.spamassassin/bayes_toks
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 27478 created
/home/postfix/.spamassassin/bayes.lock.lsr-gw1.leighton.com.27478
debug: lock: 27478 trying to get lock on /home/postfix/.spamassassin/bayes
with 0 retries
debug: lock: 27478 link to /home/postfix/.spamassassin/bayes.lock: link ok
debug: bayes: 27478 tie-ing to DB file R/W
/home/postfix/.spamassassin/bayes_toks
debug: bayes: 27478 tie-ing to DB file R/W
/home/postfix/.spamassassin/bayes_seen
debug: bayes: found bayes db version 0
debug: bayes: new db, set db version 3 and 0 tokens
debug: refresh: 27478 refresh /home/postfix/.spamassassin/bayes.lock
debug: bayes: expiry check keep size, 0.75 * max: 112500
debug: bayes: token count: 0, final goal reduction size: -112500
debug: bayes: reduction goal of -112500 is under 1,000 tokens.  skipping
expire.
debug: Syncing complete.
debug: bayes: 27478 untie-ing
debug: bayes: 27478 untie-ing db_toks
debug: bayes: 27478 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 27478 unlink /home/postfix/.spamassassin/bayes.lock




Theo Van Dinter-2 wrote:
> 
> On Fri, Jan 19, 2007 at 09:17:31AM -0800, nigel wrote:
>> i've just ran this and it did not delete any of the tokens.  i have saved
>> the
>> output (i used it in debug mode) if that will help
> 
> Feel free to pastebot the debug output.  FWIW, --force-expire doesn't
> guarantee any tokens will be expired, it just guarantees that SA will try.
> The whole expiry process is best effort.  "man sa-learn" has a lot of
> information about how it all works, btw.
> 
> -- 
> Randomly Selected Tagline:
> Yesterday it worked.
>  Today it is not working.
>  Windows is like that.                   - Windows Haiku
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8455579
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: Runing out of Disk Space

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Jan 19, 2007 at 09:17:31AM -0800, nigel wrote:
> i've just ran this and it did not delete any of the tokens.  i have saved the
> output (i used it in debug mode) if that will help

Feel free to pastebot the debug output.  FWIW, --force-expire doesn't
guarantee any tokens will be expired, it just guarantees that SA will try.
The whole expiry process is best effort.  "man sa-learn" has a lot of
information about how it all works, btw.

-- 
Randomly Selected Tagline:
Yesterday it worked.
 Today it is not working.
 Windows is like that.                   - Windows Haiku

RE: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
i've just ran this and it did not delete any of the tokens.  i have saved the
output (i used it in debug mode) if that will help

Nigel



nigel wrote:
> 
> ok
> 
> how long would you expect this to take?  its running on an old server
> which doesnt help :-)
> 
> Nigel
> 
> 
> 
> Martin.Hepworth wrote:
>> 
>> Nigel
>> 
>> Yes, but given you've got lots of expiring to do I suggested you run
>> the sa-learn by hand first, then you have some feedback for whats
>> happening, rather than MailScanner just waiting..
>> 
>> --
>> Martin Hepworth
>> Snr Systems Administrator
>> Solid State Logic
>> Tel: +44 (0)1865 842300
>> 
>>> -----Original Message-----
>>> From: nigel [mailto:nigel.robson@leighton.com]
>>> Sent: 19 January 2007 10:29
>>> To: users@spamassassin.apache.org
>>> Subject: RE: Runing out of Disk Space
>>>
>>>
>>> ok, first do i have to stop MailScanner? Secondly, if i make that
>> change i
>>> guess i would have to run "sa-learn --force-expire" to make it clean
>> up
>>> there and then?  if i didn't run that command it would do it after the
>>> time
>>> period set.
>>>
>>> am i correct here? :)
>>>
>>> Nigel
>>>
>>>
>>>
>>> Martin Hepworth-3 wrote:
>>> >
>>> > Nigel
>>> >
>>> > Then in your case you've not told anything to clean up the bayes
>>> > files...so yes try the inbuilt MailScanner way
>>> >
>>> > First time it may take some time as you've got so many files, so you
>>> > make wish to stop MailScanner, run "sa-learn --force-expire" (as the
>>> > appropriate user if non-root) and then restart MailScanner..
>>> >
>>> > --
>>> > Martin Hepworth
>>> > Snr Systems Administrator
>>> > Solid State Logic
>>> > Tel: +44 (0)1865 842300
>>> >
>>> >> -----Original Message-----
>>> >> From: nigel [mailto:nigel.robson@leighton.com]
>>> >> Sent: 19 January 2007 10:10
>>> >> To: users@spamassassin.apache.org
>>> >> Subject: RE: Runing out of Disk Space
>>> >>
>>> >>
>>> >> my mailscanner settings are slightly different
>>> >>
>>> >> Rebuild Bayes Every = 0
>>> >> Wait During Bayes Rebuild = no
>>> >>
>>> >> so if i change them to what you suggested this will clear them out?
>>> > also,
>>> >> does this effect mail delivery while it is doing it?
>>> >>
>>> >> Nigel
>>> >>
>>> >>
>>> >> Martin Hepworth-3 wrote:
>>> >> >
>>> >> > Nigel
>>> >> >
>>> >> > List is best..
>>> >> >
>>> >> > Commented out is fine - as in that's what I've got.. ;-)
>>> >> >
>>> >> > If you're other settings in MailScanner.conf are also as below
>> then
>>> >> > you'll have to use the cron method..
>>> >> >
>>> >> > --
>>> >> > Martin Hepworth
>>> >> > Snr Systems Administrator
>>> >> > Solid State Logic
>>> >> > Tel: +44 (0)1865 842300
>>> >> >
>>> >> >> -----Original Message-----
>>> >> >> From: Nigel Robson [mailto:nigel.robson@leighton.com]
>>> >> >> Sent: 19 January 2007 09:54
>>> >> >> To: Martin.Hepworth
>>> >> >> Subject: RE: Runing out of Disk Space
>>> >> >>
>>> >> >> Hi there Martin.  I'm not sure if I am meant to reply back to
>> you
>>> > or
>>> >> > the
>>> >> >> forum?
>>> >> >>
>>> >> >> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
>>> >> > commented
>>> >> >> out. Is this something that needs changing first before I use
>> what
>>> > you
>>> >> >> mentioned below?  I found this in
>>> > /etc/MailScanner/spam.assassin.conf
>>> >> >>
>>> >> >> Many thanks
>>> >> >>
>>> >> >> Nigel
>>> >> >>
>>> >> >> -----Original Message-----
>>> >> >> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
>>> >> >> Sent: 19 January 2007 09:48
>>> >> >> To: Nigel Robson; users@spamassassin.apache.org
>>> >> >> Subject: RE: Runing out of Disk Space
>>> >> >>
>>> >> >> Nigel
>>> >> >>
>>> >> >> Ideally this would be on the mailscanner list...
>>> >> >>
>>> >> >> There's a couple of ways  MailScanner can expire the bayes
>> tokens
>>> >> > down,
>>> >> >> and which one works for you seems to be hit and miss from my
>>> >> >> experience..
>>> >> >>
>>> >> >> 1st method is to use the 'internal' MailScanner method. In
>>> >> >> MailScanner.conf, make sure
>>> >> >>
>>> >> >> Rebuild Bayes Every = 86400
>>> >> >> Wait During Bayes Rebuild = yes
>>> >> >>
>>> >> >> If you've already got this and things are *not* clearing down
>> then
>>> >> >> you'll have to use the 'standard' spamassassin way of doing
>> this.
>>> >> >>
>>> >> >> Run "sa-learn --force-expire" via a cron job every day. NB if
>> your
>>> >> >> MailScanner is running as non-root (eg postfix, mailnull) then
>> make
>>> >> > sure
>>> >> >> the cron job runs as this user otherwise the bayes file
>> permissions
>>> >> > can
>>> >> >> get set incorrectly.
>>> >> >>
>>> >> >> --
>>> >> >> Martin Hepworth
>>> >> >> Snr Systems Administrator
>>> >> >> Solid State Logic
>>> >> >> Tel: +44 (0)1865 842300
>>> >> >>
>>> >> >> > -----Original Message-----
>>> >> >> > From: nigel [mailto:nigel.robson@leighton.com]
>>> >> >> > Sent: 19 January 2007 09:26
>>> >> >> > To: users@spamassassin.apache.org
>>> >> >> > Subject: Runing out of Disk Space
>>> >> >> >
>>> >> >> >
>>> >> >> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on
>> one
>>> > of
>>> >> > our
>>> >> >> > servers is running low and it seems that
>>> >> >> > /var/spool/MailScanner/spamassassin
>>> >> >> > is using 4.4GB.  it is full of items like this
>>> >> >> >
>>> >> >> > bayes_toks.expire7000
>>> >> >> >
>>> >> >> > i roughly know what they do but is there a way to clear this
>> out?
>>> > i
>>> >> >> > thought
>>> >> >> > some were automatically removed after a while?
>>> >> >> >
>>> >> >> > any help would be grateful
>>> >> >> >
>>> >> >> > many thanks
>>> >> >> >
>>> >> >> > Nigel Robson
>>> >> >> > --
>>> >> >> > View this message in context:
>>> >> >> http://www.nabble.com/Runing-out-of-Disk-
>>> >> >> > Space-tf3039002.html#a8446224
>>> >> >> > Sent from the SpamAssassin - Users mailing list archive at
>>> >> > Nabble.com.
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >
>> **********************************************************************
>>> >> >> Confidentiality : This e-mail and any attachments are intended
>> for
>>> > the
>>> >> >> addressee only and may be confidential. If they come to you in
>>> > error
>>> >> >> you must take no action based on them, nor must you copy or show
>>> > them
>>> >> >> to anyone. Please advise the sender by replying to this e-mail
>>> >> >> immediately and then delete the original from your computer.
>>> >> >>
>>> >> >> Opinion : Any opinions expressed in this e-mail are entirely
>> those
>>> > of
>>> >> >> the author and unless specifically stated to the contrary, are
>> not
>>> >> >> necessarily those of the author's employer.
>>> >> >>
>>> >> >> Security Warning : Internet e-mail is not necessarily a secure
>>> >> >> communications medium and can be subject to data corruption. We
>>> > advise
>>> >> >> that you consider this fact when e-mailing us.
>>> >> >>
>>> >> >> Viruses : We have taken steps to ensure that this e-mail and any
>>> >> >> attachments are free from known viruses but in keeping with good
>>> >> >> computing practice, you should ensure that they are virus free.
>>> >> >>
>>> >> >> Red Lion 49 Ltd T/A Solid State Logic
>>> >> >> Registered as a limited company in England and Wales
>>> >> >> (Company No:5362730)
>>> >> >> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5
>> 1RU,
>>> >> >> United Kingdom
>>> >> >>
>>> >
>> **********************************************************************
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >
>> **********************************************************************
>>> >> > Confidentiality : This e-mail and any attachments are intended
>> for
>>> > the
>>> >> > addressee only and may be confidential. If they come to you in
>> error
>>> >> > you must take no action based on them, nor must you copy or show
>>> > them
>>> >> > to anyone. Please advise the sender by replying to this e-mail
>>> >> > immediately and then delete the original from your computer.
>>> >> >
>>> >> > Opinion : Any opinions expressed in this e-mail are entirely
>> those
>>> > of
>>> >> > the author and unless specifically stated to the contrary, are
>> not
>>> >> > necessarily those of the author's employer.
>>> >> >
>>> >> > Security Warning : Internet e-mail is not necessarily a secure
>>> >> > communications medium and can be subject to data corruption. We
>>> > advise
>>> >> > that you consider this fact when e-mailing us.
>>> >> >
>>> >> > Viruses : We have taken steps to ensure that this e-mail and any
>>> >> > attachments are free from known viruses but in keeping with good
>>> >> > computing practice, you should ensure that they are virus free.
>>> >> >
>>> >> > Red Lion 49 Ltd T/A Solid State Logic
>>> >> > Registered as a limited company in England and Wales
>>> >> > (Company No:5362730)
>>> >> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>>> >> > United Kingdom
>>> >> >
>>> >
>> **********************************************************************
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> > http://www.nabble.com/Runing-out-of-Disk-
>>> >> Space-tf3039002.html#a8446674
>>> >> Sent from the SpamAssassin - Users mailing list archive at
>> Nabble.com.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>> **********************************************************************
>>> > Confidentiality : This e-mail and any attachments are intended for
>> the
>>> > addressee only and may be confidential. If they come to you in error
>>> > you must take no action based on them, nor must you copy or show
>> them
>>> > to anyone. Please advise the sender by replying to this e-mail
>>> > immediately and then delete the original from your computer.
>>> >
>>> > Opinion : Any opinions expressed in this e-mail are entirely those
>> of
>>> > the author and unless specifically stated to the contrary, are not
>>> > necessarily those of the author's employer.
>>> >
>>> > Security Warning : Internet e-mail is not necessarily a secure
>>> > communications medium and can be subject to data corruption. We
>> advise
>>> > that you consider this fact when e-mailing us.
>>> >
>>> > Viruses : We have taken steps to ensure that this e-mail and any
>>> > attachments are free from known viruses but in keeping with good
>>> > computing practice, you should ensure that they are virus free.
>>> >
>>> > Red Lion 49 Ltd T/A Solid State Logic
>>> > Registered as a limited company in England and Wales
>>> > (Company No:5362730)
>>> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>>> > United Kingdom
>>> >
>> **********************************************************************
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>> http://www.nabble.com/Runing-out-of-Disk-
>>> Space-tf3039002.html#a8446884
>>> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>> 
>> **********************************************************************
>> Confidentiality : This e-mail and any attachments are intended for the 
>> addressee only and may be confidential. If they come to you in error 
>> you must take no action based on them, nor must you copy or show them 
>> to anyone. Please advise the sender by replying to this e-mail 
>> immediately and then delete the original from your computer.
>> 
>> Opinion : Any opinions expressed in this e-mail are entirely those of 
>> the author and unless specifically stated to the contrary, are not 
>> necessarily those of the author's employer.
>> 
>> Security Warning : Internet e-mail is not necessarily a secure 
>> communications medium and can be subject to data corruption. We advise 
>> that you consider this fact when e-mailing us. 
>> 
>> Viruses : We have taken steps to ensure that this e-mail and any 
>> attachments are free from known viruses but in keeping with good 
>> computing practice, you should ensure that they are virus free.
>> 
>> Red Lion 49 Ltd T/A Solid State Logic
>> Registered as a limited company in England and Wales 
>> (Company No:5362730)
>> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
>> United Kingdom
>> **********************************************************************
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8452770
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
ok

how long would you expect this to take?  its running on an old server which
doesnt help :-)

Nigel



Martin.Hepworth wrote:
> 
> Nigel
> 
> Yes, but given you've got lots of expiring to do I suggested you run
> the sa-learn by hand first, then you have some feedback for whats
> happening, rather than MailScanner just waiting..
> 
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
> 
>> -----Original Message-----
>> From: nigel [mailto:nigel.robson@leighton.com]
>> Sent: 19 January 2007 10:29
>> To: users@spamassassin.apache.org
>> Subject: RE: Runing out of Disk Space
>>
>>
>> ok, first do i have to stop MailScanner? Secondly, if i make that
> change i
>> guess i would have to run "sa-learn --force-expire" to make it clean
> up
>> there and then?  if i didn't run that command it would do it after the
>> time
>> period set.
>>
>> am i correct here? :)
>>
>> Nigel
>>
>>
>>
>> Martin Hepworth-3 wrote:
>> >
>> > Nigel
>> >
>> > Then in your case you've not told anything to clean up the bayes
>> > files...so yes try the inbuilt MailScanner way
>> >
>> > First time it may take some time as you've got so many files, so you
>> > make wish to stop MailScanner, run "sa-learn --force-expire" (as the
>> > appropriate user if non-root) and then restart MailScanner..
>> >
>> > --
>> > Martin Hepworth
>> > Snr Systems Administrator
>> > Solid State Logic
>> > Tel: +44 (0)1865 842300
>> >
>> >> -----Original Message-----
>> >> From: nigel [mailto:nigel.robson@leighton.com]
>> >> Sent: 19 January 2007 10:10
>> >> To: users@spamassassin.apache.org
>> >> Subject: RE: Runing out of Disk Space
>> >>
>> >>
>> >> my mailscanner settings are slightly different
>> >>
>> >> Rebuild Bayes Every = 0
>> >> Wait During Bayes Rebuild = no
>> >>
>> >> so if i change them to what you suggested this will clear them out?
>> > also,
>> >> does this effect mail delivery while it is doing it?
>> >>
>> >> Nigel
>> >>
>> >>
>> >> Martin Hepworth-3 wrote:
>> >> >
>> >> > Nigel
>> >> >
>> >> > List is best..
>> >> >
>> >> > Commented out is fine - as in that's what I've got.. ;-)
>> >> >
>> >> > If you're other settings in MailScanner.conf are also as below
> then
>> >> > you'll have to use the cron method..
>> >> >
>> >> > --
>> >> > Martin Hepworth
>> >> > Snr Systems Administrator
>> >> > Solid State Logic
>> >> > Tel: +44 (0)1865 842300
>> >> >
>> >> >> -----Original Message-----
>> >> >> From: Nigel Robson [mailto:nigel.robson@leighton.com]
>> >> >> Sent: 19 January 2007 09:54
>> >> >> To: Martin.Hepworth
>> >> >> Subject: RE: Runing out of Disk Space
>> >> >>
>> >> >> Hi there Martin.  I'm not sure if I am meant to reply back to
> you
>> > or
>> >> > the
>> >> >> forum?
>> >> >>
>> >> >> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
>> >> > commented
>> >> >> out. Is this something that needs changing first before I use
> what
>> > you
>> >> >> mentioned below?  I found this in
>> > /etc/MailScanner/spam.assassin.conf
>> >> >>
>> >> >> Many thanks
>> >> >>
>> >> >> Nigel
>> >> >>
>> >> >> -----Original Message-----
>> >> >> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
>> >> >> Sent: 19 January 2007 09:48
>> >> >> To: Nigel Robson; users@spamassassin.apache.org
>> >> >> Subject: RE: Runing out of Disk Space
>> >> >>
>> >> >> Nigel
>> >> >>
>> >> >> Ideally this would be on the mailscanner list...
>> >> >>
>> >> >> There's a couple of ways  MailScanner can expire the bayes
> tokens
>> >> > down,
>> >> >> and which one works for you seems to be hit and miss from my
>> >> >> experience..
>> >> >>
>> >> >> 1st method is to use the 'internal' MailScanner method. In
>> >> >> MailScanner.conf, make sure
>> >> >>
>> >> >> Rebuild Bayes Every = 86400
>> >> >> Wait During Bayes Rebuild = yes
>> >> >>
>> >> >> If you've already got this and things are *not* clearing down
> then
>> >> >> you'll have to use the 'standard' spamassassin way of doing
> this.
>> >> >>
>> >> >> Run "sa-learn --force-expire" via a cron job every day. NB if
> your
>> >> >> MailScanner is running as non-root (eg postfix, mailnull) then
> make
>> >> > sure
>> >> >> the cron job runs as this user otherwise the bayes file
> permissions
>> >> > can
>> >> >> get set incorrectly.
>> >> >>
>> >> >> --
>> >> >> Martin Hepworth
>> >> >> Snr Systems Administrator
>> >> >> Solid State Logic
>> >> >> Tel: +44 (0)1865 842300
>> >> >>
>> >> >> > -----Original Message-----
>> >> >> > From: nigel [mailto:nigel.robson@leighton.com]
>> >> >> > Sent: 19 January 2007 09:26
>> >> >> > To: users@spamassassin.apache.org
>> >> >> > Subject: Runing out of Disk Space
>> >> >> >
>> >> >> >
>> >> >> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on
> one
>> > of
>> >> > our
>> >> >> > servers is running low and it seems that
>> >> >> > /var/spool/MailScanner/spamassassin
>> >> >> > is using 4.4GB.  it is full of items like this
>> >> >> >
>> >> >> > bayes_toks.expire7000
>> >> >> >
>> >> >> > i roughly know what they do but is there a way to clear this
> out?
>> > i
>> >> >> > thought
>> >> >> > some were automatically removed after a while?
>> >> >> >
>> >> >> > any help would be grateful
>> >> >> >
>> >> >> > many thanks
>> >> >> >
>> >> >> > Nigel Robson
>> >> >> > --
>> >> >> > View this message in context:
>> >> >> http://www.nabble.com/Runing-out-of-Disk-
>> >> >> > Space-tf3039002.html#a8446224
>> >> >> > Sent from the SpamAssassin - Users mailing list archive at
>> >> > Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >
> **********************************************************************
>> >> >> Confidentiality : This e-mail and any attachments are intended
> for
>> > the
>> >> >> addressee only and may be confidential. If they come to you in
>> > error
>> >> >> you must take no action based on them, nor must you copy or show
>> > them
>> >> >> to anyone. Please advise the sender by replying to this e-mail
>> >> >> immediately and then delete the original from your computer.
>> >> >>
>> >> >> Opinion : Any opinions expressed in this e-mail are entirely
> those
>> > of
>> >> >> the author and unless specifically stated to the contrary, are
> not
>> >> >> necessarily those of the author's employer.
>> >> >>
>> >> >> Security Warning : Internet e-mail is not necessarily a secure
>> >> >> communications medium and can be subject to data corruption. We
>> > advise
>> >> >> that you consider this fact when e-mailing us.
>> >> >>
>> >> >> Viruses : We have taken steps to ensure that this e-mail and any
>> >> >> attachments are free from known viruses but in keeping with good
>> >> >> computing practice, you should ensure that they are virus free.
>> >> >>
>> >> >> Red Lion 49 Ltd T/A Solid State Logic
>> >> >> Registered as a limited company in England and Wales
>> >> >> (Company No:5362730)
>> >> >> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5
> 1RU,
>> >> >> United Kingdom
>> >> >>
>> >
> **********************************************************************
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >
> **********************************************************************
>> >> > Confidentiality : This e-mail and any attachments are intended
> for
>> > the
>> >> > addressee only and may be confidential. If they come to you in
> error
>> >> > you must take no action based on them, nor must you copy or show
>> > them
>> >> > to anyone. Please advise the sender by replying to this e-mail
>> >> > immediately and then delete the original from your computer.
>> >> >
>> >> > Opinion : Any opinions expressed in this e-mail are entirely
> those
>> > of
>> >> > the author and unless specifically stated to the contrary, are
> not
>> >> > necessarily those of the author's employer.
>> >> >
>> >> > Security Warning : Internet e-mail is not necessarily a secure
>> >> > communications medium and can be subject to data corruption. We
>> > advise
>> >> > that you consider this fact when e-mailing us.
>> >> >
>> >> > Viruses : We have taken steps to ensure that this e-mail and any
>> >> > attachments are free from known viruses but in keeping with good
>> >> > computing practice, you should ensure that they are virus free.
>> >> >
>> >> > Red Lion 49 Ltd T/A Solid State Logic
>> >> > Registered as a limited company in England and Wales
>> >> > (Company No:5362730)
>> >> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>> >> > United Kingdom
>> >> >
>> >
> **********************************************************************
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> > http://www.nabble.com/Runing-out-of-Disk-
>> >> Space-tf3039002.html#a8446674
>> >> Sent from the SpamAssassin - Users mailing list archive at
> Nabble.com.
>> >
>> >
>> >
>> >
>> >
>> >
> **********************************************************************
>> > Confidentiality : This e-mail and any attachments are intended for
> the
>> > addressee only and may be confidential. If they come to you in error
>> > you must take no action based on them, nor must you copy or show
> them
>> > to anyone. Please advise the sender by replying to this e-mail
>> > immediately and then delete the original from your computer.
>> >
>> > Opinion : Any opinions expressed in this e-mail are entirely those
> of
>> > the author and unless specifically stated to the contrary, are not
>> > necessarily those of the author's employer.
>> >
>> > Security Warning : Internet e-mail is not necessarily a secure
>> > communications medium and can be subject to data corruption. We
> advise
>> > that you consider this fact when e-mailing us.
>> >
>> > Viruses : We have taken steps to ensure that this e-mail and any
>> > attachments are free from known viruses but in keeping with good
>> > computing practice, you should ensure that they are virus free.
>> >
>> > Red Lion 49 Ltd T/A Solid State Logic
>> > Registered as a limited company in England and Wales
>> > (Company No:5362730)
>> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>> > United Kingdom
>> >
> **********************************************************************
>> >
>> >
>> >
>>
>> --
>> View this message in context:
> http://www.nabble.com/Runing-out-of-Disk-
>> Space-tf3039002.html#a8446884
>> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> **********************************************************************
> Confidentiality : This e-mail and any attachments are intended for the 
> addressee only and may be confidential. If they come to you in error 
> you must take no action based on them, nor must you copy or show them 
> to anyone. Please advise the sender by replying to this e-mail 
> immediately and then delete the original from your computer.
> 
> Opinion : Any opinions expressed in this e-mail are entirely those of 
> the author and unless specifically stated to the contrary, are not 
> necessarily those of the author's employer.
> 
> Security Warning : Internet e-mail is not necessarily a secure 
> communications medium and can be subject to data corruption. We advise 
> that you consider this fact when e-mailing us. 
> 
> Viruses : We have taken steps to ensure that this e-mail and any 
> attachments are free from known viruses but in keeping with good 
> computing practice, you should ensure that they are virus free.
> 
> Red Lion 49 Ltd T/A Solid State Logic
> Registered as a limited company in England and Wales 
> (Company No:5362730)
> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
> United Kingdom
> **********************************************************************
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8447124
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: Runing out of Disk Space

Posted by "Martin.Hepworth" <ma...@solidstatelogic.com>.
Nigel

Yes, but given you've got lots of expiring to do I suggested you run
the sa-learn by hand first, then you have some feedback for whats
happening, rather than MailScanner just waiting..

--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: nigel [mailto:nigel.robson@leighton.com]
> Sent: 19 January 2007 10:29
> To: users@spamassassin.apache.org
> Subject: RE: Runing out of Disk Space
>
>
> ok, first do i have to stop MailScanner? Secondly, if i make that
change i
> guess i would have to run "sa-learn --force-expire" to make it clean
up
> there and then?  if i didn't run that command it would do it after the
> time
> period set.
>
> am i correct here? :)
>
> Nigel
>
>
>
> Martin Hepworth-3 wrote:
> >
> > Nigel
> >
> > Then in your case you've not told anything to clean up the bayes
> > files...so yes try the inbuilt MailScanner way
> >
> > First time it may take some time as you've got so many files, so you
> > make wish to stop MailScanner, run "sa-learn --force-expire" (as the
> > appropriate user if non-root) and then restart MailScanner..
> >
> > --
> > Martin Hepworth
> > Snr Systems Administrator
> > Solid State Logic
> > Tel: +44 (0)1865 842300
> >
> >> -----Original Message-----
> >> From: nigel [mailto:nigel.robson@leighton.com]
> >> Sent: 19 January 2007 10:10
> >> To: users@spamassassin.apache.org
> >> Subject: RE: Runing out of Disk Space
> >>
> >>
> >> my mailscanner settings are slightly different
> >>
> >> Rebuild Bayes Every = 0
> >> Wait During Bayes Rebuild = no
> >>
> >> so if i change them to what you suggested this will clear them out?
> > also,
> >> does this effect mail delivery while it is doing it?
> >>
> >> Nigel
> >>
> >>
> >> Martin Hepworth-3 wrote:
> >> >
> >> > Nigel
> >> >
> >> > List is best..
> >> >
> >> > Commented out is fine - as in that's what I've got.. ;-)
> >> >
> >> > If you're other settings in MailScanner.conf are also as below
then
> >> > you'll have to use the cron method..
> >> >
> >> > --
> >> > Martin Hepworth
> >> > Snr Systems Administrator
> >> > Solid State Logic
> >> > Tel: +44 (0)1865 842300
> >> >
> >> >> -----Original Message-----
> >> >> From: Nigel Robson [mailto:nigel.robson@leighton.com]
> >> >> Sent: 19 January 2007 09:54
> >> >> To: Martin.Hepworth
> >> >> Subject: RE: Runing out of Disk Space
> >> >>
> >> >> Hi there Martin.  I'm not sure if I am meant to reply back to
you
> > or
> >> > the
> >> >> forum?
> >> >>
> >> >> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
> >> > commented
> >> >> out. Is this something that needs changing first before I use
what
> > you
> >> >> mentioned below?  I found this in
> > /etc/MailScanner/spam.assassin.conf
> >> >>
> >> >> Many thanks
> >> >>
> >> >> Nigel
> >> >>
> >> >> -----Original Message-----
> >> >> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
> >> >> Sent: 19 January 2007 09:48
> >> >> To: Nigel Robson; users@spamassassin.apache.org
> >> >> Subject: RE: Runing out of Disk Space
> >> >>
> >> >> Nigel
> >> >>
> >> >> Ideally this would be on the mailscanner list...
> >> >>
> >> >> There's a couple of ways  MailScanner can expire the bayes
tokens
> >> > down,
> >> >> and which one works for you seems to be hit and miss from my
> >> >> experience..
> >> >>
> >> >> 1st method is to use the 'internal' MailScanner method. In
> >> >> MailScanner.conf, make sure
> >> >>
> >> >> Rebuild Bayes Every = 86400
> >> >> Wait During Bayes Rebuild = yes
> >> >>
> >> >> If you've already got this and things are *not* clearing down
then
> >> >> you'll have to use the 'standard' spamassassin way of doing
this.
> >> >>
> >> >> Run "sa-learn --force-expire" via a cron job every day. NB if
your
> >> >> MailScanner is running as non-root (eg postfix, mailnull) then
make
> >> > sure
> >> >> the cron job runs as this user otherwise the bayes file
permissions
> >> > can
> >> >> get set incorrectly.
> >> >>
> >> >> --
> >> >> Martin Hepworth
> >> >> Snr Systems Administrator
> >> >> Solid State Logic
> >> >> Tel: +44 (0)1865 842300
> >> >>
> >> >> > -----Original Message-----
> >> >> > From: nigel [mailto:nigel.robson@leighton.com]
> >> >> > Sent: 19 January 2007 09:26
> >> >> > To: users@spamassassin.apache.org
> >> >> > Subject: Runing out of Disk Space
> >> >> >
> >> >> >
> >> >> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on
one
> > of
> >> > our
> >> >> > servers is running low and it seems that
> >> >> > /var/spool/MailScanner/spamassassin
> >> >> > is using 4.4GB.  it is full of items like this
> >> >> >
> >> >> > bayes_toks.expire7000
> >> >> >
> >> >> > i roughly know what they do but is there a way to clear this
out?
> > i
> >> >> > thought
> >> >> > some were automatically removed after a while?
> >> >> >
> >> >> > any help would be grateful
> >> >> >
> >> >> > many thanks
> >> >> >
> >> >> > Nigel Robson
> >> >> > --
> >> >> > View this message in context:
> >> >> http://www.nabble.com/Runing-out-of-Disk-
> >> >> > Space-tf3039002.html#a8446224
> >> >> > Sent from the SpamAssassin - Users mailing list archive at
> >> > Nabble.com.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >
**********************************************************************
> >> >> Confidentiality : This e-mail and any attachments are intended
for
> > the
> >> >> addressee only and may be confidential. If they come to you in
> > error
> >> >> you must take no action based on them, nor must you copy or show
> > them
> >> >> to anyone. Please advise the sender by replying to this e-mail
> >> >> immediately and then delete the original from your computer.
> >> >>
> >> >> Opinion : Any opinions expressed in this e-mail are entirely
those
> > of
> >> >> the author and unless specifically stated to the contrary, are
not
> >> >> necessarily those of the author's employer.
> >> >>
> >> >> Security Warning : Internet e-mail is not necessarily a secure
> >> >> communications medium and can be subject to data corruption. We
> > advise
> >> >> that you consider this fact when e-mailing us.
> >> >>
> >> >> Viruses : We have taken steps to ensure that this e-mail and any
> >> >> attachments are free from known viruses but in keeping with good
> >> >> computing practice, you should ensure that they are virus free.
> >> >>
> >> >> Red Lion 49 Ltd T/A Solid State Logic
> >> >> Registered as a limited company in England and Wales
> >> >> (Company No:5362730)
> >> >> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5
1RU,
> >> >> United Kingdom
> >> >>
> >
**********************************************************************
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >
**********************************************************************
> >> > Confidentiality : This e-mail and any attachments are intended
for
> > the
> >> > addressee only and may be confidential. If they come to you in
error
> >> > you must take no action based on them, nor must you copy or show
> > them
> >> > to anyone. Please advise the sender by replying to this e-mail
> >> > immediately and then delete the original from your computer.
> >> >
> >> > Opinion : Any opinions expressed in this e-mail are entirely
those
> > of
> >> > the author and unless specifically stated to the contrary, are
not
> >> > necessarily those of the author's employer.
> >> >
> >> > Security Warning : Internet e-mail is not necessarily a secure
> >> > communications medium and can be subject to data corruption. We
> > advise
> >> > that you consider this fact when e-mailing us.
> >> >
> >> > Viruses : We have taken steps to ensure that this e-mail and any
> >> > attachments are free from known viruses but in keeping with good
> >> > computing practice, you should ensure that they are virus free.
> >> >
> >> > Red Lion 49 Ltd T/A Solid State Logic
> >> > Registered as a limited company in England and Wales
> >> > (Company No:5362730)
> >> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
> >> > United Kingdom
> >> >
> >
**********************************************************************
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> > http://www.nabble.com/Runing-out-of-Disk-
> >> Space-tf3039002.html#a8446674
> >> Sent from the SpamAssassin - Users mailing list archive at
Nabble.com.
> >
> >
> >
> >
> >
> >
**********************************************************************
> > Confidentiality : This e-mail and any attachments are intended for
the
> > addressee only and may be confidential. If they come to you in error
> > you must take no action based on them, nor must you copy or show
them
> > to anyone. Please advise the sender by replying to this e-mail
> > immediately and then delete the original from your computer.
> >
> > Opinion : Any opinions expressed in this e-mail are entirely those
of
> > the author and unless specifically stated to the contrary, are not
> > necessarily those of the author's employer.
> >
> > Security Warning : Internet e-mail is not necessarily a secure
> > communications medium and can be subject to data corruption. We
advise
> > that you consider this fact when e-mailing us.
> >
> > Viruses : We have taken steps to ensure that this e-mail and any
> > attachments are free from known viruses but in keeping with good
> > computing practice, you should ensure that they are virus free.
> >
> > Red Lion 49 Ltd T/A Solid State Logic
> > Registered as a limited company in England and Wales
> > (Company No:5362730)
> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
> > United Kingdom
> >
**********************************************************************
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Runing-out-of-Disk-
> Space-tf3039002.html#a8446884
> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.





**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.

Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.

Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 

Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************


RE: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
ok, first do i have to stop MailScanner? Secondly, if i make that change i
guess i would have to run "sa-learn --force-expire" to make it clean up
there and then?  if i didn't run that command it would do it after the time
period set.

am i correct here? :)

Nigel



Martin Hepworth-3 wrote:
> 
> Nigel
> 
> Then in your case you've not told anything to clean up the bayes
> files...so yes try the inbuilt MailScanner way
> 
> First time it may take some time as you've got so many files, so you
> make wish to stop MailScanner, run "sa-learn --force-expire" (as the
> appropriate user if non-root) and then restart MailScanner..
> 
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
> 
>> -----Original Message-----
>> From: nigel [mailto:nigel.robson@leighton.com]
>> Sent: 19 January 2007 10:10
>> To: users@spamassassin.apache.org
>> Subject: RE: Runing out of Disk Space
>>
>>
>> my mailscanner settings are slightly different
>>
>> Rebuild Bayes Every = 0
>> Wait During Bayes Rebuild = no
>>
>> so if i change them to what you suggested this will clear them out?
> also,
>> does this effect mail delivery while it is doing it?
>>
>> Nigel
>>
>>
>> Martin Hepworth-3 wrote:
>> >
>> > Nigel
>> >
>> > List is best..
>> >
>> > Commented out is fine - as in that's what I've got.. ;-)
>> >
>> > If you're other settings in MailScanner.conf are also as below then
>> > you'll have to use the cron method..
>> >
>> > --
>> > Martin Hepworth
>> > Snr Systems Administrator
>> > Solid State Logic
>> > Tel: +44 (0)1865 842300
>> >
>> >> -----Original Message-----
>> >> From: Nigel Robson [mailto:nigel.robson@leighton.com]
>> >> Sent: 19 January 2007 09:54
>> >> To: Martin.Hepworth
>> >> Subject: RE: Runing out of Disk Space
>> >>
>> >> Hi there Martin.  I'm not sure if I am meant to reply back to you
> or
>> > the
>> >> forum?
>> >>
>> >> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
>> > commented
>> >> out. Is this something that needs changing first before I use what
> you
>> >> mentioned below?  I found this in
> /etc/MailScanner/spam.assassin.conf
>> >>
>> >> Many thanks
>> >>
>> >> Nigel
>> >>
>> >> -----Original Message-----
>> >> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
>> >> Sent: 19 January 2007 09:48
>> >> To: Nigel Robson; users@spamassassin.apache.org
>> >> Subject: RE: Runing out of Disk Space
>> >>
>> >> Nigel
>> >>
>> >> Ideally this would be on the mailscanner list...
>> >>
>> >> There's a couple of ways  MailScanner can expire the bayes tokens
>> > down,
>> >> and which one works for you seems to be hit and miss from my
>> >> experience..
>> >>
>> >> 1st method is to use the 'internal' MailScanner method. In
>> >> MailScanner.conf, make sure
>> >>
>> >> Rebuild Bayes Every = 86400
>> >> Wait During Bayes Rebuild = yes
>> >>
>> >> If you've already got this and things are *not* clearing down then
>> >> you'll have to use the 'standard' spamassassin way of doing this.
>> >>
>> >> Run "sa-learn --force-expire" via a cron job every day. NB if your
>> >> MailScanner is running as non-root (eg postfix, mailnull) then make
>> > sure
>> >> the cron job runs as this user otherwise the bayes file permissions
>> > can
>> >> get set incorrectly.
>> >>
>> >> --
>> >> Martin Hepworth
>> >> Snr Systems Administrator
>> >> Solid State Logic
>> >> Tel: +44 (0)1865 842300
>> >>
>> >> > -----Original Message-----
>> >> > From: nigel [mailto:nigel.robson@leighton.com]
>> >> > Sent: 19 January 2007 09:26
>> >> > To: users@spamassassin.apache.org
>> >> > Subject: Runing out of Disk Space
>> >> >
>> >> >
>> >> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on one
> of
>> > our
>> >> > servers is running low and it seems that
>> >> > /var/spool/MailScanner/spamassassin
>> >> > is using 4.4GB.  it is full of items like this
>> >> >
>> >> > bayes_toks.expire7000
>> >> >
>> >> > i roughly know what they do but is there a way to clear this out?
> i
>> >> > thought
>> >> > some were automatically removed after a while?
>> >> >
>> >> > any help would be grateful
>> >> >
>> >> > many thanks
>> >> >
>> >> > Nigel Robson
>> >> > --
>> >> > View this message in context:
>> >> http://www.nabble.com/Runing-out-of-Disk-
>> >> > Space-tf3039002.html#a8446224
>> >> > Sent from the SpamAssassin - Users mailing list archive at
>> > Nabble.com.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
> **********************************************************************
>> >> Confidentiality : This e-mail and any attachments are intended for
> the
>> >> addressee only and may be confidential. If they come to you in
> error
>> >> you must take no action based on them, nor must you copy or show
> them
>> >> to anyone. Please advise the sender by replying to this e-mail
>> >> immediately and then delete the original from your computer.
>> >>
>> >> Opinion : Any opinions expressed in this e-mail are entirely those
> of
>> >> the author and unless specifically stated to the contrary, are not
>> >> necessarily those of the author's employer.
>> >>
>> >> Security Warning : Internet e-mail is not necessarily a secure
>> >> communications medium and can be subject to data corruption. We
> advise
>> >> that you consider this fact when e-mailing us.
>> >>
>> >> Viruses : We have taken steps to ensure that this e-mail and any
>> >> attachments are free from known viruses but in keeping with good
>> >> computing practice, you should ensure that they are virus free.
>> >>
>> >> Red Lion 49 Ltd T/A Solid State Logic
>> >> Registered as a limited company in England and Wales
>> >> (Company No:5362730)
>> >> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>> >> United Kingdom
>> >>
> **********************************************************************
>> >
>> >
>> >
>> >
>> >
>> >
> **********************************************************************
>> > Confidentiality : This e-mail and any attachments are intended for
> the
>> > addressee only and may be confidential. If they come to you in error
>> > you must take no action based on them, nor must you copy or show
> them
>> > to anyone. Please advise the sender by replying to this e-mail
>> > immediately and then delete the original from your computer.
>> >
>> > Opinion : Any opinions expressed in this e-mail are entirely those
> of
>> > the author and unless specifically stated to the contrary, are not
>> > necessarily those of the author's employer.
>> >
>> > Security Warning : Internet e-mail is not necessarily a secure
>> > communications medium and can be subject to data corruption. We
> advise
>> > that you consider this fact when e-mailing us.
>> >
>> > Viruses : We have taken steps to ensure that this e-mail and any
>> > attachments are free from known viruses but in keeping with good
>> > computing practice, you should ensure that they are virus free.
>> >
>> > Red Lion 49 Ltd T/A Solid State Logic
>> > Registered as a limited company in England and Wales
>> > (Company No:5362730)
>> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>> > United Kingdom
>> >
> **********************************************************************
>> >
>> >
>> >
>>
>> --
>> View this message in context:
> http://www.nabble.com/Runing-out-of-Disk-
>> Space-tf3039002.html#a8446674
>> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> **********************************************************************
> Confidentiality : This e-mail and any attachments are intended for the 
> addressee only and may be confidential. If they come to you in error 
> you must take no action based on them, nor must you copy or show them 
> to anyone. Please advise the sender by replying to this e-mail 
> immediately and then delete the original from your computer.
> 
> Opinion : Any opinions expressed in this e-mail are entirely those of 
> the author and unless specifically stated to the contrary, are not 
> necessarily those of the author's employer.
> 
> Security Warning : Internet e-mail is not necessarily a secure 
> communications medium and can be subject to data corruption. We advise 
> that you consider this fact when e-mailing us. 
> 
> Viruses : We have taken steps to ensure that this e-mail and any 
> attachments are free from known viruses but in keeping with good 
> computing practice, you should ensure that they are virus free.
> 
> Red Lion 49 Ltd T/A Solid State Logic
> Registered as a limited company in England and Wales 
> (Company No:5362730)
> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
> United Kingdom
> **********************************************************************
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8446884
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: Runing out of Disk Space

Posted by "Martin.Hepworth" <ma...@solidstatelogic.com>.
Nigel

Then in your case you've not told anything to clean up the bayes
files...so yes try the inbuilt MailScanner way

First time it may take some time as you've got so many files, so you
make wish to stop MailScanner, run "sa-learn --force-expire" (as the
appropriate user if non-root) and then restart MailScanner..

--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: nigel [mailto:nigel.robson@leighton.com]
> Sent: 19 January 2007 10:10
> To: users@spamassassin.apache.org
> Subject: RE: Runing out of Disk Space
>
>
> my mailscanner settings are slightly different
>
> Rebuild Bayes Every = 0
> Wait During Bayes Rebuild = no
>
> so if i change them to what you suggested this will clear them out?
also,
> does this effect mail delivery while it is doing it?
>
> Nigel
>
>
> Martin Hepworth-3 wrote:
> >
> > Nigel
> >
> > List is best..
> >
> > Commented out is fine - as in that's what I've got.. ;-)
> >
> > If you're other settings in MailScanner.conf are also as below then
> > you'll have to use the cron method..
> >
> > --
> > Martin Hepworth
> > Snr Systems Administrator
> > Solid State Logic
> > Tel: +44 (0)1865 842300
> >
> >> -----Original Message-----
> >> From: Nigel Robson [mailto:nigel.robson@leighton.com]
> >> Sent: 19 January 2007 09:54
> >> To: Martin.Hepworth
> >> Subject: RE: Runing out of Disk Space
> >>
> >> Hi there Martin.  I'm not sure if I am meant to reply back to you
or
> > the
> >> forum?
> >>
> >> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
> > commented
> >> out. Is this something that needs changing first before I use what
you
> >> mentioned below?  I found this in
/etc/MailScanner/spam.assassin.conf
> >>
> >> Many thanks
> >>
> >> Nigel
> >>
> >> -----Original Message-----
> >> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
> >> Sent: 19 January 2007 09:48
> >> To: Nigel Robson; users@spamassassin.apache.org
> >> Subject: RE: Runing out of Disk Space
> >>
> >> Nigel
> >>
> >> Ideally this would be on the mailscanner list...
> >>
> >> There's a couple of ways  MailScanner can expire the bayes tokens
> > down,
> >> and which one works for you seems to be hit and miss from my
> >> experience..
> >>
> >> 1st method is to use the 'internal' MailScanner method. In
> >> MailScanner.conf, make sure
> >>
> >> Rebuild Bayes Every = 86400
> >> Wait During Bayes Rebuild = yes
> >>
> >> If you've already got this and things are *not* clearing down then
> >> you'll have to use the 'standard' spamassassin way of doing this.
> >>
> >> Run "sa-learn --force-expire" via a cron job every day. NB if your
> >> MailScanner is running as non-root (eg postfix, mailnull) then make
> > sure
> >> the cron job runs as this user otherwise the bayes file permissions
> > can
> >> get set incorrectly.
> >>
> >> --
> >> Martin Hepworth
> >> Snr Systems Administrator
> >> Solid State Logic
> >> Tel: +44 (0)1865 842300
> >>
> >> > -----Original Message-----
> >> > From: nigel [mailto:nigel.robson@leighton.com]
> >> > Sent: 19 January 2007 09:26
> >> > To: users@spamassassin.apache.org
> >> > Subject: Runing out of Disk Space
> >> >
> >> >
> >> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on one
of
> > our
> >> > servers is running low and it seems that
> >> > /var/spool/MailScanner/spamassassin
> >> > is using 4.4GB.  it is full of items like this
> >> >
> >> > bayes_toks.expire7000
> >> >
> >> > i roughly know what they do but is there a way to clear this out?
i
> >> > thought
> >> > some were automatically removed after a while?
> >> >
> >> > any help would be grateful
> >> >
> >> > many thanks
> >> >
> >> > Nigel Robson
> >> > --
> >> > View this message in context:
> >> http://www.nabble.com/Runing-out-of-Disk-
> >> > Space-tf3039002.html#a8446224
> >> > Sent from the SpamAssassin - Users mailing list archive at
> > Nabble.com.
> >>
> >>
> >>
> >>
> >>
> >>
**********************************************************************
> >> Confidentiality : This e-mail and any attachments are intended for
the
> >> addressee only and may be confidential. If they come to you in
error
> >> you must take no action based on them, nor must you copy or show
them
> >> to anyone. Please advise the sender by replying to this e-mail
> >> immediately and then delete the original from your computer.
> >>
> >> Opinion : Any opinions expressed in this e-mail are entirely those
of
> >> the author and unless specifically stated to the contrary, are not
> >> necessarily those of the author's employer.
> >>
> >> Security Warning : Internet e-mail is not necessarily a secure
> >> communications medium and can be subject to data corruption. We
advise
> >> that you consider this fact when e-mailing us.
> >>
> >> Viruses : We have taken steps to ensure that this e-mail and any
> >> attachments are free from known viruses but in keeping with good
> >> computing practice, you should ensure that they are virus free.
> >>
> >> Red Lion 49 Ltd T/A Solid State Logic
> >> Registered as a limited company in England and Wales
> >> (Company No:5362730)
> >> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
> >> United Kingdom
> >>
**********************************************************************
> >
> >
> >
> >
> >
> >
**********************************************************************
> > Confidentiality : This e-mail and any attachments are intended for
the
> > addressee only and may be confidential. If they come to you in error
> > you must take no action based on them, nor must you copy or show
them
> > to anyone. Please advise the sender by replying to this e-mail
> > immediately and then delete the original from your computer.
> >
> > Opinion : Any opinions expressed in this e-mail are entirely those
of
> > the author and unless specifically stated to the contrary, are not
> > necessarily those of the author's employer.
> >
> > Security Warning : Internet e-mail is not necessarily a secure
> > communications medium and can be subject to data corruption. We
advise
> > that you consider this fact when e-mailing us.
> >
> > Viruses : We have taken steps to ensure that this e-mail and any
> > attachments are free from known viruses but in keeping with good
> > computing practice, you should ensure that they are virus free.
> >
> > Red Lion 49 Ltd T/A Solid State Logic
> > Registered as a limited company in England and Wales
> > (Company No:5362730)
> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
> > United Kingdom
> >
**********************************************************************
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Runing-out-of-Disk-
> Space-tf3039002.html#a8446674
> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.





**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.

Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.

Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 

Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************


RE: Runing out of Disk Space

Posted by nigel <ni...@leighton.com>.
my mailscanner settings are slightly different

Rebuild Bayes Every = 0
Wait During Bayes Rebuild = no

so if i change them to what you suggested this will clear them out?  also,
does this effect mail delivery while it is doing it?

Nigel


Martin Hepworth-3 wrote:
> 
> Nigel
> 
> List is best..
> 
> Commented out is fine - as in that's what I've got.. ;-)
> 
> If you're other settings in MailScanner.conf are also as below then
> you'll have to use the cron method..
> 
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
> 
>> -----Original Message-----
>> From: Nigel Robson [mailto:nigel.robson@leighton.com]
>> Sent: 19 January 2007 09:54
>> To: Martin.Hepworth
>> Subject: RE: Runing out of Disk Space
>>
>> Hi there Martin.  I'm not sure if I am meant to reply back to you or
> the
>> forum?
>>
>> Anyway, I've found the setting 'bayes_auto_expire 0' but it is
> commented
>> out. Is this something that needs changing first before I use what you
>> mentioned below?  I found this in /etc/MailScanner/spam.assassin.conf
>>
>> Many thanks
>>
>> Nigel
>>
>> -----Original Message-----
>> From: Martin.Hepworth [mailto:martinh@solidstatelogic.com]
>> Sent: 19 January 2007 09:48
>> To: Nigel Robson; users@spamassassin.apache.org
>> Subject: RE: Runing out of Disk Space
>>
>> Nigel
>>
>> Ideally this would be on the mailscanner list...
>>
>> There's a couple of ways  MailScanner can expire the bayes tokens
> down,
>> and which one works for you seems to be hit and miss from my
>> experience..
>>
>> 1st method is to use the 'internal' MailScanner method. In
>> MailScanner.conf, make sure
>>
>> Rebuild Bayes Every = 86400
>> Wait During Bayes Rebuild = yes
>>
>> If you've already got this and things are *not* clearing down then
>> you'll have to use the 'standard' spamassassin way of doing this.
>>
>> Run "sa-learn --force-expire" via a cron job every day. NB if your
>> MailScanner is running as non-root (eg postfix, mailnull) then make
> sure
>> the cron job runs as this user otherwise the bayes file permissions
> can
>> get set incorrectly.
>>
>> --
>> Martin Hepworth
>> Snr Systems Administrator
>> Solid State Logic
>> Tel: +44 (0)1865 842300
>>
>> > -----Original Message-----
>> > From: nigel [mailto:nigel.robson@leighton.com]
>> > Sent: 19 January 2007 09:26
>> > To: users@spamassassin.apache.org
>> > Subject: Runing out of Disk Space
>> >
>> >
>> > hi everyone, i'm pretty new to SpamAssassin.  Disk space on one of
> our
>> > servers is running low and it seems that
>> > /var/spool/MailScanner/spamassassin
>> > is using 4.4GB.  it is full of items like this
>> >
>> > bayes_toks.expire7000
>> >
>> > i roughly know what they do but is there a way to clear this out?  i
>> > thought
>> > some were automatically removed after a while?
>> >
>> > any help would be grateful
>> >
>> > many thanks
>> >
>> > Nigel Robson
>> > --
>> > View this message in context:
>> http://www.nabble.com/Runing-out-of-Disk-
>> > Space-tf3039002.html#a8446224
>> > Sent from the SpamAssassin - Users mailing list archive at
> Nabble.com.
>>
>>
>>
>>
>>
>> **********************************************************************
>> Confidentiality : This e-mail and any attachments are intended for the
>> addressee only and may be confidential. If they come to you in error
>> you must take no action based on them, nor must you copy or show them
>> to anyone. Please advise the sender by replying to this e-mail
>> immediately and then delete the original from your computer.
>>
>> Opinion : Any opinions expressed in this e-mail are entirely those of
>> the author and unless specifically stated to the contrary, are not
>> necessarily those of the author's employer.
>>
>> Security Warning : Internet e-mail is not necessarily a secure
>> communications medium and can be subject to data corruption. We advise
>> that you consider this fact when e-mailing us.
>>
>> Viruses : We have taken steps to ensure that this e-mail and any
>> attachments are free from known viruses but in keeping with good
>> computing practice, you should ensure that they are virus free.
>>
>> Red Lion 49 Ltd T/A Solid State Logic
>> Registered as a limited company in England and Wales
>> (Company No:5362730)
>> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
>> United Kingdom
>> **********************************************************************
> 
> 
> 
> 
> 
> **********************************************************************
> Confidentiality : This e-mail and any attachments are intended for the 
> addressee only and may be confidential. If they come to you in error 
> you must take no action based on them, nor must you copy or show them 
> to anyone. Please advise the sender by replying to this e-mail 
> immediately and then delete the original from your computer.
> 
> Opinion : Any opinions expressed in this e-mail are entirely those of 
> the author and unless specifically stated to the contrary, are not 
> necessarily those of the author's employer.
> 
> Security Warning : Internet e-mail is not necessarily a secure 
> communications medium and can be subject to data corruption. We advise 
> that you consider this fact when e-mailing us. 
> 
> Viruses : We have taken steps to ensure that this e-mail and any 
> attachments are free from known viruses but in keeping with good 
> computing practice, you should ensure that they are virus free.
> 
> Red Lion 49 Ltd T/A Solid State Logic
> Registered as a limited company in England and Wales 
> (Company No:5362730)
> Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
> United Kingdom
> **********************************************************************
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Runing-out-of-Disk-Space-tf3039002.html#a8446674
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: Runing out of Disk Space

Posted by "Martin.Hepworth" <ma...@solidstatelogic.com>.
Nigel

Ideally this would be on the mailscanner list...

There's a couple of ways  MailScanner can expire the bayes tokens down,
and which one works for you seems to be hit and miss from my
experience..

1st method is to use the 'internal' MailScanner method. In
MailScanner.conf, make sure

Rebuild Bayes Every = 86400
Wait During Bayes Rebuild = yes

If you've already got this and things are *not* clearing down then
you'll have to use the 'standard' spamassassin way of doing this.

Run "sa-learn --force-expire" via a cron job every day. NB if your
MailScanner is running as non-root (eg postfix, mailnull) then make sure
the cron job runs as this user otherwise the bayes file permissions can
get set incorrectly.

--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: nigel [mailto:nigel.robson@leighton.com]
> Sent: 19 January 2007 09:26
> To: users@spamassassin.apache.org
> Subject: Runing out of Disk Space
>
>
> hi everyone, i'm pretty new to SpamAssassin.  Disk space on one of our
> servers is running low and it seems that
> /var/spool/MailScanner/spamassassin
> is using 4.4GB.  it is full of items like this
>
> bayes_toks.expire7000
>
> i roughly know what they do but is there a way to clear this out?  i
> thought
> some were automatically removed after a while?
>
> any help would be grateful
>
> many thanks
>
> Nigel Robson
> --
> View this message in context:
http://www.nabble.com/Runing-out-of-Disk-
> Space-tf3039002.html#a8446224
> Sent from the SpamAssassin - Users mailing list archive at Nabble.com.





**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.

Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.

Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 

Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************