mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 15:02:59 +02:00
dma: Add cron job to clean up spool directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user