[Mimedefang] cron script to archive MD-Quarantine
Paul Murphy
pmurphy at ionixpharma.com
Wed Sep 29 14:25:19 EDT 2004
Matthew,
> My /var/spool/MD-Quarantine directory starts to get full
> after a while.
>
> I'm thinking of writing a cron.monthly script.
#!/bin/csh
find /var/spool/MD-Quarantine -type d -mtime +60 -exec mv {} /data/archive/`date
+%y-%b` \;
cd /data/archive/`date +%y-%b`
tar cvf archive.tar qdir*
rm -rf qdir*
Question - why do you want to save quarantined messages and attachments? Is it
not better to examine them, release any which are important, and delete the
rest?
Best Wishes,
Paul.
__________________________________________________
Paul Murphy
Head of Informatics
Ionix Pharmaceuticals Ltd
418 Science Park, Cambridge, CB4 0PA
Tel. 01223 433741
Fax. 01223 433788
_______________________________________________________________________
DISCLAIMER:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed. If you have received this email in error please contact
the sender or the Ionix IT Helpdesk on +44 (0) 1223 433741
_______________________________________________________________________
More information about the MIMEDefang
mailing list