blob: 519928954413117512af1fe9eb90e98c61e5e634 [file] [log] [blame]
Matthias Andreas Benkard9dabdab2024-03-06 13:12:09 +01001@version: 4.5
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 use_fqdn(no);
8 owner("root"); group("adm"); perm(0640);
Matthias Andreas Benkard9dabdab2024-03-06 13:12:09 +01009 stats(freq(0));
10 keep_timestamp(no);
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010011 bad_hostname("^gconfd$");
12};
Matthias Andreas Benkard9dabdab2024-03-06 13:12:09 +010013source s_dgram {
14 unix-dgram("/dev/log");
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010015 internal();
16};
17destination d_stdout { pipe("/dev/stdout"); };
18destination d_redis_ui_log {
19 redis(
20 host("`REDIS_SLAVEOF_IP`")
21 persist-name("redis1")
22 port(`REDIS_SLAVEOF_PORT`)
23 command("LPUSH" "DOVECOT_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
24 );
25};
26destination d_redis_f2b_channel {
27 redis(
28 host("`REDIS_SLAVEOF_IP`")
29 persist-name("redis2")
30 port(`REDIS_SLAVEOF_PORT`)
Matthias Andreas Benkard8f915942021-08-16 10:57:25 +020031 command("PUBLISH" "F2B_CHANNEL" "$(sanitize $MESSAGE)")
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010032 );
33};
34filter f_mail { facility(mail); };
35filter f_replica {
36 not match("User has no mail_replica in userdb" value("MESSAGE"));
37 not match("Error: sync: Unknown user in remote" value("MESSAGE"));
38};
39log {
Matthias Andreas Benkard9dabdab2024-03-06 13:12:09 +010040 source(s_dgram);
Matthias Andreas Benkard4edeb9f2021-01-02 15:32:21 +010041 filter(f_replica);
42 destination(d_stdout);
43 filter(f_mail);
44 destination(d_redis_ui_log);
45 destination(d_redis_f2b_channel);
46};