1

Topic: IMAP4 Errors in SOGO Log

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

iRedMail 1.6.0
Ubuntu 20.04
MySQL
NGINX

I have a fresh install of iRedMail running - and am trying to fine-tune performance issues. In reviewing SOGO logs, it appears all active mail accounts result in the following IMAP errors. I’ve ensured IMAP firewall ports are open; thoughts on what might be causing this or how I can fix?

Aug 02 23:09:58 sogod [263070]: [ERROR] <0x0x55fa97811280[NGImap4ConnectionManager]> IMAP4 login failed:
  host=127.0.0.1, user=brett@XXXX.com, pwd=yes
  url=imaps://brett%40XXXX.com@127.0.0.1/?tls=YES&tlsVerifyMode=allowInsecureLocalhost
  base=(null)
  base-class=(null))
  = <0x0x55fa981306c0[NGImap4Client]: login=brett@XXXX.com(pwd) socket=<NGActiveSSLSocket[0x0x55fa980fc7e0]: mode=rw address=(null)>>
Aug 02 23:09:58 sogod [263070]: <0x55fa9815be10[SOGoMailAccount]:0> renewing imap4 password
Aug 02 23:09:58 sogod [263070]: <0x0x55fa981619a0[NGImap4Client]> TLS started successfully.
Aug 02 23:09:58 sogod [263070]: [ERROR] <0x0x55fa97811280[NGImap4ConnectionManager]> IMAP4 login failed:
  host=127.0.0.1, user=brett@XXXX.com, pwd=yes
  url=imaps://brett%40XXXX.com@127.0.0.1/?tls=YES&tlsVerifyMode=allowInsecureLocalhost
  base=(null)
  base-class=(null))
  = <0x0x55fa981619a0[NGImap4Client]: login=brett@XXXX.com(pwd) socket=<NGActiveSSLSocket[0x0x55fa97f5e220]: mode=rw address=(null)>>
Aug 02 23:09:58 sogod [263070]: [ERROR] <0x55fa9815be10[SOGoMailAccount]:0> Could not connect IMAP4
Aug 02 23:09:58 sogod [263070]: <0x0x55

----

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

2

Re: IMAP4 Errors in SOGO Log

Here are entries from the SOGO log grep’d for all IMAP4 entries. Getting errors multiple times per second!

Aug 04 10:02:00 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:00 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:00 sogod [407771]: [ERROR] <0x55fe5facb3d0[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:02 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:02 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:02 sogod [407771]: [ERROR] <0x55fe5fa8bd90[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:04 sogod [407678]: [ERROR] <0x0x55fe5e8a3270[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407678]: [ERROR] <0x0x55fe5e8a3270[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407678]: [ERROR] <0x55fe5fc94fb0[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:04 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407728]: [ERROR] <0x55fe5fb5d150[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:04 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:04 sogod [407771]: [ERROR] <0x55fe5fb63330[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:09 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:09 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:09 sogod [407771]: [ERROR] <0x55fe5fb65130[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:10 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:10 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:10 sogod [407771]: [ERROR] <0x55fe5faf4220[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:13 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:13 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:13 sogod [407768]: [ERROR] <0x55fe5fb9b970[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:16 sogod [407758]: [ERROR] <0x0x55fe5e29b800[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:16 sogod [407758]: [ERROR] <0x0x55fe5e29b800[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:16 sogod [407758]: [ERROR] <0x55fe5fb63080[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:19 sogod [407724]: [ERROR] <0x0x55fe5e2aee40[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:19 sogod [407724]: [ERROR] <0x0x55fe5e2aee40[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:19 sogod [407724]: [ERROR] <0x55fe5fc2ef10[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:20 sogod [407746]: [ERROR] <0x0x55fe5e26f3d0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:20 sogod [407746]: [ERROR] <0x0x55fe5e26f3d0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:20 sogod [407746]: [ERROR] <0x55fe5fcb72d0[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:21 sogod [407721]: [ERROR] <0x0x55fe5e65dab0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:21 sogod [407717]: [ERROR] <0x0x55fe5e8a2890[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:21 sogod [407721]: [ERROR] <0x0x55fe5e65dab0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:21 sogod [407721]: [ERROR] <0x55fe5fc55d20[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:21 sogod [407717]: [ERROR] <0x0x55fe5e8a2890[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:21 sogod [407717]: [ERROR] <0x55fe5fa75190[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:22 sogod [407746]: [ERROR] <0x0x55fe5e26f3d0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:22 sogod [407746]: [ERROR] <0x0x55fe5e26f3d0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:22 sogod [407746]: [ERROR] <0x55fe5fc51fd0[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:24 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:24 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:24 sogod [407768]: [ERROR] <0x55fe5fbb8040[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:26 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:26 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:26 sogod [407768]: [ERROR] <0x55fe5fb91620[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:27 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:27 sogod [407768]: [ERROR] <0x0x55fe5e8986b0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:27 sogod [407768]: [ERROR] <0x55fe5fc25a00[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x55fe5faa4360[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x0x55fe5e5382e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:34 sogod [407728]: [ERROR] <0x55fe5fb12d60[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:37 sogod [407678]: [ERROR] <0x0x55fe5e8a3270[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:37 sogod [407678]: [ERROR] <0x0x55fe5e8a3270[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:37 sogod [407678]: [ERROR] <0x55fe5f6b2cc0[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:41 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:41 sogod [407771]: [ERROR] <0x0x55fe5e8ebd70[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:41 sogod [407771]: [ERROR] <0x55fe5fcaf2c0[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:02:43 sogod [407683]: [ERROR] <0x0x55fe5e537fc0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:43 sogod [407683]: [ERROR] <0x0x55fe5e537fc0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:02:43 sogod [407683]: [ERROR] <0x55fe5fd3d930[SOGoMailAccount]:0> Could not connect IMAP4
Aug 04 10:03:49 sogod [407727]: [ERROR] <0x0x55fe5e2746e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:03:49 sogod [407727]: [ERROR] <0x0x55fe5e2746e0[NGImap4ConnectionManager]> IMAP4 login failed:
Aug 04 10:03:49 sogod [407727]: [ERROR] <0x55fe5fac7e70[SOGoDraftsFolder]:folderDrafts> Could not connect IMAP4
ubuntu@mail:~$

3

Re: IMAP4 Errors in SOGO Log

Is Dovecot service running?

4

Re: IMAP4 Errors in SOGO Log

ZhangHuangbin wrote:

Is Dovecot service running?

Hi Zhang - Dovecot is running.

5

Re: IMAP4 Errors in SOGO Log

It says can not connect to IMAP service, which means imap service may be not running at that time.
Try to restart dovecot and sogo services, then check again.
Also, pay close attention to Dovecot / SOGo log files.