Kopano Gateway Logon to http://localhost:236/: Too many open files (socket failed in tcp_connect())


  • Hi all;

    I got a problem on an openSuse Tumbleweed Server (all Updates installed).

    After 1 or 2 days of productive use, IMAP gets extremely slow and then wont work completely.
    It repeats the following messages over and over:

    Nov 20 02:59:05 mail kopano-gateway[14468]: Logon to http://localhost:236/: Too many open files (socket failed in tcp_connect())

    Nov 20 02:59:05 mail kopano-gateway[14468]: virtual HRESULT M4LMAPISession::OpenMsgStore(ULONG_PTR, ULONG, const ENTRYID*, LPCIID, ULONG, IMsgStore**): msp->Logon failed: failoneprovider (8004011d)

    Nov 20 02:59:05 mail kopano-gateway[14468]: virtual HRESULT M4LMAPISession::OpenEntry(ULONG, const ENTRYID*, const IID*, ULONG, ULONG*, IUnknown**): OpenMsgStore failed: failoneprovider (8004011d)

    Nov 20 02:59:05 mail kopano-gateway[14468]: Logon to http://localhost:236/: Too many open files (socket failed in tcp_connect())

    Nov 20 02:59:05 mail kopano-gateway[14468]: virtual HRESULT M4LMAPISession::OpenMsgStore(ULONG_PTR, ULONG, const ENTRYID*, LPCIID, ULONG, IMsgStore**): msp->Logon failed: failoneprovider (8004011d)

    Nov 20 02:59:05 mail kopano-gateway[14468]: Failed to open public store

    After a restart of the gateway (systemctl restart kopano-gateway) everything works fine again.
    Encryption is via LetsEncrypt

    Here is the gateway.cfg:
    ssl_private_key_file = /etc/kopano/gateway/privkey.pem
    ssl_certificate_file = /etc/kopano/gateway/cert.pem
    ssl_protocols = TLSv1.1 TLSv1.2 TLSv1.3
    ssl_prefer_server_ciphers = yes
    pop3s_listen = *:995
    imaps_listen = *:993
    server_socket = http://localhost:236/

    uname -a
    Linux mail 5.9.1-2-default #1 SMP Mon Oct 26 07:02:23 UTC 2020 (435e92d) x86_64 x86_64 x86_64 GNU/Linux

    Best regards and thanks for any ideas,
    Marcel