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; 2005/12/26, lkolchin@univ.haifa.ac.il <lkolchin@univ.haifa.ac.il>: > Is there any script ...


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
Cataldo Cigliola
 
Posts: n/a
Default Re: [AMaViS-user] How to clean /var/spool/amavis directory automatically

2005/12/26, lkolchin@univ.haifa.ac.il <lkolchin@univ.haifa.ac.il>:

> Is there any script to clean it automatically (or maybe there is some bui=

lt-in amavis option) so it won't eat my disk space?

You can insert in root crontab a script like this

0,30 * * * * find /var/spool/amavis -type d -name 'amavis-*' -prune
-mmin +30 -exec rm -rf {} \;

that will erase any temp directory older than 30 minutes.

--
Saluti,
Cataldo Cigliola


-------------------------------------------------------
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 04:15 PM.


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