<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Verdana,Geneva,sans-serif'>
<p>Make file 90-replication.com on primary and secudary mail server laik in example (change ip - or put hostname and password) </p>
<p># Create 90-replication.conf</p>
<p>nano /etc/dovecot/conf.d/90-replication.conf</p>
<p>plugin {<br /> mail_replica = tcp:ip:12345<br />}</p>
<p>service replicator {<br /> process_min_avail = 1</p>
<p> unix_listener replicator-doveadm {<br /> mode = 0600<br /> user = vmail<br /> }<br />}</p>
<p>service aggregator {<br /> fifo_listener replication-notify-fifo {<br /> user = vmail<br /> group = vmail<br /> mode = 0666<br /> }<br /> unix_listener replication-notify {<br /> user = vmail<br /> group = vmail<br /> mode = 0666<br /> }<br />}</p>
<p>service doveadm {<br /> inet_listener {<br /> port = 12345<br /> ssl = no<br /> }<br />}</p>
<p>doveadm_password = YourPassword</p>
<p><br /></p>
<div id="signature"></div>
<p><br /></p>
<p id="reply-intro">Dana 05.09.2022 12:15, Silvio Siefke je napisao(la):</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hello, <br /><br />I try the replication of two Dovecot servers, but some errors always<br />appear. Maybe someone here has an idea what's going wrong. <br />As an MTA I use OpenSMTPD.<br /><br />Thank You<br />Silvio<br /><br />dovecot -n on MX 1<br /># 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf<br /># Pigeonhole version 0.5.13 (cdd19fe3)<br /># OS: Linux 5.10.0-16-amd64 x86_64 Debian 11.4 <br /># Hostname: asia.sisi-systems.ovh<br />auth_mechanisms = plain login<br />doveadm_password = # hidden, use -P to show it<br />doveadm_port = 20000<br />mail_gid = vmail<br />mail_location = maildir:~/Maildir<br />mail_plugins = " notify replication"<br />mail_privileged_group = vmail<br />mail_uid = vmail<br />managesieve_notify_capability = mailto<br />managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve<br />namespace inbox {<br /> inbox = yes<br /> location = <br /> mailbox Drafts {<br /> auto = subscribe<br /> special_use = \Drafts<br /> }<br /> mailbox Sent {<br /> auto = subscribe<br /> special_use = \Sent<br /> }<br /> mailbox Spam {<br /> auto = subscribe<br /> special_use = \Junk<br /> }<br /> mailbox Trash {<br /> auto = subscribe<br /> special_use = \Trash<br /> }<br /> prefix = <br />}<br />passdb {<br /> args = scheme=SHA512-CRYPT username_format=%u /etc/dovecot/users<br /> driver = passwd-file<br />}<br />plugin {<br /> imapsieve_mailbox1_before = file:/var/vmail/sieve/global/learn-spam.sieve<br /> imapsieve_mailbox1_causes = COPY<br /> imapsieve_mailbox1_name = Spam<br /> imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve<br /> imapsieve_mailbox2_causes = COPY<br /> imapsieve_mailbox2_from = Spam<br /> imapsieve_mailbox2_name = *<br /> mail_replica = tcp:192.168.1.112<br /> quota = maildir:User quota<br /> quota_exceeded_message = Benutzer %u hat das Speichervolumen überschritten. / User %u has exhausted allowed storage space.<br /> replication_sync_timeout = 2<br /> sieve = file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve<br /> sieve_before = /var/vmail/sieve/global/spam-global.sieve<br /> sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment<br /> sieve_pipe_bin_dir = /usr/lib/dovecot/sieve-pipe<br /> sieve_plugins = sieve_imapsieve sieve_extprograms<br />}<br />protocols = lmtp imap pop3 sieve<br />service aggregator {<br /> fifo_listener replication-notify-fifo {<br /> user = vmail<br /> }<br /> unix_listener replication-notify {<br /> user = vmail<br /> }<br />}<br />service doveadm {<br /> inet_listener {<br /> port = 20000<br /> }<br />}<br />service imap-login {<br /> inet_listener imap {<br /> port = 143<br /> }<br />}<br />service lmtp {<br /> unix_listener lmtp {<br /> group = vmail<br /> user = vmail<br /> }<br />}<br />service managesieve-login {<br /> inet_listener sieve {<br /> port = 4190<br /> }<br />}<br />service pop3-login {<br /> inet_listener pop3 {<br /> port = 110<br /> }<br /> inet_listener pop3s {<br /> port = 995<br /> ssl = yes<br /> }<br />}<br />service replicator {<br /> process_min_avail = 1<br /> unix_listener replicator-doveadm {<br /> mode = 0600<br /> user = vmail<br /> }<br />}<br />ssl = required<br />ssl_cert = </etc/lego/certificates/imap.sisi-systems.ovh.crt<br />ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384<br />ssl_client_ca_dir = /etc/ssl/certs<br />ssl_dh = # hidden, use -P to show it<br />ssl_key = # hidden, use -P to show it<br />ssl_min_protocol = TLSv1.2<br />userdb {<br /> args = username_format=%u /etc/dovecot/users<br /> driver = passwd-file<br /> override_fields = uid=vmail gid=vmail home=/home/vmail/%d/%n<br />}<br />protocol imap {<br /> imap_idle_notify_interval = 29 mins<br /> mail_max_userip_connections = 20<br /> mail_plugins = " notify replication quota imap_quota imap_sieve"<br />}<br />protocol lmtp {<br /> mail_plugins = " notify replication sieve notify push_notification"<br /> postmaster_address = <a href="mailto:network@sisi-systems.ovh">network@sisi-systems.ovh</a><br />}<br />protocol pop3 {<br /> mail_max_userip_connections = 10<br /> mail_plugins = " notify replication"<br />}<br /><br />dovecot -n on MX 2<br /># 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf<br /># Pigeonhole version 0.5.13 (cdd19fe3)<br /># OS: Linux 5.10.0-15-amd64 x86_64 Debian 11.4 <br /># Hostname: bulgaria.sisi-systems.ovh<br />auth_mechanisms = plain login<br />doveadm_password = # hidden, use -P to show it<br />doveadm_port = 20000<br />mail_gid = vmail<br />mail_location = maildir:~/Maildir<br />mail_plugins = " notify replication"<br />mail_privileged_group = vmail<br />mail_uid = vmail<br />managesieve_notify_capability = mailto<br />managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve<br />namespace inbox {<br /> inbox = yes<br /> location = <br /> mailbox Drafts {<br /> auto = subscribe<br /> special_use = \Drafts<br /> }<br /> mailbox Sent {<br /> auto = subscribe<br /> special_use = \Sent<br /> }<br /> mailbox Spam {<br /> auto = subscribe<br /> special_use = \Junk<br /> }<br /> mailbox Trash {<br /> auto = subscribe<br /> special_use = \Trash<br /> }<br /> prefix = <br />}<br />passdb {<br /> args = scheme=SHA512-CRYPT username_format=%u /etc/dovecot/users<br /> driver = passwd-file<br />}<br />plugin {<br /> imapsieve_mailbox1_before = file:/var/vmail/sieve/global/learn-spam.sieve<br /> imapsieve_mailbox1_causes = COPY<br /> imapsieve_mailbox1_name = Spam<br /> imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve<br /> imapsieve_mailbox2_causes = COPY<br /> imapsieve_mailbox2_from = Spam<br /> imapsieve_mailbox2_name = *<br /> mail_replica = tcp:192.168.1.102<br /> quota = maildir:User quota<br /> quota_exceeded_message = Benutzer %u hat das Speichervolumen überschritten. / User %u has exhausted allowed storage space.<br /> replication_sync_timeout = 2<br /> sieve = file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve<br /> sieve_before = /var/vmail/sieve/global/spam-global.sieve<br /> sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment<br /> sieve_pipe_bin_dir = /usr/lib/dovecot/sieve-pipe<br /> sieve_plugins = sieve_imapsieve sieve_extprograms<br />}<br />protocols = lmtp imap pop3 sieve<br />service aggregator {<br /> fifo_listener replication-notify-fifo {<br /> user = vmail<br /> }<br /> unix_listener replication-notify {<br /> user = vmail<br /> }<br />}<br />service doveadm {<br /> inet_listener {<br /> port = 20000<br /> }<br />}<br />service imap-login {<br /> inet_listener imap {<br /> port = 143<br /> }<br />}<br />service lmtp {<br /> unix_listener lmtp {<br /> group = vmail<br /> user = vmail<br /> }<br />}<br />service managesieve-login {<br /> inet_listener sieve {<br /> port = 4190<br /> }<br />}<br />service pop3-login {<br /> inet_listener pop3 {<br /> port = 110<br /> }<br /> inet_listener pop3s {<br /> port = 995<br /> ssl = yes<br /> }<br />}<br />service replicator {<br /> process_min_avail = 1<br /> unix_listener replicator-doveadm {<br /> mode = 0600<br /> user = vmail<br /> }<br />}<br />ssl = required<br />ssl_cert = </etc/lego/certificates/imap.sisi-systems.ovh.crt<br />ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384<br />ssl_client_ca_dir = /etc/ssl/certs<br />ssl_dh = # hidden, use -P to show it<br />ssl_key = # hidden, use -P to show it<br />ssl_min_protocol = TLSv1.2<br />userdb {<br /> args = username_format=%u /etc/dovecot/users<br /> driver = passwd-file<br /> override_fields = uid=vmail gid=vmail home=/home/vmail/%d/%n<br />}<br />protocol imap {<br /> imap_idle_notify_interval = 29 mins<br /> mail_max_userip_connections = 20<br /> mail_plugins = " notify replication quota imap_quota imap_sieve"<br />}<br />protocol lmtp {<br /> mail_plugins = " notify replication sieve notify push_notification"<br /> postmaster_address = <a href="mailto:network@sisi-systems.ovh">network@sisi-systems.ovh</a><br />}<br />protocol pop3 {<br /> mail_max_userip_connections = 10<br /> mail_plugins = " notify replication"<br />}<br /><br />Log MX 1 (asia)<br />Sep 5 18:02:12 asia dovecot: replicator: Fatal: master: service(replicator): child 706077 killed with signal 6 (core dumps disabled - <a href="https://dovecot.org/bugreport.html#coredumps" target="_blank" rel="noopener noreferrer">https://dovecot.org/bugreport.html#coredumps</a>)<br />Sep 5 18:02:18 asia dovecot: replicator: Panic: data stack: Out of memory when allocating 268435496 bytes<br />Sep 5 18:02:18 asia dovecot: replicator: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f27434e84e2] -> /usr/lib/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f27434e85fe] -> /usr/lib/dovecot/libdovecot.so.0(+0xfc49b) [0x7f27434f449b] -> /usr/lib/dovecot/libdovecot.so.0(+0xfc531) [0x7f27434f4531] -> /usr/lib/dovecot/libdovecot.so.0(+0x53aee) [0x7f274344baee] -> /usr/lib/dovecot/libdovecot.so.0(+0x53435) [0x7f274344b435] -> /usr/lib/dovecot/libdovecot.so.0(+0xf5d88) [0x7f27434edd88] -> /usr/lib/dovecot/libdovecot.so.0(+0x11b818) [0x7f2743513818] -> /usr/lib/dovecot/libdovecot.so.0(+0xf25f2) [0x7f27434ea5f2] -> /usr/lib/dovecot/libdovecot.so.0(+0xf26a9) [0x7f27434ea6a9] -> /usr/lib/dovecot/libdovecot.so.0(buffer_write+0x1e) [0x7f27434ea8be] -> dovecot/replicator(replicator_queue_push+0x14a) [0x5633c8c4eb1a] -> dovecot/replicator(+0x5296) [0x5633c8c4e296] -> dovecot/replicator(+0x493e) [0x5633c8c4d93e] -> dovecot/replicator(+0x4b1c) [0x5633c8c4db1c] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) [0x7f2743509f59] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x132) [0x7f274350b592] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x50) [0x7f274350a000] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0x7f274350a1c0] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f27434804e3] -> dovecot/replicator(main+0x18d) [0x5633c8c4ccad] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f2743254d0a] -> dovecot/replicator(_start+0x2a) [0x5633c8c4cd6a]<br />Sep 5 18:02:18 asia dovecot: replicator: Fatal: master: service(replicator): child 706082 killed with signal 6 (core dumps disabled - <a href="https://dovecot.org/bugreport.html#coredumps" target="_blank" rel="noopener noreferrer">https://dovecot.org/bugreport.html#coredumps</a>)<br /><br />Log MX 2 (bulgaria)<br />Sep 5 13:02:05 bulgaria dovecot: replicator: Panic: data stack: Out of memory when allocating 268435496 bytes<br />Sep 5 13:02:05 bulgaria dovecot: replicator: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f813fa394e2] -> /usr/lib/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f813fa395fe] -> /usr/lib/dovecot/libdovecot.so.0(+0xfc49b) [0x7f813fa4549b] -> /usr/lib/dovecot/libdovecot.so.0(+0xfc531) [0x7f813fa45531] -> /usr/lib/dovecot/libdovecot.so.0(+0x53aee) [0x7f813f99caee] -> /usr/lib/dovecot/libdovecot.so.0(+0x53435) [0x7f813f99c435] -> /usr/lib/dovecot/libdovecot.so.0(+0xf5d88) [0x7f813fa3ed88] -> /usr/lib/dovecot/libdovecot.so.0(+0x11b818) [0x7f813fa64818] -> /usr/lib/dovecot/libdovecot.so.0(+0xf25f2) [0x7f813fa3b5f2] -> /usr/lib/dovecot/libdovecot.so.0(+0xf26a9) [0x7f813fa3b6a9] -> /usr/lib/dovecot/libdovecot.so.0(buffer_write+0x1e) [0x7f813fa3b8be] -> dovecot/replicator(replicator_queue_push+0x14a) [0x5646d37c5b1a] -> dovecot/replicator(+0x5296) [0x5646d37c5296] -> dovecot/replicator(+0x493e) [0x5646d37c493e] -> dovecot/replicator(+0x4b1c) [0x5646d37c4b1c] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) [0x7f813fa5af59] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x132) [0x7f813fa5c592] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x50) [0x7f813fa5b000] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0x7f813fa5b1c0] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f813f9d14e3] -> dovecot/replicator(main+0x18d) [0x5646d37c3cad] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f813f7a5d0a] -> dovecot/replicator(_start+0x2a) [0x5646d37c3d6a]<br />Sep 5 13:02:05 bulgaria dovecot: replicator: Fatal: master: service(replicator): child 144867 killed with signal 6 (core dumps disabled - <a href="https://dovecot.org/bugreport.html#coredumps" target="_blank" rel="noopener noreferrer">https://dovecot.org/bugreport.html#coredumps</a>)</div>
</blockquote>
</body></html>