diff --git a/data/Dockerfiles/dovecot/rspamd-pipe-ham b/data/Dockerfiles/dovecot/rspamd-pipe-ham index 7c3ab03f..7dbb99c1 100755 --- a/data/Dockerfiles/dovecot/rspamd-pipe-ham +++ b/data/Dockerfiles/dovecot/rspamd-pipe-ham @@ -1,4 +1,4 @@ #!/bin/bash -/usr/bin/curl -s --data-binary @- http://rspamd:11334/learnham < /dev/stdin +/usr/bin/curl -s --data-binary @- --unix-socket /rspamd/rspamd.sock http://rspamd:11334/learnham < /dev/stdin # Always return 0 to satisfy Dovecot... exit 0 diff --git a/data/Dockerfiles/dovecot/rspamd-pipe-spam b/data/Dockerfiles/dovecot/rspamd-pipe-spam index 67cccb2c..8bb3fe7f 100755 --- a/data/Dockerfiles/dovecot/rspamd-pipe-spam +++ b/data/Dockerfiles/dovecot/rspamd-pipe-spam @@ -1,4 +1,4 @@ #!/bin/bash -/usr/bin/curl -s --data-binary @- http://rspamd:11334/learnspam < /dev/stdin +/usr/bin/curl -s --data-binary @- --unix-socket /rspamd/rspamd.sock http://rspamd:11334/learnspam < /dev/stdin # Always return 0 to satisfy Dovecot... exit 0