Dave McGuire wrote:
> On Aug 21, 2007, at 4:22 PM, Justin Kim wrote:
>> I have a little problem.
>> I set Amavisd-new to pass all the messages to the end users.
>> It flags 'spam' and then passes.
>> But still the system is using /var/virusmails directory to keep the
>> messages
>> in gzip format.
>> I guess it is for the business reason if we want to keep the
>> messages for
>> certain preiod of time in case the user asks to recover it.
>> But this /var/virusmails directory is filling up fast and keep
>> growing.
>> I don't know how to manage this.
>> I cannot even list the files in the directory because there are too
>> many.
>> Is there any solution for this?
>> And what can I do to manage this directory so that I only keep 30
>> days worth
>> of message zipped?
>
> Uhh:
>
> # find /var/virusmails -ctime +30 -exec rm -f {} \;
>
> -Dave
>
Oh, careful. This will cause a enormous number of exec's for a
directory with an enormous number of files.
Better to use:
# find /var/virusmails -ctime +30 -print | xargs /bin/rm -f
MrC
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/