Hello,

sorry, forget put my configuration

Default client limit is 1024

dovecot -n:
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
# OS: Linux 4.19.0-12-amd64 x86_64 Debian 10.7
# Hostname: vhermes.local
auth_mechanisms = plain login
default_client_limit = 1024
deliver_log_format = from=<%f>: %$
dict {
  quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
first_valid_gid = 114
first_valid_uid = 111
last_valid_gid = 114
last_valid_uid = 111
lda_mailbox_autocreate = yes
listen = *
mail_fsync = never
mail_location = maildir:~/Maildir
mail_plugins = quota
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext vacation-seconds
mmap_disable = yes
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = dict:User quota::proxy::quota
  quota_exceeded_message = User quota exceed
  quota_grace = 20%%
  quota_warning = storage=99%% quota-warning 99 %u
  quota_warning2 = storage=95%% quota-warning 95 %u
  quota_warning3 = storage=90%% quota-warning 90 %u
  quota_warning4 = storage=80%% quota-warning 80 %u
  quota_warning5 = storage=75%% quota-warning 75 %u
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_extensions = +vacation-seconds
  sieve_vacation_default_period = 0
  sieve_vacation_max_period = 1d
  sieve_vacation_min_period = 0
}
protocols = " imap lmtp sieve pop3"
service anvil {
  client_limit = 3448
}
service auth {
  client_limit = 10100
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
  unix_listener auth-userdb {
    mode = 0666
  }
  vsz_limit = 512 M
}
service dict {
  unix_listener dict {
    group = vmail
    mode = 0600
    user = vmail
  }
}
service imap-login {
  client_limit = 2048
  process_limit = 1000
  service_count = 0
  vsz_limit = 1 G
}
service imap {
  client_limit = 1
  process_limit = 8192
  process_min_avail = 8
  service_count = 100
}
service lmtp {
  executable = lmtp -L
  process_min_avail = 5
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  user = vmail
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  process_min_avail = 0
  service_count = 0
  vsz_limit = 100 M
}
service pop3-login {
  process_limit = 512
  service_count = 0
}
service pop3 {
  client_limit = 1
  process_limit = 1024
  service_count = 1
}
service quota-warning {
  executable = script /etc/dovecot/quota-warning.sh
  unix_listener quota-warning {
    user = vmail
  }
  user = vmail
}
service stats {
  unix_listener stats-reader {
    group = vmail
    mode = 0666
    user = vmail
  }
  unix_listener stats-writer {
    user = vmail
  }
}
ssl_cert = </etc/dovecot/ssl/dovecot.crt
ssl_cipher_list = ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:+TLSv1.1:+TLSv1.2:!MD5:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
syslog_facility = local0
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol lmtp {
  mail_fsync = optimized
  mail_plugins = quota sieve
}
protocol imap {
  imap_capability = +XLIST
}
local 1.2.3.13 {
  ssl_cert = </etc/dovecot/ssl/ssl13.crt
  ssl_key = # hidden, use -P to show it
}
local 1.2.3.14 {
  ssl_cert = </etc/dovecot/ssl/ssl14.crt
  ssl_key = # hidden, use -P to show it
}
local 1.2.3.15 {
  ssl_cert = </etc/dovecot/ssl/ssl15.crt
  ssl_key = # hidden, use -P to show it
}
local 1.2.3.16 {
  ssl_cert = </usr/local/ssl/ssl16.pem
  ssl_key = # hidden, use -P to show it
}
local 1.2.3.12 {
  protocol sieve {
    mail_max_userip_connections = 20
  }
}
local 1.2.3.13 {
  protocol imap {
    mail_max_userip_connections = 20
    mail_plugins = quota imap_quota
  }
}
local 1.2.3.13 {
  protocol pop3 {
    mail_plugins = quota
  }
}
local 1.2.3.14 {
  protocol imap {
    mail_plugins = quota imap_quota
  }
}
local 1.2.3.14 {
  protocol pop3 {
    mail_plugins = quota
  }
}
local 1.2.3.15 {
  protocol imap {
    mail_plugins = quota imap_quota
  }
}
local 1.2.3.15 {
  protocol pop3 {
    mail_plugins = quota
  }
}
local 1.2.3.16 {
  protocol imap {
    mail_plugins = quota imap_quota
  }
}
local 1.2.3.16 {
  protocol pop3 {
    mail_plugins = quota
  }
}

st 9. 12. 2020 v 8:27 odesílatel Aki Tuomi <aki.tuomi@open-xchange.com> napsal:

> On 09/12/2020 09:24 Lampa <lampacz@gmail.com> wrote:
>
>
> Hello,
>
> after debian version from 9 to, also dovecot was upgraded. There was problems with right imap and imap-login connection settings. I adjusted process_limit, service count increased /proc/sys/net/core/somaxconn from 128 to 1024 for imap
>
> It's a system with 1000+ imap and 200+ pop3 connections. When imap connections are over 1000 problems begins.
>
> Problem one:
> 2020-12-07T12:46:39.575586+01:00 vhermes dovecot: master: Error: service(pop3): Initial status notification not received in 30 seconds, killing the process
> 2020-12-07T12:46:39.576448+01:00 vhermes dovecot: pop3: Fatal: master: service(pop3): child 13975 killed with signal 9
> 2020-12-07T12:46:42.015726+01:00 vhermes dovecot: master: Error: service(lmtp): Initial status notification not received in 30 seconds, killing the process
> 2020-12-07T12:46:42.016680+01:00 vhermes dovecot: lmtp: Fatal: master: service(lmtp): child 13985 killed with signal 9
> 2020-12-07T12:46:42.061963+01:00 vhermes dovecot: master: Error: service(lmtp): Initial status notification not received in 30 seconds, killing the process
> 2020-12-07T12:46:42.062973+01:00 vhermes dovecot: lmtp: Fatal: master: service(lmtp): child 13987 killed with signal 9
>
> problem two:
> 2020-12-07T13:55:43.106017+01:00 vhermes dovecot: pop3: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable
> 2020-12-07T13:56:22.300893+01:00 vhermes dovecot: lmtp: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable
> 2020-12-07T13:58:11.721892+01:00 vhermes dovecot: imap: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable
>
> problem three - lot of
> 2020-12-07T10:16:24.773347+01:00 vhermes dovecot: imap-login: Error: master(imap): net_connect_unix(imap) failed: Resource temporarily unavailable - http://wiki2.dovecot.org/SocketUnavailable
>


Your client_limit is too low. Try increasing it for these services.

<snip/>

> Seems that last problem is solved (if same) https://github.com/dovecot/core/commit/a668d767a710ca18ab6e7177d8e8be22a6b024fb
>
> Thank you for any help
>
> --
>
> Lampa

Aki


--
Lampa