Try this for example in /etc/crontab:
0 3 * * * root find /var/virusmails/ -mtime +2 -type f -exec rm -f {} \;
This deletes for me at 3:00am every morning all the files in /var/virusmails
older than 2 days.
On Mon, 30 Jul 2007, lartc wrote:
> hi all,
>
> this directory keeps filling up, so i am using tmpwatch to keep its size
> within reason.
>
> is there a directive to tell amavis to nuke these file automagically ??
> as my server is becoming busier, this directory is quickly becoming
> difficult to manage ...
>
> thanks
>
> charles
>
>
> -------------------------------------------------------------------------
> 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/
>
-------------------------------------------------------------------------
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/