summaryrefslogtreecommitdiff
path: root/playbooks/roles/mail/templates/cron.j2
diff options
context:
space:
mode:
authorHunt <lizhunt@amazon.com>2025-10-01 15:31:21 -0700
committerHunt <lizhunt@amazon.com>2025-10-01 15:31:21 -0700
commite9d6d57b75bba1a90b2ef1a27930a8cc6a15a29d (patch)
tree6bffc2761fb9cd9b7b1440c3a72ae0010a759bc2 /playbooks/roles/mail/templates/cron.j2
parent9b45729da8a094f8c098216ddfabab53e566dfc5 (diff)
downloadmmt-infra-e9d6d57b75bba1a90b2ef1a27930a8cc6a15a29d.tar.gz
mmt-infra-e9d6d57b75bba1a90b2ef1a27930a8cc6a15a29d.zip
SpamAssassin attempt v1HEADmain
Diffstat (limited to 'playbooks/roles/mail/templates/cron.j2')
-rw-r--r--playbooks/roles/mail/templates/cron.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/playbooks/roles/mail/templates/cron.j2 b/playbooks/roles/mail/templates/cron.j2
new file mode 100644
index 0000000..69357a9
--- /dev/null
+++ b/playbooks/roles/mail/templates/cron.j2
@@ -0,0 +1,11 @@
+# '> /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