<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">How problematic is it to have<div class=""><br class=""></div><div class=""><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="">default_vsz_limit = 0</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">in dovecot.conf? macOS+MacPorts had this as a requirement even.</div><div class=""><br class=""></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</div></div></div></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 6 Jan 2023, at 16:49, Paul Kudla <<a href="mailto:paul@scom.ca" class="">paul@scom.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">i ran into this as well<br class=""><br class="">here is the full config for mine with replication<br class=""><br class=""># cat dovecot.conf<br class=""># 2.3.14 (cee3cbc0d): /usr/local/etc/dovecot/dovecot.conf<br class=""># OS: FreeBSD 12.1-RELEASE amd64<br class=""># Hostname: <a href="http://mail18.scom.ca" class="">mail18.scom.ca</a><br class=""><br class="">auth_debug = no<br class="">auth_debug_passwords = no<br class=""><br class="">default_process_limit = 16384<br class=""><br class="">mail_debug = no<br class=""><br class="">#lock_method = dotlock<br class="">#mail_max_lock_timeout = 300s<br class=""><br class="">#mbox_read_locks = dotlock<br class="">#mbox_write_locks = dotlock<br class=""><br class="">mmap_disable = yes<br class="">dotlock_use_excl = no<br class="">mail_fsync = always<br class="">mail_nfs_storage = no<br class="">mail_nfs_index = no<br class=""><br class="">auth_mechanisms = plain login<br class="">auth_verbose = yes<br class="">base_dir = /data/dovecot/run/<br class="">debug_log_path = syslog<br class="">disable_plaintext_auth = no<br class="">dsync_features = empty-header-workaround<br class=""><br class="">info_log_path = syslog<br class="">login_greeting = SCOM.CA Internet Services Inc. - Dovecot ready<br class="">login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c<br class=""><br class=""><br class="">mail_location = maildir:~/<br class=""><br class="">mail_plugins = " virtual notify replication fts fts_lucene "<br class="">mail_prefetch_count = 20<br class=""><br class="">protocols = imap pop3 lmtp sieve<br class=""><br class=""><br class="">protocol lmtp {<br class="">  mail_plugins = $mail_plugins sieve<br class="">  postmaster_address =<br class="">}<br class=""><br class="">service lmtp {<br class="">  process_limit=1000<br class="">  vsz_limit = 512m<br class="">  client_limit=1<br class="">   unix_listener /usr/home/postfix.local/private/dovecot-lmtp {<br class="">     group = postfix<br class="">     mode = 0600<br class="">     user = postfix<br class="">  }<br class="">}<br class=""><br class="">protocol lda {<br class="">  mail_plugins = $mail_plugins sieve<br class="">}<br class=""><br class="">service lda {<br class="">  process_limit=1000<br class="">  vsz_limit = 512m<br class="">}<br class=""><br class="">service imap {<br class="">  process_limit=4096<br class="">  vsz_limit = 2g<br class="">  client_limit=1<br class="">}<br class=""><br class="">service pop3 {<br class="">  process_limit=1000<br class="">  vsz_limit = 512m<br class="">  client_limit=1<br class="">}<br class=""><br class="">namespace inbox {<br class="">  inbox = yes<br class="">  location =<br class="">  mailbox Drafts {<br class="">    auto = subscribe<br class="">    special_use = \Drafts<br class="">  }<br class="">  mailbox Sent {<br class="">    auto = subscribe<br class="">    special_use = \Sent<br class="">  }<br class="">  mailbox Trash {<br class="">    auto = subscribe<br class="">    special_use = \Trash<br class="">  }<br class="">  prefix =<br class="">  separator = /<br class="">}<br class=""><br class="">passdb {<br class="">  args = /usr/local/etc/dovecot/dovecot-pgsql.conf<br class="">  driver = sql<br class="">}<br class=""><br class="">doveadm_port = 12345<br class="">doveadm_password = secretxxxx<br class=""><br class="">service doveadm {<br class="">  process_limit = 0<br class="">  process_min_avail = 0<br class="">  idle_kill = 0<br class="">  client_limit = 1<br class="">  user = vmail<br class="">  inet_listener {<br class="">    port = 12345<br class="">  }<br class="">}<br class=""><br class="">service config {<br class="">  unix_listener config {<br class="">    user = vmail<br class="">    }<br class="">}<br class=""><br class="">dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u<br class="">#dsync_remote_cmd = doveadm sync -d -u%u<br class=""><br class="">replication_dsync_parameters = -d -N -l 300 -U<br class=""><br class="">plugin {<br class="">  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename<br class="">  mail_log_fields = uid, box, msgid, from, subject, size, vsize, flags<br class="">  push_notification_driver = dlog<br class=""><br class="">  sieve = file:~/sieve;active=~/sieve/.dovecot.sieve<br class="">  #sieve = ~/.dovecot.sieve<br class="">  sieve_duplicate_default_period = 1h<br class="">  sieve_duplicate_max_period = 1h<br class="">  sieve_extensions = +duplicate +notify +imapflags +vacation-seconds<br class="">  sieve_global_dir = /usr/local/etc/dovecot/sieve<br class="">  sieve_before = /usr/local/etc/dovecot/sieve/duplicates.sieve<br class=""><br class=""><br class="">  mail_replica = tcp:10.221.0.19:12345<br class="">  #mail_replica = remote:<a href="mailto:vmail@10.221.0.19" class="">vmail@10.221.0.19</a><br class="">  #replication_sync_timeout = 2<br class=""><br class="">  fts = lucene<br class="">  fts_lucene = whitespace_chars=@.<br class="">        fts_autoindex = yes<br class="">        fts_languages = en<br class="">}<br class=""><br class="">#sieve_extensions = vnd.dovecot.duplicate<br class=""><br class="">#sieve_plugins = vnd.dovecot.duplicate<br class=""><br class="">service anvil {<br class="">  process_limit = 1<br class="">  client_limit=5000<br class="">  vsz_limit = 512m<br class="">  unix_listener anvil {<br class="">    group = vmail<br class="">    mode = 0666<br class="">  }<br class="">}<br class=""><br class="">service indexer-worker {<br class="">        vsz_limit = 2g<br class="">}<br class=""><br class=""><br class=""><br class="">service auth {<br class="">   process_limit = 1<br class="">   client_limit=5000<br class="">   vsz_limit = 1g<br class=""><br class="">   unix_listener auth-userdb {<br class="">      mode = 0660<br class="">      user = vmail<br class="">      group = vmail<br class="">   }<br class="">   unix_listener /var/spool/postfix/private/auth {<br class="">      mode = 0666<br class="">   }<br class=""><br class="">}<br class=""><br class="">service stats {<br class="">  process_limit = 1000<br class="">  vsz_limit = 1g<br class="">  unix_listener stats-reader {<br class="">    group = vmail<br class="">    mode = 0666<br class="">  }<br class="">  unix_listener stats-writer {<br class="">    group = vmail<br class="">    mode = 0666<br class="">  }<br class="">}<br class="">userdb {<br class="">  args = /usr/local/etc/dovecot/dovecot-pgsql.conf<br class="">  driver = sql<br class=""><br class="">}<br class=""><br class="">protocol imap {<br class="">  mail_max_userip_connections = 50<br class="">  mail_plugins = $mail_plugins notify replication<br class="">}<br class=""><br class="">protocol pop3 {<br class="">  mail_max_userip_connections = 50<br class="">  mail_plugins = $mail_plugins notify replication<br class="">}<br class=""><br class="">protocol imaps {<br class="">  mail_max_userip_connections = 25<br class="">  mail_plugins = $mail_plugins notify replication<br class="">}<br class=""><br class="">protocol pop3s {<br class="">  mail_max_userip_connections = 25<br class="">  mail_plugins = $mail_plugins notify replication<br class="">}<br class=""><br class=""><br class="">service managesieve-login {<br class="">  process_limit = 1000<br class="">  vsz_limit = 1g<br class="">  inet_listener sieve {<br class="">    port = 4190<br class="">  }<br class="">}<br class=""><br class="">verbose_proctitle = yes<br class=""><br class="">replication_max_conns = 100<br class=""><br class="">replication_full_sync_interval = 1d<br class=""><br class="">service replicator {<br class="">  client_limit = 0<br class="">  drop_priv_before_exec = no<br class="">  idle_kill = 4294967295s<br class="">  process_limit = 1<br class="">  process_min_avail = 0<br class="">  service_count = 0<br class="">  vsz_limit = 8g<br class="">        unix_listener replicator-doveadm {<br class="">    mode = 0600<br class="">    user = vmail<br class="">  }<br class="">  vsz_limit = 8192M<br class="">}<br class=""><br class=""><br class="">service aggregator {<br class="">  process_limit = 1000<br class="">  #vsz_limit = 1g<br class="">  fifo_listener replication-notify-fifo {<br class="">    user = vmail<br class="">    group = vmail<br class="">    mode = 0666<br class="">  }<br class=""><br class="">}<br class=""><br class="">service pop3-login {<br class="">  process_limit = 1000<br class="">  client_limit = 100<br class="">  vsz_limit = 512m<br class=""> }<br class=""><br class=""><br class="">service imap-urlauth-login {<br class="">  process_limit = 1000<br class="">  client_limit = 1000<br class="">  vsz_limit = 1g<br class="">}<br class=""><br class=""><br class="">service imap-login {<br class="">  process_limit=1000<br class="">  client_limit = 1000<br class="">  vsz_limit = 1g<br class=""> }<br class=""><br class=""><br class="">protocol sieve {<br class="">  managesieve_implementation_string = Dovecot Pigeonhole<br class="">  managesieve_max_line_length = 65536<br class="">}<br class=""><br class=""><br class=""><br class=""><br class="">#Addition ssl config<br class="">!include sni.conf<br class=""><br class="">with sni cert support (examples)<br class=""><br class=""># cat sni.conf<br class="">#sni.conf<br class="">ssl = yes<br class="">verbose_ssl = yes<br class="">ssl_dh =</usr/local/etc/dovecot/dh-4096.pem<br class="">ssl_prefer_server_ciphers = yes<br class="">#ssl_min_protocol = TLSv1.2<br class=""><br class="">#Default *.<a href="http://scom.ca" class="">scom.ca</a><br class="">ssl_key =</usr/local/etc/dovecot/scom.pem<br class="">ssl_cert =</usr/local/etc/dovecot/scom.pem<br class="">ssl_ca =</usr/local/etc/dovecot/scom.pem<br class=""><br class="">local_name .<a href="http://scom.ca" class="">scom.ca</a> {<br class="">ssl_key =</usr/local/etc/dovecot/scom.pem<br class="">ssl_cert =</usr/local/etc/dovecot/scom.pem<br class="">ssl_ca =</usr/local/etc/dovecot/scom.pem<br class=""><br class="">}<br class=""><br class="">local_name <a href="http://mail.clancyca.com" class="">mail.clancyca.com</a> {<br class="">  ssl_key =</usr/local/etc/dovecot/cert/<a href="http://mail.clancyca.com" class="">mail.clancyca.com</a><br class="">  ssl_cert =</usr/local/etc/dovecot/cert/<a href="http://mail.clancyca.com" class="">mail.clancyca.com</a><br class="">  ssl_ca =</usr/local/etc/dovecot/cert/<a href="http://mail.clancyca.com" class="">mail.clancyca.com</a><br class="">}<br class=""><br class="">local_name <a href="http://mail.paulkudla.net" class="">mail.paulkudla.net</a> {<br class="">  ssl_key =</usr/local/etc/dovecot/cert/<a href="http://mail.paulkudla.net" class="">mail.paulkudla.net</a><br class="">  ssl_cert =</usr/local/etc/dovecot/cert/<a href="http://mail.paulkudla.net" class="">mail.paulkudla.net</a><br class="">  ssl_ca =</usr/local/etc/dovecot/cert/<a href="http://mail.paulkudla.net" class="">mail.paulkudla.net</a><br class="">}<br class=""><br class="">local_name <a href="http://mail.ekst.ca" class="">mail.ekst.ca</a> {<br class="">  ssl_key =</usr/local/etc/dovecot/cert/<a href="http://mail.ekst.ca" class="">mail.ekst.ca</a><br class="">  ssl_cert =</usr/local/etc/dovecot/cert/<a href="http://mail.ekst.ca" class="">mail.ekst.ca</a><br class="">  ssl_ca =</usr/local/etc/dovecot/cert/<a href="http://mail.ekst.ca" class="">mail.ekst.ca</a><br class="">}<br class=""><br class="">local_name <a href="http://mail.hamletdevelopments.ca" class="">mail.hamletdevelopments.ca</a> {<br class="">  ssl_key =</usr/local/etc/dovecot/cert/<a href="http://mail.hamletdevelopments.ca" class="">mail.hamletdevelopments.ca</a><br class="">  ssl_cert =</usr/local/etc/dovecot/cert/<a href="http://mail.hamletdevelopments.ca" class="">mail.hamletdevelopments.ca</a><br class="">  ssl_ca =</usr/local/etc/dovecot/cert/<a href="http://mail.hamletdevelopments.ca" class="">mail.hamletdevelopments.ca</a><br class="">}<br class=""><br class="">pg sql support supporting replication<br class=""><br class=""># cat dovecot-pgsql.conf<br class="">driver = pgsql<br class="">connect = host=localhost port=5433 dbname=scom_billing user=pgsql password=<br class="">default_pass_scheme = PLAIN<br class=""><br class="">password_query = SELECT username as user, password FROM email_users WHERE username = '%u' and password <> 'alias' and status = True and destination = '%u'<br class=""><br class="">user_query = SELECT home, uid, gid FROM email_users WHERE username = '%u' and password <> 'alias' and status = True and destination = '%u'<br class=""><br class="">#iterate_query = SELECT user, password FROM email_users WHERE username = '%u' and password <> 'alias' and status = True and destination = '%u'<br class=""><br class="">iterate_query = SELECT "username" as user, domain FROM email_users WHERE status = True and alias_flag = False<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">Happy Friday !!!<br class="">Thanks - paul<br class=""><br class="">Paul Kudla<br class=""><br class=""><br class=""><a href="http://Scom.ca" class="">Scom.ca</a> Internet Services <<a href="http://www.scom.ca" class="">http://www.scom.ca</a>><br class="">004-1009 Byron Street South<br class="">Whitby, Ontario - Canada<br class="">L1N 4S3<br class=""><br class="">Toronto 416.642.7266<br class="">Main 1.866.411.7266<br class="">Fax 1.888.892.7266<br class=""><a href="mailto:paul@scom.ca" class="">Email paul@scom.ca</a><br class=""><br class="">On 1/6/2023 5:32 AM, Gerben Wierda wrote:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">On 6 Jan 2023, at 08:53, Aki Tuomi <aki.tuomi@open-xchange.com <mailto:aki.tuomi@open-xchange.com>> wrote:<br class=""><br class=""><br class=""><br class="">On January 6, 2023 3:56:39 AM GMT+02:00, Gerben Wierda <gerben.wierda@rna.nl <mailto:gerben.wierda@rna.nl>> wrote:<br class=""><blockquote type="cite" class="">One step further in my quest to create a replacement mail server.<br class=""><br 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:<br class=""><br class="">Jan 06 00:50:31 replicator: Panic: data stack: Out of memory when allocating 268435496 bytes<br class="">Jan 06 00:50:32 replicator: Fatal: master: service(replicator): child 133 killed with signal 6 (core dumped)<br class="">Jan 06 00:50:32 lmtp(pid 195 user sysbh): Warning: replication(sysbh): Sync failure:<br class="">Jan 06 00:50:32 lmtp(pid 195 user sysbh): Warning: replication(sysbh): Remote sent invalid input: -<br class=""><br 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?<br class=""><br class="">Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda <https://www.linkedin.com/in/gerbenwierda>>)<br class="">R&A IT Strategy <https://ea.rna.nl/ <https://ea.rna.nl/>> (main site)<br class="">Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/ <https://ea.rna.nl/the-book/>><br class="">Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/ <https://ea.rna.nl/the-book-edition-iii/>><br class=""><br class=""></blockquote><br class="">Dovecot default memory limit is 256M. You should probably set<br class=""><br class="">service replicator {<br class=""> vsz_limit = 2G<br class="">}<br class=""><br class="">because replicator might have to use more memory, especially for larger indexes.<br class=""><br class="">Aki<br class=""></blockquote>That is a good tip as well.<br class="">I had followed this bit of experience from someone else: https://marc.info/?l=dovecot&m=164438199727640 <https://marc.info/?l=dovecot&m=164438199727640>, haven't seen any err message since. But that might be because they are in sync now and both sides are aware. Can I trigger full replication again so I can test?<br class="">Gerben<br class="">-- <br class="">This message has been scanned for viruses and<br class="">dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is<br class="">believed to be clean.<br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>