[Postfix] Merge syslog filters

[Postfix] Create sasl_access map; Use JSON_VALUE and remove unnecessary like command
This commit is contained in:
andryyy
2020-09-17 19:47:11 +02:00
parent 09ec4fcd81
commit 85b027aa9d
3 changed files with 29 additions and 15 deletions

View File

@@ -35,15 +35,17 @@ filter f_mail { facility(mail); };
# start
# overriding warnings are still displayed when the entrypoint runs its initial check
# warnings logged by postfix-mailcow to syslog are hidden to reduce repeating msgs
filter f_overrides { not match("overriding earlier entry" value("MESSAGE")); };
# Some other warnings are ignored
filter f_ignore {
not match("overriding earlier entry" value("MESSAGE"));
not match("TLS SNI from checks.mailcow.email" value("MESSAGE"));
not match("no SASL support" value("MESSAGE"));
not facility (local0, local1, local2, local3, local4, local5, local6, local7);
};
# end
filter f_skip_local { not facility (local0, local1, local2, local3, local4, local5, local6, local7); };
filter f_checks { not match("TLS SNI from checks.mailcow.email" value("MESSAGE")); };
log {
source(s_src);
filter(f_skip_local);
filter(f_overrides);
filter(f_checks);
filter(f_ignore);
destination(d_stdout);
filter(f_mail);
destination(d_redis_ui_log);