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

@@ -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

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