Browse Source

Add antispam plugin config for dovecot to trigger rspamd learning whenever message is moved from inbox to spam

Pavel Karoukin 8 years ago
parent
commit
4a7f9b41ac

+ 9
- 0
roles/mailserver/files/etc_dovecot_conf.d_90-antispam.conf View File

@@ -0,0 +1,9 @@
1
+plugin {
2
+    antispam_backend = pipe
3
+    antispam_spam    = Junk
4
+    antispam_trash   = Trash
5
+    antispam_mail_sendmail = /usr/bin/rspamc
6
+    antispam_mail_spam     = learn_spam
7
+    antispam_mail_notspam  = learn_ham
8
+    antispam_mail_sendmail_args = -h;localhost:11334;-P;q1
9
+}

+ 1
- 0
roles/mailserver/tasks/dovecot.yml View File

@@ -38,6 +38,7 @@
38 38
     - 10-auth.conf
39 39
     - 10-mail.conf
40 40
     - 10-master.conf
41
+    - 90-antispam.conf
41 42
     - auth-sql.conf.ext
42 43
   notify: restart dovecot
43 44
 

Loading…
Cancel
Save