From ac4982d706b09305662611eebfc5078bc7c00464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Thu, 8 Feb 2018 22:56:43 +0100 Subject: [PATCH] [Dovecot] Use socket to pipe to Rspamd --- data/Dockerfiles/dovecot/rspamd-pipe-ham | 2 +- data/Dockerfiles/dovecot/rspamd-pipe-spam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/dovecot/rspamd-pipe-ham b/data/Dockerfiles/dovecot/rspamd-pipe-ham index 7dbb99c1..cca3d8a0 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 @- --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... exit 0 diff --git a/data/Dockerfiles/dovecot/rspamd-pipe-spam b/data/Dockerfiles/dovecot/rspamd-pipe-spam index 8bb3fe7f..3adbc960 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 @- --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... exit 0