[Rspamd] Quarantine: Set sender to null@localhost when sender is missing

master
andryyy 2020-03-03 19:10:28 +01:00
parent 1f5fcad499
commit 580b700eec
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 5 additions and 0 deletions

View File

@ -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) {