diff --git a/data/Dockerfiles/dovecot/Dockerfile b/data/Dockerfiles/dovecot/Dockerfile index d1a254ae..ecdfaf2c 100644 --- a/data/Dockerfiles/dovecot/Dockerfile +++ b/data/Dockerfiles/dovecot/Dockerfile @@ -14,6 +14,7 @@ RUN apt-get update \ dovecot-pop3d \ dovecot-dev \ wget \ + curl \ build-essential \ autotools-dev \ automake diff --git a/data/Dockerfiles/dovecot/rspamd-pipe b/data/Dockerfiles/dovecot/rspamd-pipe index 55342eae..f9236e17 100755 --- a/data/Dockerfiles/dovecot/rspamd-pipe +++ b/data/Dockerfiles/dovecot/rspamd-pipe @@ -1,6 +1,8 @@ #!/bin/bash -if [[ ${1} == "learn_spam" ]]; then +if [[ ${2} == "learn_spam" ]]; then /usr/bin/curl --data-binary @- http://rspamd:11334/learnspam < /dev/stdin -elif [[ ${1} == "learn_ham" ]]; then +elif [[ ${2} == "learn_ham" ]]; then /usr/bin/curl --data-binary @- http://rspamd:11334/learnham < /dev/stdin fi +# Always return 0 to satisfy Dovecot... +exit 0