From: Michael Tremer Date: Tue, 25 Aug 2015 21:03:25 +0000 (+0100) Subject: dma: Add cron job to clean up spool directory X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08ebd823bb3e165454394313b59120c96142954a;p=people%2Fms%2Fipfire-2.x.git dma: Add cron job to clean up spool directory Signed-off-by: Michael Tremer --- diff --git a/config/cron/crontab b/config/cron/crontab index 9ba52450a3..02abadc348 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -58,3 +58,9 @@ HOME=/ # Update GeoIP database once a month. %monthly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/xt_geoip_update >/dev/null 2>&1 + +# Retry sending spooled mails regularly +%hourly * /usr/sbin/dma -q + +# Cleanup the mail spool directory +%weekly * * /usr/sbin/dma-cleanup-spool diff --git a/config/rootfiles/core/94/update.sh b/config/rootfiles/core/94/update.sh index d820b11bc5..5fb09367e2 100644 --- a/config/rootfiles/core/94/update.sh +++ b/config/rootfiles/core/94/update.sh @@ -59,6 +59,9 @@ grep -qv "dma -q" || cat <> /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