From 23cf8995df605affaa21ffb84ba258c8971dbfe0 Mon Sep 17 00:00:00 2001
From: andryyy <andre.peters@debinux.de>
Date: Wed, 5 Feb 2020 11:01:50 +0100
Subject: [PATCH] [Dovecot] Set replicator options by default - unused, no
 support or docs as of today

---
 data/conf/dovecot/dovecot.conf | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/data/conf/dovecot/dovecot.conf b/data/conf/dovecot/dovecot.conf
index 3a474975..e10a8a3a 100644
--- a/data/conf/dovecot/dovecot.conf
+++ b/data/conf/dovecot/dovecot.conf
@@ -81,6 +81,7 @@ service doveadm {
   inet_listener {
     port = 12345
   }
+  vsz_limit=2048 MB
 }
 namespace inbox {
   inbox = yes
@@ -396,6 +397,25 @@ imap_max_line_length = 2 M
 #auth_cache_negative_ttl = 0
 #auth_cache_ttl = 30 s
 #auth_cache_size = 2 M
+service replicator {
+  process_min_avail = 1
+}
+service aggregator {
+  fifo_listener replication-notify-fifo {
+    user = vmail
+  }
+  unix_listener replication-notify {
+    user = vmail
+  }
+}
+service replicator {
+  unix_listener replicator-doveadm {
+    mode = 0666
+  }
+}
+replication_max_conns = 10
+doveadm_port = 12345
+replication_dsync_parameters = -d -l 30 -U -n INBOX
 !include_try /etc/dovecot/extra.conf
 !include_try /etc/dovecot/sogo-sso.conf
 !include_try /etc/dovecot/shared_namespace.conf