mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-23 10:16:18 +00:00
[Netfilter] Add missing rspamderror php...
This commit is contained in:
parent
0f590eacfa
commit
b02f73e68e
1 changed files with 12 additions and 0 deletions
12
data/web/_rspamderror.php
Normal file
12
data/web/_rspamderror.php
Normal 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']);
|
||||
Loading…
Add table
Add a link
Reference in a new issue