Mischa Peters
2010-Aug-16 13:31 UTC
[Dovecot] Split number of imap-login and pop3-login processes
Hi All, Is there a way to define the number for imap-login processes and pop3-login processes separately? My mail server is getting more IMAP clients and much less POP3 clients these days and it continues to run out of authentication processes. I have been increasing login_max_processes_count the last couple of days and I noticed that it's split between IMAP and POP3. All 129 imap-login processes are tied up while there are only 3 of the 129 pop3-login processes in use. Any help would be greatly appreciated! Thanx!! Mischa mail:~ # dovecot --version 1.2.12 mail:~ # dovecot -n # 1.2.12: /usr/local/etc/dovecot.conf # OS: FreeBSD 8.1-RELEASE amd64 zfs base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s listen(default): *,[::]:143 listen(imap): *,[::]:143 listen(pop3): *,[::]:110 ssl_listen(default): *,[::]:993 ssl_listen(imap): *,[::]:993 ssl_listen(pop3): *,[::]:995 ssl_ca_file: /usr/local/etc/certs/gd_bundle.crt ssl_cert_file: /usr/local/etc/certs/cert.crt ssl_key_file: /usr/local/etc/certs/key.key disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_processes_count: 256 mail_max_userip_connections(default): 20 mail_max_userip_connections(imap): 20 mail_max_userip_connections(pop3): 6 verbose_proctitle: yes first_valid_uid: 144 first_valid_gid: 144 mail_access_groups: postfix mail_location: maildir:/var/mail/virtual/%u/ mbox_write_locks: fcntl mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login passdb: driver: sql args: /usr/local/etc/dovecot-mysql.conf userdb: driver: sql args: /usr/local/etc/dovecot-mysql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix @mail:~ # grep -v '^ *\(#.*\)\?$' dovecot-mysql.conf driver = mysql default_pass_scheme = CRYPT connect = host=***** dbname=postfix user=postfix password=******** password_query = SELECT password FROM mailbox WHERE username='%u' AND active='1' user_query = SELECT maildir, 144 AS uid, 144 AS gid FROM mailbox WHERE username='%u' AND active='1'
Timo Sirainen
2010-Aug-16 14:18 UTC
[Dovecot] Split number of imap-login and pop3-login processes
On Mon, 2010-08-16 at 15:31 +0200, Mischa Peters wrote:> Hi All, > > Is there a way to define the number for imap-login processes and pop3-login processes separately? > > My mail server is getting more IMAP clients and much less POP3 clients these days and it continues to run out of authentication processes. > I have been increasing login_max_processes_count the last couple of days and I noticed that it's split between IMAP and POP3. > All 129 imap-login processes are tied up while there are only 3 of the 129 pop3-login processes in use.You can probably put the settings inside protocol pop3 {} and protocol imap {}. But maybe you should switch to high-performance mode: http://wiki.dovecot.org/LoginProcess