mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-04 04:29:17 +00:00
[Watchdog] Use socket to pipe to Rspamd
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user