socketpair failed: Too many open files on Debian 9

Sven Hartge sven at svenhartge.de
Wed Aug 23 16:25:31 EEST 2017


Patrick Westenberg <pw at wk-serv.de> wrote:

> 11:23:55 imap-login: Error: socketpair() failed: Too many open files

As root run "systemctl edit dovecot.service". This will create a drop-in
configuration file in /etc/systemd/system/dovecot.service.d/ which will
be appended to the one in /lib/systemd/system/ during startup.

The content should be 

----paste-below----------8<---------------
[Service]
LimitNOFILE=8192
----paste-above----------8<---------------

Then a swift "systemctl daemon-reload" followed by "systemctl restart dovecot.service"
should fix your problem.

Attention: Do *NOT* follow anyone advising you to copy the whole
systemd.unit from /lib/systemd/system/dovecot.service to
/etc/systemd/system, as this will/may break your system after an update
to a new Debian version in the future.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



More information about the dovecot mailing list