1

Topic: Issue when users try to load messages and folders in webmail

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

Hello,

in our server we receive the next messages in the sogo.log and its look related to a case when the users try to access to the webmail and doesnt load the folders or messages:

Jul 01 16:55:58 sogod [2143362]: 190.252.226.186 "POST /SOGo/so/director1@gyomedical.com.co/Mail/unseenCount HTTP/1.0" 200 21/31 0.116 - - 0
Jul 01 16:55:58 sogod [2143362]: <0x0x563de53b9d40[NGImap4Client]> ERROR(-[NGImap4Client _handleShutdownDuringCommandException:]): IMAP4 socket was shut down by server NGSocketShutdownDuringReadException: the socket was shutdown
Jul 01 16:55:58 sogod [2143362]: [ERROR] <0x0x563de3b39910[NGImap4ConnectionManager]> IMAP4 login failed:
Jul 01 16:55:58 sogod [2143362]: <0x563de5a8f8b0[SOGoMailAccount]:0> renewing imap4 password
Jul 01 16:55:58 sogod [2143362]: <0x0x563de530fb00[NGImap4Client]> ERROR(-[NGImap4Client _handleShutdownDuringCommandException:]): IMAP4 socket was shut down by server NGSocketShutdownDuringReadException: the socket was shutdown
Jul 01 16:55:58 sogod [2143362]: [ERROR] <0x0x563de3b39910[NGImap4ConnectionManager]> IMAP4 login failed:
Jul 01 16:55:58 sogod [2143362]: [ERROR] <0x563de5a8f8b0[SOGoMailAccount]:0> Could not connect IMAP4

Please help us to validate the origin of the issue

Many thanks

2

Re: Issue when users try to load messages and folders in webmail

alexandercolhost wrote:

Jul 01 16:55:58 sogod [2143362]: <0x0x563de53b9d40[NGImap4Client]> ERROR(-[NGImap4Client _handleShutdownDuringCommandException:]): IMAP4 socket was shut down by server NGSocketShutdownDuringReadException: the socket was shutdown

Any related log in Dovecot log files under /var/log/dovecot/?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Issue when users try to load messages and folders in webmail

Thanks for your help, in the dovecot.log appears:
Jul  1 16:55:57 mail3 dovecot[2366133]: master: Warning: service(imap): process_limit (1024) reached, client connections are being dropped
Jul  1 16:55:58 mail3 dovecot[2366133]: master: Warning: service(imap): process_limit (1024) reached, client connections are being dropped

the imap.log shows:
Jul  1 16:55:57 mail3 dovecot[2366139]: imap-login: Internal login failure (pid=2366155 id=5163): user=<xxxx@xxx.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<ICdbW2ipAol/AAAB>
Jul  1 16:55:58 mail3 dovecot[2366139]: imap-login: Error: master(imap): read() failed: Remote closed connection (destination service { process_limit } reached?) (client-pid=2366170, client-id=5653, rip=127.0.0.1, created 0 msecs ago, received 0/4 bytes)

And the dovecont.conf have the next values:
    service_count = 0
    process_limit = 2500

4

Re: Issue when users try to load messages and folders in webmail

alexandercolhost wrote:

Jul  1 16:55:57 mail3 dovecot[2366133]: master: Warning: service(imap): process_limit (1024) reached, client connections are being dropped

Please increase the process_limit setting in /etc/dovecot/dovecot.conf, inside "service imap {}" section.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5 (edited by alexandercolhost 2020-07-02 22:19:21)

Re: Issue when users try to load messages and folders in webmail

Right now the file /etc/dovecot/dovecot.conf doesnt have that info, we can add those 3 lines?

service imap {
   process_limit = 20000
}

Update:
We added those lines and restarted the dovecot, we will verify if that change fix the issues in the webmail. Now the dovecot.log shows the next errors:
Jul  2 09:12:46 mail3 dovecot[2756855]: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
Jul  2 09:12:46 mail3 dovecot[2756855]: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:526: ssl_dh_parameters_length is no longer needed
Jul  2 09:12:46 mail3 dovecot[2756855]: config: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
Jul  2 09:12:46 mail3 dovecot[2756855]: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:526: ssl_dh_parameters_length is no longer needed
Jul  2 09:12:47 mail3 dovecot[2756855]: config: Warning: service auth { client_limit=2096 } is lower than required under max. load (12500)
Jul  2 09:12:47 mail3 dovecot[2756855]: config: Warning: service anvil { client_limit=2096 } is lower than required under max. load (10003)
Jul  2 09:12:47 mail3 dovecot[2756855]: config: Warning: please set ssl_dh=</etc/dovecot/dh.pem
Jul  2 09:12:47 mail3 dovecot[2756855]: config: Warning: You can generate it with: dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem
Jul  2 09:14:20 mail3 dovecot[2756855]: auth: Warning: auth client 0 disconnected with 1 pending requests: EOF
Jul  2 09:14:25 mail3 dovecot[2756855]: auth: Warning: auth client 0 disconnected with 1 pending requests: EOF

6

Re: Issue when users try to load messages and folders in webmail

CentOS 8.2.2004 upgraded Dovecot from 2.2.36 to 2.3.x, but 2.3 release is not fully backward compatible with 2.2.x.
Please follow this tutorial to upgrade Dovecot from 2.2.x to 2.3:
https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee