Parcourir la source

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

Pavel Karoukin il y a 7 ans
Parent
révision
4a7f9b41ac

+ 9
- 0
roles/mailserver/files/etc_dovecot_conf.d_90-antispam.conf Voir le fichier

@@ -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 Voir le fichier

@@ -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
 

Chargement…
Annuler
Enregistrer