<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache]]></title><description><![CDATA[<p dir="auto"><strong>Mail: Dovecot <code>default_vsz_limit</code> stuck at 256M, large mailboxes fail to mmap their index cache</strong></p>
<p dir="auto">On mailboxes with a large index cache, Dovecot logs this when they are opened or indexed (Cloudron 10.1.5, mail 4.4.4, Dovecot 2.4.2; it already happened with 10.0.5 and Dovecot 2.3):</p>
<pre><code>indexer-worker(user1@example.com): Error: Mailbox INBOX: mmap(size=200498572) failed with file /app/data/vmail/user1@example.com/mail/dovecot.index.cache: Cannot allocate memory
imap(user2@example.com): Error: Mailbox Archive: mmap(size=111789528) failed with file /app/data/vmail/user2@example.com/mail/.Archive/dovecot.index.cache: Cannot allocate memory
</code></pre>
<p dir="auto">A third mailbox (about 170,000 mails, 48 GB) has a 313 MB <code>dovecot.index.cache</code> and fails the same way. Dovecot then works without the cache, and these mailboxes are slow to open.</p>
<p dir="auto">The cause is Dovecot's per-process limit, which stays at its default:</p>
<pre><code># doveconf -h default_vsz_limit
256 M
</code></pre>
<p dir="auto"><code>dovecot.conf.template</code> does not set it. Raising the mail service memory limit in the dashboard does not help: the container now has about 25 GB, and every Dovecot process is still capped at 256M. Dovecot's own sample config says so: "Most of the memory goes to mmap()ing files. You may need to increase this limit if you have huge mailboxes."</p>
<p dir="auto">Could the mail container raise this limit, either <code>default_vsz_limit</code> or <code>vsz_limit</code> for <code>service imap</code> and <code>service indexer-worker</code> (1G for example)? It could also follow the memory limit set in the dashboard. A supported way to add a custom Dovecot setting would solve it as well.</p>
]]></description><link>https://forum.cloudron.io/topic/16159/mail-dovecot-default_vsz_limit-stuck-at-256m-large-mailboxes-fail-to-mmap-their-index-cache</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 20:44:57 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16159.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Oct 2026 19:47:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache on Tue, 20 Oct 2026 10:21:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for reporting, I have upped it to 2G for now.</p>
]]></description><link>https://forum.cloudron.io/post/131271</link><guid isPermaLink="true">https://forum.cloudron.io/post/131271</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 20 Oct 2026 10:21:12 GMT</pubDate></item></channel></rss>