summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/handlers
diff options
context:
space:
mode:
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