[AMaViS-user] /var/virusmails -- cleanup?

2007-07-30 Thread lartc
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

Re: [AMaViS-user] /var/virusmails -- cleanup?

2007-07-30 Thread Tomas Macek
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