<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Helvetica, Arial, sans-serif">i ran into this as well<br>
<br>
here is the full config for mine with replication<br>
<br>
# cat dovecot.conf<br>
# 2.3.14 (cee3cbc0d): /usr/local/etc/dovecot/dovecot.conf<br>
# OS: FreeBSD 12.1-RELEASE amd64 <br>
# Hostname: mail18.scom.ca<br>
<br>
auth_debug = no<br>
auth_debug_passwords = no <br>
<br>
default_process_limit = 16384 <br>
<br>
mail_debug = no <br>
<br>
#lock_method = dotlock<br>
#mail_max_lock_timeout = 300s<br>
<br>
#mbox_read_locks = dotlock<br>
#mbox_write_locks = dotlock<br>
<br>
mmap_disable = yes<br>
dotlock_use_excl = no<br>
mail_fsync = always<br>
mail_nfs_storage = no <br>
mail_nfs_index = no <br>
<br>
auth_mechanisms = plain login<br>
auth_verbose = yes<br>
base_dir = /data/dovecot/run/<br>
debug_log_path = syslog<br>
disable_plaintext_auth = no<br>
dsync_features = empty-header-workaround<br>
<br>
info_log_path = syslog<br>
login_greeting = SCOM.CA Internet Services Inc. - Dovecot ready<br>
login_log_format_elements = user=<%u> method=%m rip=%r
lip=%l mpid=%e %c<br>
<br>
<br>
mail_location = maildir:~/<br>
<br>
mail_plugins = " virtual notify replication fts fts_lucene " <br>
mail_prefetch_count = 20<br>
<br>
protocols = imap pop3 lmtp sieve<br>
<br>
<br>
protocol lmtp {<br>
mail_plugins = $mail_plugins sieve <br>
postmaster_address = <br>
}<br>
<br>
service lmtp {<br>
process_limit=1000<br>
vsz_limit = 512m <br>
client_limit=1<br>
unix_listener /usr/home/postfix.local/private/dovecot-lmtp {<br>
group = postfix<br>
mode = 0600<br>
user = postfix<br>
}<br>
}<br>
<br>
protocol lda {<br>
mail_plugins = $mail_plugins sieve<br>
}<br>
<br>
service lda {<br>
process_limit=1000<br>
vsz_limit = 512m<br>
}<br>
<br>
service imap {<br>
process_limit=4096<br>
vsz_limit = 2g <br>
client_limit=1<br>
}<br>
<br>
service pop3 {<br>
process_limit=1000<br>
vsz_limit = 512m<br>
client_limit=1<br>
}<br>
<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 Trash {<br>
auto = subscribe<br>
special_use = \Trash<br>
}<br>
prefix = <br>
separator = /<br>
}<br>
<br>
passdb {<br>
args = /usr/local/etc/dovecot/dovecot-pgsql.conf<br>
driver = sql<br>
}<br>
<br>
doveadm_port = 12345<br>
doveadm_password = secretxxxx<br>
<br>
service doveadm {<br>
process_limit = 0<br>
process_min_avail = 0<br>
idle_kill = 0<br>
client_limit = 1<br>
user = vmail<br>
inet_listener {<br>
port = 12345<br>
}<br>
}<br>
<br>
service config {<br>
unix_listener config {<br>
user = vmail<br>
}<br>
}<br>
<br>
dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server
-u%u<br>
#dsync_remote_cmd = doveadm sync -d -u%u<br>
<br>
replication_dsync_parameters = -d -N -l 300 -U<br>
<br>
plugin {<br>
mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename<br>
mail_log_fields = uid, box, msgid, from, subject, size, vsize,
flags<br>
push_notification_driver = dlog<br>
<br>
sieve = <a class="moz-txt-link-freetext" href="file:~/sieve;active=~/sieve/.dovecot.sieve">file:~/sieve;active=~/sieve/.dovecot.sieve</a><br>
#sieve = ~/.dovecot.sieve<br>
sieve_duplicate_default_period = 1h<br>
sieve_duplicate_max_period = 1h <br>
sieve_extensions = +duplicate +notify +imapflags
+vacation-seconds <br>
sieve_global_dir = /usr/local/etc/dovecot/sieve<br>
sieve_before = /usr/local/etc/dovecot/sieve/duplicates.sieve<br>
<br>
<br>
mail_replica = tcp:10.221.0.19:12345<br>
#mail_replica = <a class="moz-txt-link-abbreviated" href="mailto:remote:vmail@10.221.0.19">remote:vmail@10.221.0.19</a><br>
#replication_sync_timeout = 2<br>
<br>
fts = lucene<br>
fts_lucene = whitespace_chars=@.<br>
fts_autoindex = yes<br>
fts_languages = en<br>
}<br>
<br>
#sieve_extensions = vnd.dovecot.duplicate<br>
<br>
#sieve_plugins = vnd.dovecot.duplicate<br>
<br>
service anvil {<br>
process_limit = 1<br>
client_limit=5000<br>
vsz_limit = 512m<br>
unix_listener anvil {<br>
group = vmail<br>
mode = 0666<br>
}<br>
}<br>
<br>
service indexer-worker {<br>
vsz_limit = 2g <br>
}<br>
<br>
<br>
<br>
service auth {<br>
process_limit = 1<br>
client_limit=5000<br>
vsz_limit = 1g <br>
<br>
unix_listener auth-userdb {<br>
mode = 0660<br>
user = vmail <br>
group = vmail <br>
}<br>
unix_listener /var/spool/postfix/private/auth {<br>
mode = 0666<br>
}<br>
<br>
}<br>
<br>
service stats {<br>
process_limit = 1000<br>
vsz_limit = 1g<br>
unix_listener stats-reader {<br>
group = vmail<br>
mode = 0666<br>
}<br>
unix_listener stats-writer {<br>
group = vmail<br>
mode = 0666<br>
}<br>
}<br>
userdb {<br>
args = /usr/local/etc/dovecot/dovecot-pgsql.conf<br>
driver = sql<br>
<br>
}<br>
<br>
protocol imap {<br>
mail_max_userip_connections = 50 <br>
mail_plugins = $mail_plugins notify replication<br>
}<br>
<br>
protocol pop3 {<br>
mail_max_userip_connections = 50<br>
mail_plugins = $mail_plugins notify replication<br>
}<br>
<br>
protocol imaps {<br>
mail_max_userip_connections = 25<br>
mail_plugins = $mail_plugins notify replication<br>
}<br>
<br>
protocol pop3s {<br>
mail_max_userip_connections = 25<br>
mail_plugins = $mail_plugins notify replication<br>
}<br>
<br>
<br>
service managesieve-login {<br>
process_limit = 1000<br>
vsz_limit = 1g<br>
inet_listener sieve {<br>
port = 4190<br>
}<br>
}<br>
<br>
verbose_proctitle = yes<br>
<br>
replication_max_conns = 100 <br>
<br>
replication_full_sync_interval = 1d <br>
<br>
service replicator {<br>
client_limit = 0<br>
drop_priv_before_exec = no<br>
idle_kill = 4294967295s<br>
process_limit = 1<br>
process_min_avail = 0<br>
service_count = 0<br>
vsz_limit = 8g<br>
unix_listener replicator-doveadm {<br>
mode = 0600<br>
user = vmail<br>
}<br>
vsz_limit = 8192M<br>
}<br>
<br>
<br>
service aggregator {<br>
process_limit = 1000<br>
#vsz_limit = 1g<br>
fifo_listener replication-notify-fifo {<br>
user = vmail<br>
group = vmail<br>
mode = 0666<br>
}<br>
<br>
}<br>
<br>
service pop3-login {<br>
process_limit = 1000<br>
client_limit = 100<br>
vsz_limit = 512m <br>
} <br>
<br>
<br>
service imap-urlauth-login {<br>
process_limit = 1000<br>
client_limit = 1000<br>
vsz_limit = 1g<br>
}<br>
<br>
<br>
service imap-login {<br>
process_limit=1000<br>
client_limit = 1000<br>
vsz_limit = 1g<br>
} <br>
<br>
<br>
protocol sieve {<br>
managesieve_implementation_string = Dovecot Pigeonhole<br>
managesieve_max_line_length = 65536<br>
}<br>
<br>
<br>
<br>
<br>
#Addition ssl config<br>
!include sni.conf<br>
<br>
with sni cert support (examples)<br>
<br>
# cat sni.conf<br>
#sni.conf<br>
ssl = yes<br>
verbose_ssl = yes<br>
ssl_dh =</usr/local/etc/dovecot/dh-4096.pem<br>
ssl_prefer_server_ciphers = yes<br>
#ssl_min_protocol = TLSv1.2<br>
<br>
#Default *.scom.ca<br>
ssl_key =</usr/local/etc/dovecot/scom.pem<br>
ssl_cert =</usr/local/etc/dovecot/scom.pem<br>
ssl_ca =</usr/local/etc/dovecot/scom.pem<br>
<br>
local_name .scom.ca {<br>
ssl_key =</usr/local/etc/dovecot/scom.pem<br>
ssl_cert =</usr/local/etc/dovecot/scom.pem<br>
ssl_ca =</usr/local/etc/dovecot/scom.pem<br>
<br>
}<br>
<br>
local_name mail.clancyca.com {<br>
ssl_key =</usr/local/etc/dovecot/cert/mail.clancyca.com<br>
ssl_cert =</usr/local/etc/dovecot/cert/mail.clancyca.com<br>
ssl_ca =</usr/local/etc/dovecot/cert/mail.clancyca.com<br>
}<br>
<br>
local_name mail.paulkudla.net {<br>
ssl_key =</usr/local/etc/dovecot/cert/mail.paulkudla.net<br>
ssl_cert =</usr/local/etc/dovecot/cert/mail.paulkudla.net<br>
ssl_ca =</usr/local/etc/dovecot/cert/mail.paulkudla.net<br>
}<br>
<br>
local_name mail.ekst.ca {<br>
ssl_key =</usr/local/etc/dovecot/cert/mail.ekst.ca<br>
ssl_cert =</usr/local/etc/dovecot/cert/mail.ekst.ca<br>
ssl_ca =</usr/local/etc/dovecot/cert/mail.ekst.ca<br>
}<br>
<br>
local_name mail.hamletdevelopments.ca {<br>
ssl_key
=</usr/local/etc/dovecot/cert/mail.hamletdevelopments.ca<br>
ssl_cert
=</usr/local/etc/dovecot/cert/mail.hamletdevelopments.ca<br>
ssl_ca
=</usr/local/etc/dovecot/cert/mail.hamletdevelopments.ca<br>
}<br>
<br>
pg sql support supporting replication<br>
<br>
# cat dovecot-pgsql.conf<br>
driver = pgsql<br>
connect = host=localhost port=5433 dbname=scom_billing user=pgsql
password=<br>
default_pass_scheme = PLAIN <br>
<br>
password_query = SELECT username as user, password FROM
email_users WHERE username = '%u' and password <> 'alias'
and status = True and destination = '%u'<br>
<br>
user_query = SELECT home, uid, gid FROM email_users WHERE username
= '%u' and password <> 'alias' and status = True and
destination = '%u'<br>
<br>
#iterate_query = SELECT user, password FROM email_users WHERE
username = '%u' and password <> 'alias' and status = True
and destination = '%u'<br>
<br>
iterate_query = SELECT "username" as user, domain FROM email_users
WHERE status = True and alias_flag = False<br>
<br>
<br>
</font>
<div class="moz-signature">
<font color="blue">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<title></title>
<br>
<br>
Happy Friday !!!<br>
Thanks - paul<br>
<br>
Paul Kudla<br>
<br>
<br>
<a href="http://www.scom.ca"><img alt="Scom.ca Internet
Services" src="cid:part1.CiX9nPD0.y0Ny0dQX@scom.ca"
width="191" height="43" border="0"></a><br>
004-1009 Byron Street South<br>
Whitby, Ontario - Canada<br>
L1N 4S3<br>
<br>
Toronto 416.642.7266<br>
Main 1.866.411.7266<br>
Fax 1.888.892.7266<br>
Email <a class="moz-txt-link-abbreviated" href="mailto:paul@scom.ca">paul@scom.ca</a>
</font></div>
<div class="moz-cite-prefix">On 1/5/2023 8:56 PM, Gerben Wierda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:652482CB-015E-40A3-9159-79B9A3F51423@rna.nl">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""><span
style="font-family: Helvetica; font-size: 12px;" class="">One
step further in my quest to create a replacement mail
server.</span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""><span
style="font-family: Helvetica; font-size: 12px;" class=""><br
class="">
</span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""><span
style="font-family: Helvetica; font-size: 12px;" class="">I
now have my old mail server (2.3.19.1, macOS + MacPorts) and
my new (2.3.20, Alpine Linux, Docker, apk package). When I
turn on replication it works, but, after a while I see:</span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""><br
class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Jan
06 00:50:31 replicator: Panic: data stack: Out of memory when
allocating 268435496 bytes</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Jan
06 00:50:32 replicator: Fatal: master: service(replicator):
child 133 killed with signal 6 (core dumped)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Jan
06 00:50:32 lmtp(pid 195 user sysbh): Warning:
replication(sysbh): Sync failure: </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Jan
06 00:50:32 lmtp(pid 195 user sysbh): Warning:
replication(sysbh): Remote sent invalid input: -</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class="">I've removed synchronous operation for now (found a
message on the net suggesting that) but is this known and what
does it mean?</div>
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0,
0, 0); letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; word-spacing:
0px; -webkit-text-stroke-width: 0px; text-decoration: none;
word-wrap: break-word; -webkit-nbsp-mode: space; line-break:
after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width:
0px; text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break:
after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration: none;
word-wrap: break-word; -webkit-nbsp-mode: space;
line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration:
none; word-wrap: break-word; -webkit-nbsp-mode:
space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break:
after-white-space;" class="">
<div>
<div class="">Gerben Wierda (<a
href="https://www.linkedin.com/in/gerbenwierda"
class="" moz-do-not-send="true">LinkedIn</a>)</div>
<div class=""><a href="https://ea.rna.nl/"
class="" moz-do-not-send="true">R&A IT
Strategy</a> (main site)<br class="">
Book: <a href="https://ea.rna.nl/the-book/"
class="" moz-do-not-send="true">Chess and
the Art of Enterprise Architecture</a><br
class="">
Book: <a
href="https://ea.rna.nl/the-book-edition-iii/"
class="" moz-do-not-send="true">Mastering
ArchiMate</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a href="http://www.mailscanner.info/" moz-do-not-send="true"><b>MailScanner</b></a>,
and is
<br>
believed to be clean.
</blockquote>
<br>
</body>
</html>