[Watchdog] Use socket to pipe to Rspamd
parent
004d262e41
commit
83094a773e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue