4

I've been seeing this warning in the last few months, when my email client is unable to connect to our dovecot IMAP server.

Warning: service(imap-login): process_limit reached, client connections are being dropped

Googling this I've seen suggestions to just up the limit (currently it's set to 144). Also a suggestion that some email clients using IMAP IDLE are holding open connections too long, so I should break the connection after 30 minutes.

Should I do one or both?

7

Dovecot have two modes for login-services.

First is "secure mode". Each connection processed by separate instance of pop/imap-login that is persistent until client disconnects. There is limit for maximum concurrent connection and if it is exhausted new connections will be refused because of process_limit reached.

Second is the "performance mode". All connections processed by single instance that hasn't limits. Have to say that performance mode not so insecure as you can suppose, but rather "secure mode" is "supersecure".

If you got the message you can increase process_limit or switch login to performance mode:

service imap-login {
  inet_listener imap {
    port        = 143
  }
  service_count = 0 # performance mode. set to 1 for secure mode
  process_min_avail = 1
}
2
  • Dovecot has more than a dozen configuration files, so it would improve your answer if you stated in which configuration file this edit is made. I found (by searching them) it is the 10-master.conf file. – Martin Marshall Oct 22 '18 at 16:31
  • 1
    @MartinMarshall Splitted config isn't mandatory and intended for easier integration with GUI configurators. doveconf -a shows the whole configuration as a single list of options. Version 1.x of dovecot used the monolitic config file by default and this is preferred format as long as we edit it by hands. – Kondybas Oct 22 '18 at 23:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.