From 08ebd823bb3e165454394313b59120c96142954a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 25 Aug 2015 22:03:25 +0100 Subject: [PATCH] dma: Add cron job to clean up spool directory Signed-off-by: Michael Tremer --- config/cron/crontab | 6 ++++++ config/rootfiles/core/94/update.sh | 3 +++ 2 files changed, 9 insertions(+) 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 -- 2.39.5