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.
> 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
Ahh, I missed the [Service] out. Aki, Thank-you very much. Best, Sophie Sent from a phone, thus brief. On May 24, 2018 7:49:50 PM CEST, Aki Tuomi <aki.tuomi at dovecot.fi> wrote:> >> 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