Sendmail: Remove Queued Messages

Posted on in system_administration

for id in \`find . -mtime +10 -name qf\\\* \| sed 's/\^....//'\`; do
    mv qf\${id} /var/tmp/scott-20120104/ ;
    mv df\${id} /var/tmp/scott-20120104/ ;
done

Slaptijack's Koding Kraken