1 (edited by jackavin 2017-01-14 06:02:45)

Topic: How to set maximum client for dovecot?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.84
- Linux/BSD distribution name and version: debian 8 jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

I need allow 10k-20k
Can not success setting

when increase process

doveconf: Warning: service auth { client_limit=1000 } is lower than required under max. load (10100)
doveconf: Warning: service anvil { client_limit=1000 } is lower than required under max. load (10103)

when increase client limit
doveconf: Warning: service anvil { client_limit=1000 } is lower than required under max. load (10103)

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by jackavin 2017-01-14 06:50:51)

Re: How to set maximum client for dovecot?

Now config this.

service auth {
    unix_listener /var/spool/postfix/private/dovecot-auth {
        user = postfix
        group = postfix
        mode = 0666
    }
    unix_listener auth-master {
        user = vmail
        group = vmail
        mode = 0666
    }
    unix_listener auth-userdb {
        user = vmail
        group = vmail
        mode = 0660
    }
        client_limit = 3000
}
service anvil {
        client_limit = 3000
}

and

service pop3-login {
    service_count = 0
    process_limit = 1024

    ...
}

service imap-login {
    service_count = 0
    process_min_avail = 4
    process_limit = 1024
}

now error

Starting IMAP/POP3 mail server: dovecotWarning: fd limit (ulimit -n) is lower than required under max.

my uname

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 122901
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65536
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 122901
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

how to increse connection

3

Re: How to set maximum client for dovecot?

jackavin wrote:

doveconf: Warning: service auth { client_limit=1000 } is lower than required under max. load (10100)
doveconf: Warning: service anvil { client_limit=1000 } is lower than required under max. load (10103)

When you get this warning, just add/set "client_limit =" with a proper value in given "service XXX {}" block.

P.S. how many mail accounts do you have on this server? and the server hardware spec?