<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi,</div>

<div> </div>

<div>thanks for your response!</div>

<div> </div>

<div>Now, i already solved the problem, but it's possible a bug?</div>

<div> </div>

<div>If i use the default values:</div>

<div>default_vsz_limit = 256M</div>

<div>service lmtp {</div>

<div>  vsz_limit = $default_vsz_limit</div>

<div>}</div>

<div> </div>

<div>After restart, i check the limits of the lmtp process:</div>

<div>
<div>Max data size             268435456          268435456          bytes     </div>

<div> </div>

<div>The limit is 256KB instead of 256MB?</div>

<div> </div>

<div>If i change the value to 512MB, the process limit is 512KB.</div>

<div> </div>

<div>When i set "20000M" as limit, the process limit is really 20000MB.</div>

<div> </div>

<div>I am using CentOS 7.4. and dovecot 2.2.33.2 (d6601f4ec).</div>

<div> </div>

<div>Who is parseing the values from the unit (MB) to Bytes? Dovecot or a linux libary function??<br/>
<br/>
Best regards,</div>

<div>Thomas Manninger</div>
</div>

<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 15. Januar 2018 um 08:16 Uhr<br/>
<b>Von:</b> "Aki Tuomi" <aki.tuomi@dovecot.fi><br/>
<b>An:</b> "Thomas Manninger" <DBGTMaster@gmx.at>, Dovecot@dovecot.org<br/>
<b>Betreff:</b> Re: Lmtp Memory Limit</div>

<div name="quoted-content"><br/>
<br/>
On 14.01.2018 09:11, Thomas Manninger wrote:<br/>
> Hi,<br/>
><br/>
> i am using dovecot 2.2.33.2 on CentOS 7.4.<br/>
><br/>
> Since i upgraded from CentOS 7.2. to CentOS 7.4. (without upgrading dovecot), my dovecot sieve-pipe scripts crash with Out of memory:<br/>
> Out of memory (allocated 262144) (tried to allocate 8793 bytes)<br/>
><br/>
> There are some memory limits in dovecot or sieve? Can i change this value?<br/>
><br/>
> Kernel limitks:<br/>
> [root@xxx software]# ulimit -a<br/>
> core file size (blocks, -c) 0<br/>
> data seg size (kbytes, -d) unlimited<br/>
> scheduling priority (-e) 0<br/>
> file size (blocks, -f) unlimited<br/>
> pending signals (-i) 26505<br/>
> max locked memory (kbytes, -l) 64<br/>
> max memory size (kbytes, -m) unlimited<br/>
> open files (-n) 1024<br/>
> pipe size (512 bytes, -p) 8<br/>
> POSIX message queues (bytes, -q) 819200<br/>
> real-time priority (-r) 0<br/>
> stack size (kbytes, -s) 8192<br/>
> cpu time (seconds, -t) unlimited<br/>
> max user processes (-u) 26505<br/>
> virtual memory (kbytes, -v) unlimited<br/>
> file locks (-x) unlimited<br/>
><br/>
><br/>
> Dovecot is running as user mail:<br/>
> su mail<br/>
> bash-4.2$ ulimit -a<br/>
> core file size (blocks, -c) 0<br/>
> data seg size (kbytes, -d) unlimited<br/>
> scheduling priority (-e) 0<br/>
> file size (blocks, -f) unlimited<br/>
> pending signals (-i) 26505<br/>
> max locked memory (kbytes, -l) 64<br/>
> max memory size (kbytes, -m) unlimited<br/>
> open files (-n) 1024<br/>
> pipe size (512 bytes, -p) 8<br/>
> POSIX message queues (bytes, -q) 819200<br/>
> real-time priority (-r) 0<br/>
> stack size (kbytes, -s) 8192<br/>
> cpu time (seconds, -t) unlimited<br/>
> max user processes (-u) 4096<br/>
> virtual memory (kbytes, -v) unlimited<br/>
> file locks (-x) unlimited<br/>
><br/>
> Can someone help me?<br/>
><br/>
> Thanks for help!<br/>
><br/>
> Best regards<br/>
> Thomas Manninger<br/>
<br/>
Check 'doveconf service/lmtp' for dovecot imposed limits. If vsz_limit<br/>
is 18446744073709551615, it means default_vsz_limit is used. Check out<br/>
'doveconf default_vsz_limit'. You can then decide if you want to set<br/>
some limit for lmtp only or increase the default limit.<br/>
 <br/>
Aki</div>
</div>
</div>
</div></div></body></html>