From e9d6d57b75bba1a90b2ef1a27930a8cc6a15a29d Mon Sep 17 00:00:00 2001 From: Hunt Date: Wed, 1 Oct 2025 15:31:21 -0700 Subject: SpamAssassin attempt v1 --- playbooks/roles/mail/templates/cron.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 playbooks/roles/mail/templates/cron.j2 (limited to 'playbooks/roles/mail/templates/cron.j2') 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 -- cgit v1.2.3-70-g09d2