浏览代码

[Postfix] Fix missing ltrim

andryyy 8 年之前
父节点
当前提交
446907944a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      data/Dockerfiles/postfix/syslog-ng.conf

+ 1 - 0
data/Dockerfiles/postfix/syslog-ng.conf

@@ -20,6 +20,7 @@ destination d_redis_ui_log {
     persist-name("redis1")
     port(6379)
     command("LPUSH" "POSTFIX_MAILLOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
+    command("LTRIM" "POSTFIX_MAILLOG" "0" "10000")
   );
 };
 destination d_redis_f2b_channel {