dma: Add cron job to clean up spool directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-08-25 22:03:25 +01:00
parent dbe1e1137f
commit 08ebd823bb
2 changed files with 9 additions and 0 deletions

View 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