[Dovecot] Use socket to pipe to Rspamd

master
André Peters 2018-02-08 22:56:43 +01:00
parent 77c7c1fe07
commit ac4982d706
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
/usr/bin/curl -s --data-binary @- --unix-socket /rspamd/rspamd.sock http://rspamd:11334/learnham < /dev/stdin /usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnham < /dev/stdin
# Always return 0 to satisfy Dovecot... # Always return 0 to satisfy Dovecot...
exit 0 exit 0

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
/usr/bin/curl -s --data-binary @- --unix-socket /rspamd/rspamd.sock http://rspamd:11334/learnspam < /dev/stdin /usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnspam < /dev/stdin
# Always return 0 to satisfy Dovecot... # Always return 0 to satisfy Dovecot...
exit 0 exit 0