This is a discussion on RE: [AMaViS-user] How to clean /var/spool/amavis directory automatically within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Hi Leon, > -----Original Message----- > From: amavis-user-admin@lists.sourceforge.net > [mailto:amavis-user-admin@lists.sourceforge....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Leon,
> -----Original Message----- > From: amavis-user-admin@lists.sourceforge.net > [mailto:amavis-user-admin@lists.sourceforge.net] On Behalf Of > lkolchin@univ.haifa.ac.il > Sent: Tuesday, 27 December 2005 12:18 a.m. > To: amavis-user@lists.sourceforge.net > Subject: [AMaViS-user] How to clean /var/spool/amavis > directory automatically > > Hello All, > > I got a the following problem with /var/spool/amavis directory. > This directory take a lot of space on my harddisk (several GB). > > This directory is full of : > > amavis-20051224T130531-30822 amavis-20051225T072746-14188 > amavis-20051225T230110-05762 amavis-20051226T123510-17720 > amavis-20051224T130531-30825 amavis-20051225T072746-14201 > amavis-20051225T230110-05774 amavis-20051226T123510-17733 > amavis-20051224T130531-30838 amavis-20051225T072746-14202 > amavis-20051225T230111-05776 amavis-20051226T123510-17734 > amavis-20051224T130531-30839 amavis-20051225T073353-14294 > amavis-20051225T230111-05783 amavis-20051226T123511-17746 > > Is there any script to clean it automatically (or maybe there > is some built-in amavis option) so it won't eat my disk space? I have a small perl script that I use to delete them. The difference between the perl script and those simple rm crontabs is that the perl script will check if the amavisd-new process is still alive, and if it is, it won't delete the directory (the last 5 digits are the PID so it's easy to check if it's alive). You can get the script from: http://www.zesoi.fer.hr/~bzdrnja/amavis-clean You will have to edit your temporary directory at the beginning of the script. Cheers, Bojan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|