Procházet zdrojové kódy

Merge pull request #617 from hippich/pk-add-dovecot-antispam-plugin-config

Add antispam plugin config for dovecot to trigger rspamd learning whe…
Luke Cyca před 7 roky
rodič
revize
a02bd2992c

+ 9
- 0
roles/mailserver/files/etc_dovecot_conf.d_90-antispam.conf Zobrazit soubor

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

@@ -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…
Zrušit
Uložit