Antispam plugin for Dovecot + rspamd pipe script

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

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