mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
13 lines
351 B
PHP
13 lines
351 B
PHP
<?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']);
|