mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-11-24 08:32:50 +02:00
[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'];
|
||||
|
||||
if (empty($sender)) {
|
||||
error_log("QUARANTINE: Unknown sender, assuming null@localhost");
|
||||
$sender = 'null@localhost';
|
||||
}
|
||||
|
||||
try {
|
||||
$max_size = (int)$redis->Get('Q_MAX_SIZE');
|
||||
if (($max_size * 1048576) < $raw_size) {
|
||||
|
Loading…
Reference in New Issue
Block a user