RE: [AMaViS-user] How to clean /var/spool/amavis directory automatically

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....


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-26-2005
Bojan Zdrnja
 
Posts: n/a
Default RE: [AMaViS-user] How to clean /var/spool/amavis directory automatically

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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0