[Watchdog] Use socket to pipe to Rspamd

master
André Peters 2018-02-08 22:57:29 +01:00
parent 004d262e41
commit 83094a773e
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ rspamd_checks() {
while [ ${err_count} -lt ${THRESHOLD} ]; do while [ ${err_count} -lt ${THRESHOLD} ]; do
host_ip=$(get_container_ip rspamd-mailcow) host_ip=$(get_container_ip rspamd-mailcow)
err_c_cur=${err_count} 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 To: null@localhost
From: watchdog@localhost From: watchdog@localhost