1 (edited by joonlapsi 2021-03-19 23:25:54)

Topic: Help with client_limit (1000) reached

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v1.3.2
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? v4.7
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Firstly, I really appreciate all the hard work done by the iRedMail team. Awesome Mail Server.  We used to use SME Server, but this is great.  Migrating to this went quite well and so far so good.  HOWEVER, I'm sure this has been solved a number of times, but I need help.  I get the dreaded "client_limit (1000) reached, client connections are being dropped." 


WE have around 150 active users at most.  250 user accounts.  Some share accounts for team purposes. 

In Dovecot I've set:

protocol_ imap
mail_max_userip_connections 5000

service imap-login
process_limit = 5000
client_limit = 2000 (I added this line here )

Some numbers may be overdoing it, but just wanted to see what would happen.  I've restarted dovecot.

But still getting:
Mar 18 13:08:07 mail dovecot: master: Warning: service(stats): client_limit (1000) reached, client connections are being dropped

I tried to google search the answers for solutions but doesn't seem to work.  Please help.

Thanks.

J

2

Re: Help with client_limit (1000) reached

joonlapsi wrote:

protocol_ imap
mail_max_userip_connections 5000

I think this is wrong tuning, "mail_max_userip_connections" means "Maximum number of IMAP (if you put this parameter in `protocol imap {}`) connections allowed for a user from each IP address", it's not related to the "client_limit" limitation.

joonlapsi wrote:

Mar 18 13:08:07 mail dovecot: master: Warning: service(stats): client_limit (1000) reached, client connections are being dropped

It complains the client_limit of the "stats" service, so you can increase it inside the `service stats {}` section. for example:

service stats {
    client_limit 1500
    # ... omit other parameters here ...
}

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Help with client_limit (1000) reached

Thanks for response.  I'll work on the changes.

4

Re: Help with client_limit (1000) reached

Questions
1) Do I need to remove the lines that include
     fifa_listener stats-mail {
     unix_listeners stats-writer {
     intet_listeners {

2) I added "client_limit 1500"  but got error
Apr  7 12:39:49 mail dovecot: master: Error: Error reading configuration: Error in configuration file /etc/dovecot/dovecot.conf line 271: Expecting '{'

or should I add "client_limit = 1500"

Appreciate your help.

5

Re: Help with client_limit (1000) reached

Check my first reply please.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

6

Re: Help with client_limit (1000) reached

Ok. Thanks!