]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
dma: Add cron job to clean up spool directory
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Aug 2015 21:03:25 +0000 (22:03 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Aug 2015 21:03:25 +0000 (22:03 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cron/crontab
config/rootfiles/core/94/update.sh

index 9ba52450a3a18804dc98ead1caa49dc2ef6c9a79..02abadc3481a7fcec2f0ddf6ff52d748e2607127 100644 (file)
@@ -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
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