question on setting ulimit on debian

Aki Tuomi aki.tuomi at dovecot.fi
Thu May 24 20:49:50 EEST 2018


> On 24 May 2018 at 20:43 Sophie Loewenthal <sophie at klunky.co.uk> wrote:
> 
> 
> Hi,
> 
> I’ve been trying to increase the number of open files for the dovecot user on Debian 9 and have so far, failed!  I’ve tried this:
> 
> # cat /etc/security/limits.d/limits_dovecot.conf 
> dovecot        soft    nofile           2048
> dovecot        hard    nofile           8192
> 
> # cat /etc/systemd/system/dovecot.service.d/service.conf
> LimitNOFILE=8192
> 
> But to no avail:
> 
> # prlimit -p 27208|grep -i nofile
> NOFILE     max number of open files                1024      4096 files
> 
> 
> Lost me :( Any ideas?
> 
> 
> Thanks,Sophie.


cat<<EOF > /etc/systemd/system/dovecot.service.d/service.conf
[Service]
LimitNOFILE=8192
EOF
systemctl daemon-reload
systemctl restart dovecot

Aki


More information about the dovecot mailing list