blob: 2ee4f6241fc607b4ffb69ebd28dcd9e7fb06a5f7 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001@version: 3.28
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002@include "scl.conf"
3options {
4 chain_hostnames(off);
5 flush_lines(0);
6 use_dns(no);
7 use_fqdn(no);
8 owner("root"); group("adm"); perm(0640);
9 stats_freq(0);
10 bad_hostname("^gconfd$");
11};
12source s_src {
13 unix-stream("/dev/log");
14 internal();
15};
16destination d_stdout { pipe("/dev/stdout"); };
17destination d_redis_ui_log {
18 redis(
19 host("redis-mailcow")
20 persist-name("redis1")
21 port(6379)
22 command("LPUSH" "DOVECOT_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
23 );
24};
25destination d_redis_f2b_channel {
26 redis(
27 host("redis-mailcow")
28 persist-name("redis2")
29 port(6379)
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020030 command("PUBLISH" "F2B_CHANNEL" "$(sanitize $MESSAGE)")
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010031 );
32};
33filter f_mail { facility(mail); };
34filter f_replica {
35 not match("User has no mail_replica in userdb" value("MESSAGE"));
36 not match("Error: sync: Unknown user in remote" value("MESSAGE"));
37};
38log {
39 source(s_src);
40 filter(f_replica);
41 destination(d_stdout);
42 filter(f_mail);
43 destination(d_redis_ui_log);
44 destination(d_redis_f2b_channel);
45};