[Rspamd] Quarantine: Set sender to null@localhost when sender is missing
This commit is contained in:
parent
1f5fcad499
commit
580b700eec
@ -62,6 +62,11 @@ $symbols = $headers['X-Rspamd-Symbols'];
|
|||||||
|
|
||||||
$raw_size = (int)$_SERVER['CONTENT_LENGTH'];
|
$raw_size = (int)$_SERVER['CONTENT_LENGTH'];
|
||||||
|
|
||||||
|
if (empty($sender)) {
|
||||||
|
error_log("QUARANTINE: Unknown sender, assuming null@localhost");
|
||||||
|
$sender = 'null@localhost';
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$max_size = (int)$redis->Get('Q_MAX_SIZE');
|
$max_size = (int)$redis->Get('Q_MAX_SIZE');
|
||||||
if (($max_size * 1048576) < $raw_size) {
|
if (($max_size * 1048576) < $raw_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user