From 49ccfcec9c2f42c7763770cb81096c9cadffeb58 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 15 Oct 2003 21:09:39 +0000 Subject: Add local weekly cron job for amavis. --- amavis/local-amavis | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 amavis/local-amavis (limited to 'amavis') diff --git a/amavis/local-amavis b/amavis/local-amavis new file mode 100755 index 0000000..eef06c9 --- /dev/null +++ b/amavis/local-amavis @@ -0,0 +1,11 @@ +#!/bin/sh +# +# local amavis cron weekly + +set -e + +if [ -x /usr/bin/archivemail ]; then + for mbox in spam-quarantine spamalert virus-quarantine virusalert; do archivemail -d 30 --delete -q /var/lib/amavis/mboxes/$mbox; done +fi + +exit 0 -- cgit v1.2.3