Antispam plugin for Dovecot + rspamd pipe script
This commit is contained in:
1 parent
52d31cbd7c
commit
7e25826d4e
5 files changed
+51
-6
No files matched your search
Executable
+6
@@ -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
|
||||
Reference in new issue
Block a user