blob: 8f09d04a499eea9d564c3d648cb5d76cd537bf2d [file] [log] [blame]
Matthias Andreas Benkard97f12022026-10-23 08:46:40 +02001@version: 4.8
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +01002@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);
Matthias Andreas Benkard97f12022026-10-23 08:46:40 +020010 stats(freq(0));
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010011 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)
Matthias Andreas Benkard97f12022026-10-23 08:46:40 +020023 auth("`REDISPASS`")
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010024 command("LPUSH" "POSTFIX_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
25 );
26};
27destination d_redis_f2b_channel {
28 redis(
29 host("redis-mailcow")
30 persist-name("redis2")
31 port(6379)
Matthias Andreas Benkard97f12022026-10-23 08:46:40 +020032 auth("`REDISPASS`")
Matthias Andreas Benkard8f915942021-08-16 10:57:25 +020033 command("PUBLISH" "F2B_CHANNEL" "$(sanitize $MESSAGE)")
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010034 );
35};
36filter f_mail { facility(mail); };
37# start
38# overriding warnings are still displayed when the entrypoint runs its initial check
39# warnings logged by postfix-mailcow to syslog are hidden to reduce repeating msgs
40# Some other warnings are ignored
41filter f_ignore {
42 not match("overriding earlier entry" value("MESSAGE"));
43 not match("TLS SNI from checks.mailcow.email" value("MESSAGE"));
44 not match("no SASL support" value("MESSAGE"));
45 not facility (local0, local1, local2, local3, local4, local5, local6, local7);
46};
47# end
48log {
49 source(s_src);
50 filter(f_ignore);
51 destination(d_stdout);
52 filter(f_mail);
53 destination(d_redis_ui_log);
54 destination(d_redis_f2b_channel);
55};