#!/bin/sh scan_dir=/var/spool/exim/scan max_age=7 if [ -d ${scan_dir} ]; then find ${scan_dir}/ -type d -mtime +${max_age} -maxdepth 1 | \ xargs rm -rf fi