diff options
Diffstat (limited to 'amavis/cron.weekly/local-amavis')
-rwxr-xr-x | amavis/cron.weekly/local-amavis | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/amavis/cron.weekly/local-amavis b/amavis/cron.weekly/local-amavis new file mode 100755 index 0000000..703ed13 --- /dev/null +++ b/amavis/cron.weekly/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 /var/lib/amavis/mboxes/$mbox; done +fi + +exit 0 |