summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/handlers
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-12-14 22:23:09 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:22 +0200
commit827332364b00d3b47367fa97901dab8f4bfe4e91 (patch)
tree960fbfb219aee0563718358c1d9721bbdaa9ad4e /roles/IMAP/handlers
parent3ba746801d48d0c8375a88097ccd566c007eb8b2 (diff)
Compile Spamassassin rules.
See /usr/share/doc/spamassassin/README.Debian.gz
Diffstat (limited to 'roles/IMAP/handlers')
-rw-r--r--roles/IMAP/handlers/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/IMAP/handlers/main.yml b/roles/IMAP/handlers/main.yml
index 9bd7dab..bda2ab9 100644
--- a/roles/IMAP/handlers/main.yml
+++ b/roles/IMAP/handlers/main.yml
@@ -11,6 +11,12 @@
- name: Restart ClamAV
service: name=clamav-daemon state=restarted
+- name: Compile Spamassassin rules
+ sudo_user: debian-spamd
+ # it might take a while...
+ command: /usr/bin/sa-compile --quiet
+ chdir=/var/lib/spamassassin/
+
- name: Restart Amavis
service: name=amavis state=restarted