|
@@ -20,7 +20,6 @@ destination d_redis_ui_log {
|
|
|
persist-name("redis1")
|
|
|
port(6379)
|
|
|
command("LPUSH" "DOVECOT_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
|
|
|
- command("LTRIM" "DOVECOT_MAILLOG" "0" "10000")
|
|
|
);
|
|
|
};
|
|
|
destination d_redis_f2b_channel {
|
|
@@ -31,6 +30,14 @@ destination d_redis_f2b_channel {
|
|
|
command("PUBLISH" "F2B_CHANNEL" "$MESSAGE")
|
|
|
);
|
|
|
};
|
|
|
+destination d_redis_cleanup {
|
|
|
+ redis(
|
|
|
+ host("redis-mailcow")
|
|
|
+ persist-name("redis3")
|
|
|
+ port(6379)
|
|
|
+ command("LTRIM" "DOVECOT_MAILLOG" "0" "9999")
|
|
|
+ );
|
|
|
+};
|
|
|
filter f_mail { facility(mail); };
|
|
|
log {
|
|
|
source(s_src);
|
|
@@ -38,4 +45,6 @@ log {
|
|
|
filter(f_mail);
|
|
|
destination(d_redis_ui_log);
|
|
|
destination(d_redis_f2b_channel);
|
|
|
+ destination(d_redis_cleanup);
|
|
|
+
|
|
|
};
|