summaryrefslogtreecommitdiff
path: root/playbooks/roles/mail/templates/volumes/data/dms/cron
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/mail/templates/volumes/data/dms/cron')
-rw-r--r--playbooks/roles/mail/templates/volumes/data/dms/cron12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/roles/mail/templates/volumes/data/dms/cron b/playbooks/roles/mail/templates/volumes/data/dms/cron
new file mode 100644
index 0000000..e6b72e4
--- /dev/null
+++ b/playbooks/roles/mail/templates/volumes/data/dms/cron
@@ -0,0 +1,12 @@
++# '> /dev/null' to send error notifications from 'stderr' to 'postmaster@example.com'
++#
++# m h dom mon dow user command
++#
++# Everyday 3:00AM, learn spam from all users of a domain
++# spam: junk directory
++0 3 * * * root sa-learn --spam /var/mail/*/.Junk --dbpath /var/mail-state/lib-amavis/.spamassassin > /dev/null
++# ham: archive directories
++15 3 * * * root sa-learn --ham /var/mail/*/.Archive* --dbpath /var/mail-state/lib-amavis/.spamassassin > /dev/null
++# ham: inbox subdirectories
++30 3 * * * root sa-learn --ham /var/mail/*/cur* --dbpath /var/mail-state/lib-amavis/.spamassassin > /dev/null
+