Clean-up SpamAssassin db files

By incident I found that some files (auto-learning ?) of SpamAssassin are growing and growing; for example:
/var/amavis/.spamassassin root# ls -l
total 2275104
-rw------- 1 clamav clamav 1118257152 Aug 9 22:47 auto-whitelist
-rw------- 1 clamav clamav 144 May 4 10:09 auto-whitelist.lock.star1.local.16542
-rw------- 1 clamav clamav 93000 Aug 9 22:47 bayes_journal
-rw------- 1 clamav clamav 41598976 Aug 9 22:15 bayes_seen
-rw------- 1 clamav clamav 4894720 Aug 9 22:15 bayes_toks
-rw-r--r-- 1 clamav clamav 1175 Jan 3 2007 user_prefs
That's over 1 GB of data of the auto-whitelist file; while I generally wanted to keep auto whitelisting enabled, is there something I can set to keep disk space requirements in an acceptable limit ?
And second question:
I guess the following "files with random numbers" (dummy language can be deleted without losing anything... seems that they origin from server restarts or something else (anyway, the server never crashed, at least I shut it down the usual way whenever needed). Not sure, but shouldn't be some kind of automatic clearance that removes such temporarily created files ?
/var/amavis root# ls -l
total 112
drwxr-x--- 16 clamav clamav 544 Aug 9 15:49 .razor
drwx------ 8 clamav clamav 272 Aug 9 22:47 .spamassassin
-rw------- 1 clamav clamav 13339 May 4 10:09 .spamassassin16516mr1BFXtmp
-rw------- 1 clamav clamav 13364 May 4 10:09 .spamassassin16542wwR2sutmp
-rw------- 1 clamav clamav 12112 Feb 3 2007 .spamassassin29700LQmsFJtmp
drwxr-x--- 4 clamav clamav 136 Nov 13 2006 amavis-20061113T165101-27553
drwxr-x--- 4 clamav clamav 136 Nov 13 2006 amavis-20061113T165217-28650
drwxr-x--- 4 clamav clamav 136 Jan 1 2007 amavis-20070101T183212-24902
drwxr-x--- 4 clamav clamav 136 Aug 9 22:29 amavis-20070809T222926-11934
drwxr-x--- 4 clamav clamav 136 Aug 9 22:30 amavis-20070809T223058-11962
-rw-r----- 1 clamav clamav 0 Oct 26 2006 amavisd.lock
-rw-r----- 1 clamav clamav 3 Aug 2 19:12 amavisd.pid
srwxr-x--- 1 clamav clamav 0 Aug 2 19:12 amavisd.sock
-rw-r----- 1 clamav clamav 173 Nov 20 2006 razor-agent.log
-rw-r--r-- 1 clamav clamav 3 Aug 22 2005 whitelist_sender

-sorry Tobias I was thinking of the wrong DB obviously-
There IS a setting in SA for setting a MAX size for the dataases and settings to autoexpire old tokens and what not...
Excerpt from here below- hope it helps http://spamassassin.apache.org/full/3.2.x/doc/MailSpamAssassinConf.html
bayesjournal_maxsize (default: 102400)
SpamAssassin will opportunistically sync the journal and the database. It will do so once a day, but will sync more often if the journal file size goes above this setting, in bytes. If set to 0, opportunistic syncing will not occur.
bayesexpiry_max_dbsize (default: 150000)
What should be the maximum size of the Bayes tokens database? When expiry occurs, the Bayes system will keep either 75% of the maximum value, or 100,000 tokens, whichever has a larger value. 150,000 tokens is roughly equivalent to a 8Mb database file.
bayesautoexpire (default: 1)
If enabled, the Bayes system will try to automatically expire old tokens from the database. Auto-expiry occurs when the number of tokens in the database surpasses the bayesexpiry_max_dbsize value.

Similar Messages

  • How can I clean all the junk files from my iMac so that it can run faster?

    How can I clean all the junk files from my iMac so that it can run faster? Its been slowing down ever since I started using it.

    Before doing anything, we might be able to help with your iMac issues here.
    Please download, install and run Etrecheck.
    http://www.etresoft.com/etrecheck
    Copy/paste its report here in another reply thread so that we have a complete profile of your Mac's hardware and installed software.

  • [svn] 3214: Make sure we clean up all the files that javacc generates.

    Revision: 3214
    Author: [email protected]
    Date: 2008-09-15 15:48:27 -0700 (Mon, 15 Sep 2008)
    Log Message:
    Make sure we clean up all the files that javacc generates.
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/services/messaging/selector/build.xml

    Ok, this is a rather complex scenario and I'm not quite sure if I got the correct picture of what you're doing, so maybe I'm going in the wrong direction with this...
    First of all, you should distinguish between threads and processes. A thread is a strand of program execution within a process. A process is an application running on the operating system. Your java application is a process, and it may include several threads. Runtime#exec(...) will actually invoke a process, that is, it will start a program which runs asynchronously and (more or less) independant from the JVM. You'll need to wait for this process to finish before proceeding with the next script. Runtime#exec(...) will return an instance of Process, which provides the method Process#waitFor() to do just that.
    Looking at your code except, you don't really have to start a separate java thread for what you're doing. Your main thread will immediately block and wait for the worker anyway, so you might just invoke Runtime#exec(...) directly.
    By the way, if you want to wait for a java thread to terminate, there is a better way of doing it than looping while the thread is still alive. The Thread#join() method will block until the target thread terminates.

  • My MAC BOOK PRO is slow - which software is recommended to clean it from unnecessary files ?

    My MAC BOOK PRO is slow - which software is recommended to clean it from unnecessary files ?
    thanks

    Why is my computer slow?

  • What is the app best or way to clean iphone from temp files?

    What is the app best or way to clean iphone from temp files?

    If when you plug your iPhone in to iTunes to sync, you see the size of "Other" get much larger than 1 gigabyte, restoring the iPhone from iTunes will do cleanup.

  • Software to clean duplicate and unnecessary files

    Hello
    I was looking for a safe app or software that can clean extra and unnecessary files off of my imac - has anyone tried anything that they trust will work?
    I am not well enough versed to just start deleting files - and would probably delete something that was needed
    any help would be greatly appreciated
    sbmop

    Here are some general tips to keep your Mac's hard drive trim and slim as possible
    You should never, EVER let a computer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your Mac's Trash icon in the Dock?
    If you use iPhoto or Aperture, both have its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you are an iMovie/ Final Cut user, both apps have their own individual Trash location that needs to be emptied, too!
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    To find other large files, download an app called Omni Disk Sweeper.
    http://www.omnigroup.com/more
    Also, Find Any File
    http://apps.tempel.org/FindAnyFile/
    Download an app called OnyX for your version of OS X.
    http://www.titanium.free.fr/downloadonyx.php
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Moving iTunes library
    http://support.apple.com/kb/HT1449
    Moving iPhoto library
    http://support.apple.com/kb/PH2506
    Moving iMovie projects folder
    http://support.apple.com/kb/ph2289
    Good Luck!

  • How do I get new SpamAssassin cf files?

    When spamtrainer runs, I get the following message:
    config: configuration file "//usr/share/spamassassin/20bodytests.cf" requires version 3.000001 of SpamAssassin, but this is code version 3.001005. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /Library/Perl/5.8.6/Mail/SpamAssassin/Conf/Parser.pm line 344.
    How do I get the new cf files? I never updated SA manually, so all mail service related files should have been updated by SoftwareUpdate. Is it just that the newer version of SA doesn't look in the /usr/share/spamassassin directory anymore?

    Hi Alex,
    I went through my upgrade notes and found an entry back in 2004. I apparently ran the CPAN command for Mail::SpamAssassin on this server by mistake and SpamAssassin was overwritten with v.3.1.5. *spamassassin -V* confirmed it. I wonder why spamtrainer decided to tell me now all of a sudden.
    Anyway, I thought this would be a good time as any to update SpamAssassin... and because of the Perl modules, Amavis. Your notes on Topicdesk was a big help.
    One thing I don't like about the newest Amavis is that the start/stop/reload command is a hassle to type during the install and debug process (I made shortcut executables in ~/bin). I guess now that it's installed and working, I would never have to type those commands again.
    Thanks for your help!

  • What is the best way for cleaning up duplicate iTunes files in iCloud?

    I have about 5000 of my songs in iTunes that are duplicates in iTunes, when I go to delete them it asks me to delete in iCloud too. I do this and then another file is either uploaded or downloaded with iClouds. Is there a webbased way to access iCloud and clean up duplicate iTune songs?

    iTunes 11 has removed the Show Duplicates/Exact Duplicates functions so I've added two new scripts to make playlists of Duplicates and Exact Duplicates to my scripts collection.
    If deduping by hand use shift-delete to remove selected tracks from the library as well as the playlist.
    The Exact Duplicates script makes a good starting point from which to run my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping.
    tt2

  • Clean up my iphoto files.

    How do I know which files I should keep with I photo. When I open my iphoto library, I get folders numbered that are empty and then I get some with data and others with thumbnails. Is it necessary to keep all of those in my library.
    I find it extremely difficult with iphoto to retrieve a picture and send it as mail. Everytime I do so, I get to my folders and have to search endlessly!
    Any quick solutions?
    Talking also about clean up... What should I empty on my mac to clean up my hardddrive. I am afraid to delete things that I will need to make the system work.
    Thanks again

    You shouldn't mess with or manipulate anything within your iPhoto library at the Finder level.
    Copied from iPhoto Help:
    IMPORTANT: There is also an "iPhoto Library" folder located in the Pictures folder in your home folder, outside the iPhoto application. If you move, delete, rename, or otherwise touch files or folders within this folder, you may be unable to see your pictures in the iPhoto application.
    I find it extremely difficult with iphoto to retrieve a picture and
    send it as mail. Everytime I do so, I get to my folders and have
    to search endlessly! Any quick solutions?
    Which iPhoto version are you using and have you created Albums to group your favorite photos by subject, date, or theme?
    The following was also copied from iPhoto Help:
    A photo album in iPhoto is just like one you create with paper and print photos: It's a collection of photos you select from your library and arrange in the order you want.
    You can make as many albums as you like using any images from your photo library. You can also include the same photo in several albums without making multiple copies of it.
    To further organize your library, you can group several albums into a single folder, such as several years of birthday albums or albums chronicling the camping trips you've taken.
    Talking also about clean up... What should I empty on my mac
    to clean up my hardddrive. I am afraid to delete things that I will
    need to make the system work.
    Check Freeing space on your Mac OS X startup disk.

  • BerkeleyDB not cleaning up old db files

    Good morning.
    We've been noticing a scenario where BerkeleyDB is retaining (not removing) old db files. These files are well outside the largest window for data retention (over a month old, where the longest window for data is 7 days). There should be no active data in these files. As they are starting to take up signifcant disk space, I'd like to investigate possible methods for manually removing them.
    Note that modifications have been made to the pruning & cleaner thread settings and they are now keeping up with active data. I'm primarily concerned with removal of these old, inactive files.
    As we see it, there's a few options.
    1. Manually rm the files which are known to be outside the longest window
    2. The old files can't be cleaned up by the cleaning/pruning threads for some reason, but there is a utility which can clean them up which we don't know about?
    3. The old files can't be cleaned up by the cleaning/pruning thread, there is no utility, and we actually will need Oracle to investigate.
    Any thoughts?
    Many thanks!

    Good morning.
    We've been noticing a scenario where BerkeleyDB is retaining (not removing) old db files. These files are well outside the largest window for data retention (over a month old, where the longest window for data is 7 days). There should be no active data in these files. As they are starting to take up signifcant disk space, I'd like to investigate possible methods for manually removing them.
    Note that modifications have been made to the pruning & cleaner thread settings and they are now keeping up with active data. I'm primarily concerned with removal of these old, inactive files.
    As we see it, there's a few options.
    1. Manually rm the files which are known to be outside the longest window
    2. The old files can't be cleaned up by the cleaning/pruning threads for some reason, but there is a utility which can clean them up which we don't know about?
    3. The old files can't be cleaned up by the cleaning/pruning thread, there is no utility, and we actually will need Oracle to investigate.
    Any thoughts?
    Many thanks!

  • Cleaning up potentially harmful files

    Is there a way to clean potentially harmful files and if so how can I find them and delete them? Im having several issue with pop ups which were not pprevelent before. AnNy suggestions??

    What kind of harmful files are you talking about here? If you're referring to viruses, see my [Mac Virus guide|http://www.reedcorner.net/thomas/guides/macvirus>. You'll note that there are no Mac viruses, only a few trojans, which you must download, run and provide an admin password to.
    I'm not sure what kind of popup issues you're having, as you didn't specify, but sometimes popups can get past popup blockers. I have Safari's popup blockers on, but I now and then find "pop-unders" lurking behind the browser window anyway. This is not malware.
    Of course, you could be having DNS redirects, but from your description I have no way of knowing whether this is likely. There's information on redirects in the "Do I have a virus?" section of the guide.

  • Cleaning up old FrontPage files

    Am converting over from FP to DW and am starting to clean up
    (delete) old FP files in the site. Folders like Borders and Themes
    and FPClass were the first to go. What else can I just get rid of?
    Also, I notice that there are folders called _vti_cnf that
    show up every so often. What are they and can they also be deleted?
    Thanks
    Tom

    > Am noticing that you are a regular contributor. Thanks.
    No problems, you are welcome.
    >
    > Thanks for the educ. on the FP files. As long as I've
    got you, what about
    > some of the other folders? Maybe the best way to ask
    this question is
    > instead
    > of asking what can be deleted from FP sites, what does
    DW need?
    Dreamweaver doesn't need any specific folders to work on your
    server.
    Nothing like Front Page at all. A host doesn't have to
    'support' DWeaver
    for you to use that particular host (as may be the case if
    you run a FP
    site)
    You create your folder system - containing your files on your
    local machine
    and then upload the folder structure as is to the remote
    site.. the
    important factor is that the folder structure is pretty much
    identical on
    the remote so that your links are not broken.
    Even if you use the DW Template funciton, the template (dwt
    file and the
    Templates folder) do not need to be uploaded.
    > Also, I think I remember that the underscore before a
    folder name means
    > something like it's invisible or something like that.
    When would I want
    > to use an underscore for a folder?
    It is generally not recommended that you beging a folder name
    with an
    underscore or a numeral.
    Nothing wrong with a folder named: images_thumbs for example,
    but I
    wouldn't use _images_thumbs.
    > BTW I noticed the rather bizarre thread that developed
    from your question
    > about pt, em, and px. I put a post in there that tried
    to help that may
    > have been missed.
    Probably was missed in all the 'toing and froing', but you
    learn to live
    with these type of threads ;)
    > I'm sure you're familiar with cssZenGarden. There is a
    wonderful
    > companion book that goes with it.
    I believe you are referring to: The Zen of CSS Design" ??
    I've had it for a while... It was a good read for a once off,
    otherwise I
    find it more of a coffee table book I'm afraid :)
    >One of the chapters is on Text and goes into a pretty
    thorough discussion
    >of em, pt, and px and the tradeoffs (or perhaps more
    importantly, the
    >considerations) when deciding to use each.
    It was a while ago, so I'll go back and refresh my memory
    thanks !
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.perrelink.com.au
    - Web Dev
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver

  • After a clean install, what old files to put back in?

    Was having nothing but trouble after upgrading from Tiger to Leopard on my G5 tower. Biggest problem was Safari taking 3 minutes or so to boot up—did all the suggested cleaning of prefs, etc., but nothing worked. Also Elements would pop up once on the dock then quit, as would Ready!Set!Go, and a new FruitMenu from Insanity didn’t load properly.
    So went ahead and got out an old hard drive, hooked it up, and put a clean install Leopard on it. Booted from it, and guess what-- Safari comes right up, Elements installed and works as it should, and everything is looking good. Did a 10.5.7 upgrade, put in the Safari software update, and it’s booting right away also.
    This is great, so now I’ll do a clean install on my original drive, and then pull the pics, music, etc. from my Time Machine back up disk to it. Here is what I need advice on:
    Which files do I pull over from my old user account and System Library to get the prefs, mail, etc. that I was using before, and more importantly, which files DON’T I want to pull over and perhaps screw up the new user account and system.
    Thanks ……….

    check out this link
    http://discussions.apple.com/message.jspa?messageID=6185507

  • How to clean large system log files?

    I believe that OS X saves a lot of system data in log files that become very large.
    I would like to clear old history logs.
    How may I view and clean system log files?

    Thank you Niel.
    I have obtained the list at /private/var/log.
    There are a lot of files in there.
    Since I am not familiar with functions of these files should I be concerned that by simply deleting all of the files in folder /private/var/log will not cause any problems? Would this action present some unintended consequences?

  • Reader 9 uninstallation nightmare - want to clean up all Adobe files

    I have such a mess going on on my computer. It all started when I downloaded and installed Reader v9....with no problems. I then noticed that previous Reader version v8 was not uninstalled, so I tried to uninstall v9 with Windows uninstall feature (control panel) in order to cleanup v8. This turned into a nightmare because of acrobat.com and Air that came along with v9. I couldn't get rid of all newly installed features/files. I kept getting error messages...so many I can't remember them. I downloaded Windows Install Cleanup but this wouldn't work either...similar messages as with Windows uninstall. I even tried my TuneUp Utilities 2008 to uninstall, but similar problems. I also used this program to clean up the registry. Finally I reinstalled Reader 9 and then its uninstall feature as well as all the others I've just mentioned. The result is that buried all over my hard drive are Adobe files that show up when I do a search for "Adobe", but show that the specified paths do not exist when I try to access them. So, what I want is some kind of Adobe cleanup tool that will get rid of everything on my computer (Compaq/Vista Home Premium SP1) that has anything to do with Adobe. Will Adobe provide this? I've used one from McAfee before. Help!

    Unfortunately there is no such cleanup tool from Adobe; I wish there were one.
    What I would try in your situation
    *Remove Adobe Reader with the Windows Installer Cleanup Utility
    *Reinstall Adobe Reader 9
    *Uninstall Adobe AIR & Acrobat.com
    *Uninstall Adobe Reader 9
    *Install Adobe Reader 8.1.3
    *Uninstall Adobe Reader 8.1.3
    At this point you should have nothing Adobe left on your disk or registry.
    *Reinstall Adobe Reader 9
    Adobe Reader 9 without AIR & Acrobat.com can be downloaded from
    http://download.adobe.com/pub/adobe/reader/win/9.x/9.0/enu/AdbeRdr90_en_US_Std.exe

Maybe you are looking for