Browse Source

[Watchdog] Use socket to pipe to Rspamd

André Peters 7 years ago
parent
commit
83094a773e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/Dockerfiles/watchdog/watchdog.sh

+ 1 - 1
data/Dockerfiles/watchdog/watchdog.sh

@@ -211,7 +211,7 @@ rspamd_checks() {
   while [ ${err_count} -lt ${THRESHOLD} ]; do
     host_ip=$(get_container_ip rspamd-mailcow)
     err_c_cur=${err_count}
-    SCORE=$(curl --silent ${host_ip}:11333/scan -d '
+    SCORE=$(/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/scan -d '
 To: null@localhost
 From: watchdog@localhost