]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/94/update.sh
dma: Add cron job to clean up spool directory
[ipfire-2.x.git] / config / rootfiles / core / 94 / update.sh
index d820b11bc565ce4cc0d591f887cae42047b72e98..5fb09367e2d20cafe4eec67072e38bafced5488e 100644 (file)
@@ -59,6 +59,9 @@ grep -qv "dma -q" || cat <<EOF >> /var/spool/cron/root.orig
 
 # Retry sending spooled mails regularly
 %hourly * /usr/sbin/dma -q
+
+# Cleanup the mail spool directory
+%weekly * * /usr/sbin/dma-cleanup-spool
 EOF
 
 fcrontab -z &>/dev/null