Antispam plugin for Dovecot + rspamd pipe script

This commit is contained in:
andryyy committed 2016-12-13 12:26:10 +01:00
1 parent 52d31cbd7c
commit 7e25826d4e
5 files changed
+51 -6

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
if [[ ${1} == "learn_spam" ]]; then
/usr/bin/curl --data-binary @- http://rspamd:11334/learnspam < /dev/stdin
elif [[ ${1} == "learn_ham" ]]; then
/usr/bin/curl --data-binary @- http://rspamd:11334/learnham < /dev/stdin
fi