From 008d500f4da0aba5d32f9c8dc9623254b547868f Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 1 Sep 2017 23:39:51 +0200 Subject: [PATCH] [Compose, Dovecot] Fixed missing ltrim --- data/Dockerfiles/dovecot/syslog-ng.conf | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/dovecot/syslog-ng.conf b/data/Dockerfiles/dovecot/syslog-ng.conf index 0257d6a1..d14c2ad1 100644 --- a/data/Dockerfiles/dovecot/syslog-ng.conf +++ b/data/Dockerfiles/dovecot/syslog-ng.conf @@ -20,6 +20,7 @@ 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 { diff --git a/docker-compose.yml b/docker-compose.yml index db581750..29f1038f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -181,7 +181,7 @@ services: - sogo dovecot-mailcow: - image: mailcow/dovecot:1.7 + image: mailcow/dovecot:1.8 build: ./data/Dockerfiles/dovecot depends_on: unbound-mailcow: