blob: 70c92b5c033547303aeb0fc673963453b8beb10e [file] [log] [blame]
Matthias Andreas Benkard97f12022026-10-23 08:46:40 +02001@version: 4.8
2@include "scl.conf"
3options {
4 chain_hostnames(off);
5 flush_lines(0);
6 use_dns(no);
7 dns_cache(no);
8 use_fqdn(no);
9 owner("root"); group("adm"); perm(0640);
10 stats(freq(0));
11 bad_hostname("^gconfd$");
12};
13source s_src {
14 unix-stream("/dev/log");
15 internal();
16};
17destination d_stdout { pipe("/dev/stdout"); };
18destination d_redis_ui_log {
19 redis(
20 host("redis-mailcow")
21 persist-name("redis1")
22 port(6379)
23 auth("`REDISPASS`")
24 command("LPUSH" "POSTFIX_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
25 );
26};
27filter f_mail { facility(mail); };
28# start
29# overriding warnings are still displayed when the entrypoint runs its initial check
30# warnings logged by postfix-mailcow to syslog are hidden to reduce repeating msgs
31# Some other warnings are ignored
32filter f_ignore {
33 not match("overriding earlier entry" value("MESSAGE"));
34 not match("TLS SNI from checks.mailcow.email" value("MESSAGE"));
35 not match("no SASL support" value("MESSAGE"));
36 not facility (local0, local1, local2, local3, local4, local5, local6, local7);
37};
38# end
39log {
40 source(s_src);
41 filter(f_ignore);
42 destination(d_stdout);
43 filter(f_mail);
44 destination(d_redis_ui_log);
45};