1
0
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:
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

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