[Netfilter] Add missing rspamderror php...

master
andryyy 2019-10-17 21:00:14 +02:00
parent 0f590eacfa
commit b02f73e68e
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
$redis = new Redis();
try {
$redis->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']);