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: exclude Mail Flow monitoring from logs and stats

a411a357
Michael Kuron <[email protected]> 9 years ago
data/conf/rspamd/lua/rspamd.local.lua | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Diff

diff --git a/data/conf/rspamd/lua/rspamd.local.lua b/data/conf/rspamd/lua/rspamd.local.lua
index 62383707..d44f0feb 100644
--- a/data/conf/rspamd/lua/rspamd.local.lua
+++ b/data/conf/rspamd/lua/rspamd.local.lua
@@ -107,4 +107,16 @@ rspamd_config:register_symbol({
     return true
   end,
   priority = 20
-})
\ No newline at end of file
+})
+
+rspamd_config:register_symbol({
+  name = 'NO_LOG_STAT_MAILFLOW',
+  type = 'postfilter',
+  callback = function(task)
+    local sender = task:get_header('From')
+    if sender == '[email protected]' then
+      task:set_flag('no_log')
+      task:set_flag('no_stat')
+    end
+  end
+})