<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=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I confirm that a working workaround on macOS 12 is to simply remove these lines from ./src/lib/restrict-process-size.c:<div class=""><br class=""></div><div class=""><a href="https://github.com/dovecot/core/blob/a5209c83c3a82386c94d466eec5fea394973e88f/src/lib/restrict-process-size.c#L12-L23" class="">https://github.com/dovecot/core/blob/a5209c83c3a82386c94d466eec5fea394973e88f/src/lib/restrict-process-size.c#L12-L23</a></div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 19, 2021, at 11:26 AM, Steven Smith <<a href="mailto:steve.t.smith@gmail.com" class="">steve.t.smith@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""></div>
<div class="">Re: <a href="https://www.mail-archive.com/dovecot@dovecot.org/msg84784.html" class="">https://www.mail-archive.com/dovecot@dovecot.org/msg84784.html</a></div><div class=""><br class=""></div><div class="">I just upgraded to macOS 12.1, ran into this issue, and discovered this thread from the error message.</div><div class=""><br class=""></div><div class="">Is there a viable workaround or patch yet?</div><div class=""><br class=""></div><div class="">I tried the workaround in this thread, and still see these issues.</div><div class=""><br class=""></div><div class="">Set default_vsz_limit = 0 in ./conf.d/10-master.conf.</div><div class=""><br class=""></div><div class="">Observe that:</div><div class=""><ul class="MailOutline"><li class="">dovecot now launches without the setrlimit(RLIMIT_DATA, 268435456) error at the command line</li><li class="">However, the mail-err.log is still filled with these errors (below), perhaps for the child processes.</li></ul><div class=""><br class=""></div><div class="">Steve</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class=""><blockquote type="cite" class=""><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4629 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:06 master: Error: service(imap-login): command startup failed, throttling for 2.000 secs</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4630 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4628 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4627 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4619 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:06 imap-login: Error: Dec 19 11:22:06 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:06 imap-login: Fatal: master: service(imap-login): child 4631 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:09 imap-login: Error: Dec 19 11:22:09 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 2147483648): Invalid argument</div><div class="">Dec 19 11:22:09 imap-login: Fatal: master: service(imap-login): child 4638 returned error 89 (Fatal failure)</div><div class="">Dec 19 11:22:09 master: Error: service(imap-login): command startup failed, throttling for 4.000 secs</div></blockquote></div><div class=""><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><pre style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px;" class=""><blockquote type="cite" class=""><div style="font-family: Helvetica; font-size: 24px;" class=""><pre style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px;" class="">On Mon, 1 Nov 2021 14:55:25 +0200, Aki Tuomi said:</pre><div class=""><br class=""></div></div><div style="font-family: Helvetica; font-size: 24px;" class=""><pre style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px;" class="">I think this is happening because MacOS no longer supports RLIMIT_DATA. We'll 
try to look into this. default_vsz_limit = 0 seems good enough workaround.</pre><pre style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px;" class="">Aki</pre></div></blockquote><div class=""><br class=""></div></pre></div><div class=""><div class=""><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></body></html>