From b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 17 Oct 2019 21:00:14 +0200 Subject: [PATCH] [Netfilter] Add missing rspamderror php... --- data/web/_rspamderror.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/web/_rspamderror.php diff --git a/data/web/_rspamderror.php b/data/web/_rspamderror.php new file mode 100644 index 00000000..7cde1601 --- /dev/null +++ b/data/web/_rspamderror.php @@ -0,0 +1,12 @@ +connect('redis-mailcow', 6379); +} +catch (Exception $e) { + exit; +} +header('Content-Type: application/json'); +echo '{"error":"Unauthorized"}'; +error_log("Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']); +$redis->publish("F2B_CHANNEL", "Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']);