[Mimedefang] MD-Quarantine dir cleanup script?

John Barton jbarton at technicalworks.net
Fri Sep 19 16:16:01 EDT 2003


Here is what I use, I believe it is almost identical to what David posted:

#!/bin/sh

# Remove all files/dirs older than AGE days, matching PATTERN, from SPOOLDIR

SPOOLDIR=/var/spool/mimedefang
AGE=7
PATTERN="qdir-*"

find "$SPOOLDIR" -mtime "+$AGE" -name "$PATTERN" | xargs rm -fr

John Barton
Specialized Tech Solutions, LLC
Server+, Security+, Network+, Linux+ Certified
jbarton at technicalworks.net



More information about the MIMEDefang mailing list