<div dir="ltr">Hello,<div><br></div><div>sorry, forget put my configuration</div><div><br></div><div>Default client limit is 1024</div><div><br></div><div>dovecot -n:<br></div><div># 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf<br># Pigeonhole version 0.5.4 ()<br># OS: Linux 4.19.0-12-amd64 x86_64 Debian 10.7 <br># Hostname: vhermes.local<br>auth_mechanisms = plain login<br>default_client_limit = 1024<br>deliver_log_format = from=<%f>: %$<br>dict {<br> quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext<br>}<br>disable_plaintext_auth = no<br>first_valid_gid = 114<br>first_valid_uid = 111<br>last_valid_gid = 114<br>last_valid_uid = 111<br>lda_mailbox_autocreate = yes<br>listen = *<br>mail_fsync = never<br>mail_location = maildir:~/Maildir<br>mail_plugins = quota<br>mail_privileged_group = mail<br>managesieve_notify_capability = mailto<br>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<br>mmap_disable = yes<br>namespace inbox {<br> inbox = yes<br> location = <br> mailbox Drafts {<br> auto = subscribe<br> special_use = \Drafts<br> }<br> mailbox Junk {<br> special_use = \Junk<br> }<br> mailbox Sent {<br> auto = subscribe<br> special_use = \Sent<br> }<br> mailbox "Sent Messages" {<br> special_use = \Sent<br> }<br> mailbox Trash {<br> auto = subscribe<br> special_use = \Trash<br> }<br> prefix = <br>}<br>passdb {<br> args = /etc/dovecot/dovecot-sql.conf.ext<br> driver = sql<br>}<br>plugin {<br> quota = dict:User quota::proxy::quota<br> quota_exceeded_message = User quota exceed<br> quota_grace = 20%%<br> quota_warning = storage=99%% quota-warning 99 %u<br> quota_warning2 = storage=95%% quota-warning 95 %u<br> quota_warning3 = storage=90%% quota-warning 90 %u<br> quota_warning4 = storage=80%% quota-warning 80 %u<br> quota_warning5 = storage=75%% quota-warning 75 %u<br> sieve = file:~/sieve;active=~/.dovecot.sieve<br> sieve_extensions = +vacation-seconds<br> sieve_vacation_default_period = 0<br> sieve_vacation_max_period = 1d<br> sieve_vacation_min_period = 0<br>}<br>protocols = " imap lmtp sieve pop3"<br>service anvil {<br> client_limit = 3448<br>}<br>service auth {<br> client_limit = 10100<br> unix_listener /var/spool/postfix/private/auth {<br> mode = 0666<br> }<br> unix_listener auth-userdb {<br> mode = 0666<br> }<br> vsz_limit = 512 M<br>}<br>service dict {<br> unix_listener dict {<br> group = vmail<br> mode = 0600<br> user = vmail<br> }<br>}<br>service imap-login {<br> client_limit = 2048<br> process_limit = 1000<br> service_count = 0<br> vsz_limit = 1 G<br>}<br>service imap {<br> client_limit = 1<br> process_limit = 8192<br> process_min_avail = 8<br> service_count = 100<br>}<br>service lmtp {<br> executable = lmtp -L<br> process_min_avail = 5<br> unix_listener /var/spool/postfix/private/dovecot-lmtp {<br> group = postfix<br> mode = 0600<br> user = postfix<br> }<br> user = vmail<br>}<br>service managesieve-login {<br> inet_listener sieve {<br> port = 4190<br> }<br> process_min_avail = 0<br> service_count = 0<br> vsz_limit = 100 M<br>}<br>service pop3-login {<br> process_limit = 512<br> service_count = 0<br>}<br>service pop3 {<br> client_limit = 1<br> process_limit = 1024<br> service_count = 1<br>}<br>service quota-warning {<br> executable = script /etc/dovecot/quota-warning.sh<br> unix_listener quota-warning {<br> user = vmail<br> }<br> user = vmail<br>}<br>service stats {<br> unix_listener stats-reader {<br> group = vmail<br> mode = 0666<br> user = vmail<br> }<br> unix_listener stats-writer {<br> user = vmail<br> }<br>}<br>ssl_cert = </etc/dovecot/ssl/dovecot.crt<br>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<br>ssl_client_ca_dir = /etc/ssl/certs<br>ssl_dh = # hidden, use -P to show it<br>ssl_key = # hidden, use -P to show it<br>syslog_facility = local0<br>userdb {<br> args = /etc/dovecot/dovecot-sql.conf.ext<br> driver = sql<br>}<br>verbose_proctitle = yes<br>protocol lmtp {<br> mail_fsync = optimized<br> mail_plugins = quota sieve<br>}<br>protocol imap {<br> imap_capability = +XLIST<br>}<br>local 1.2.3.13 {<br> ssl_cert = </etc/dovecot/ssl/ssl13.crt<br> ssl_key = # hidden, use -P to show it<br>}<br>local 1.2.3.14 {<br> ssl_cert = </etc/dovecot/ssl/ssl14.crt<br> ssl_key = # hidden, use -P to show it<br>}<br>local 1.2.3.15 {<br> ssl_cert = </etc/dovecot/ssl/ssl15.crt<br> ssl_key = # hidden, use -P to show it<br>}<br>local 1.2.3.16 {<br> ssl_cert = </usr/local/ssl/ssl16.pem<br> ssl_key = # hidden, use -P to show it<br>}<br>local 1.2.3.12 {<br> protocol sieve {<br> mail_max_userip_connections = 20<br> }<br>}<br>local 1.2.3.13 {<br> protocol imap {<br> mail_max_userip_connections = 20<br> mail_plugins = quota imap_quota<br> }<br>}<br>local 1.2.3.13 {<br> protocol pop3 {<br> mail_plugins = quota<br> }<br>}<br>local 1.2.3.14 {<br> protocol imap {<br> mail_plugins = quota imap_quota<br> }<br>}<br>local 1.2.3.14 {<br> protocol pop3 {<br> mail_plugins = quota<br> }<br>}<br>local 1.2.3.15 {<br> protocol imap {<br> mail_plugins = quota imap_quota<br> }<br>}<br>local 1.2.3.15 {<br> protocol pop3 {<br> mail_plugins = quota<br> }<br>}<br>local 1.2.3.16 {<br> protocol imap {<br> mail_plugins = quota imap_quota<br> }<br>}<br>local 1.2.3.16 {<br> protocol pop3 {<br> mail_plugins = quota<br> }<br>}<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">st 9. 12. 2020 v 8:27 odesílatel Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On 09/12/2020 09:24 Lampa <<a href="mailto:lampacz@gmail.com" target="_blank">lampacz@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Hello,<br>
> <br>
> 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<br>
> <br>
> It's a system with 1000+ imap and 200+ pop3 connections. When imap connections are over 1000 problems begins.<br>
> <br>
> Problem one:<br>
> 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<br>
> 2020-12-07T12:46:39.576448+01:00 vhermes dovecot: pop3: Fatal: master: service(pop3): child 13975 killed with signal 9<br>
> 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<br>
> 2020-12-07T12:46:42.016680+01:00 vhermes dovecot: lmtp: Fatal: master: service(lmtp): child 13985 killed with signal 9<br>
> 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<br>
> 2020-12-07T12:46:42.062973+01:00 vhermes dovecot: lmtp: Fatal: master: service(lmtp): child 13987 killed with signal 9<br>
> <br>
> problem two:<br>
> 2020-12-07T13:55:43.106017+01:00 vhermes dovecot: pop3: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable<br>
> 2020-12-07T13:56:22.300893+01:00 vhermes dovecot: lmtp: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable<br>
> 2020-12-07T13:58:11.721892+01:00 vhermes dovecot: imap: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Resource temporarily unavailable<br>
> <br>
> problem three - lot of<br>
> 2020-12-07T10:16:24.773347+01:00 vhermes dovecot: imap-login: Error: master(imap): net_connect_unix(imap) failed: Resource temporarily unavailable - <a href="http://wiki2.dovecot.org/SocketUnavailable" rel="noreferrer" target="_blank">http://wiki2.dovecot.org/SocketUnavailable</a><br>
> <br>
<br>
<br>
Your client_limit is too low. Try increasing it for these services.<br>
<br>
<snip/><br>
<br>
> Seems that last problem is solved (if same) <a href="https://github.com/dovecot/core/commit/a668d767a710ca18ab6e7177d8e8be22a6b024fb" rel="noreferrer" target="_blank">https://github.com/dovecot/core/commit/a668d767a710ca18ab6e7177d8e8be22a6b024fb</a><br>
> <br>
> Thank you for any help<br>
> <br>
> -- <br>
> <br>
> Lampa<br>
<br>
Aki<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Lampa</div>