NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

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

580b700e
andryyy <[email protected]> 6 years ago
data/conf/rspamd/meta_exporter/pipe.php | 5 +++++
 1 file changed, 5 insertions(+)

Diff

diff --git a/data/conf/rspamd/meta_exporter/pipe.php b/data/conf/rspamd/meta_exporter/pipe.php
index 31f6037f..fe162246 100644
--- a/data/conf/rspamd/meta_exporter/pipe.php
+++ b/data/conf/rspamd/meta_exporter/pipe.php
@@ -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) {