1 (edited by rayatnip 2020-07-01 06:37:51)

Topic: cannot login to iredmail after centos8 updates

==== 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
- Linux/BSD distribution name and version: centos 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

this installation is about one month old and had been working fine. I used yum update to make sure centos was up-to-date. After a handful of packages had been installed, clients were getting can't log into server or server not responding.
I tried postbox on mac but could connect. I tried roundcube. I get the roundcube screen, enter user and passwords but get connection to storage server failed.

I have found this in

/var/log/dovecot/

Jun 27 19:25:28 mail dovecot[2596]: imap-login: Login: user=<ray@atnip.net>, method=LOGIN, rip=127.0.0.1, lip=127.0.0.1, mpid=29953, secured, session=<aIG0+hmpaKR/AAAB>
Jun 27 19:25:28 mail dovecot[2596]: imap(ray@atnip.net): Error: Plugin 'imap_stats' not found from directory /usr/lib64/dovecot
Jun 27 19:26:05 mail dovecot[2596]: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters: error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small: user=<>, rip=98.168.146.136, lip=10.51.7.10, session=<6GDe/BmpHfNiqJKI>

and from

/var/log/maillog

Jun 27 19:27:54 mail roundcube[29707]: <jbsggo7k> IMAP Error: Login failed for ray@atnip.net against 127.0.0.1 from 10.51.7.62. AUTHENTICATE LOGIN:  in /opt/www/roundcubemail-1.4.4/program/lib/Roundcube/rcube_imap.php on line 200 (POST /mail/?_task=login&_action=login)

2

Re: cannot login to iredmail after centos8 updates

CentOS 8 recently rolled out Dovecot-2.3.x, which is not fully compatible with Dovecot-2.2.x.
FYI: 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

3

Re: cannot login to iredmail after centos8 updates

ZhangHuangbin wrote:

CentOS 8 recently rolled out Dovecot-2.3.x, which is not fully compatible with Dovecot-2.2.x.
FYI: https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html

I did the dovecot.conf mods per page.
I did NOT do the mysql changes.

still can't log in.

Do I need to do the sql changes?

4

Re: cannot login to iredmail after centos8 updates

ZhangHuangbin wrote:

CentOS 8 recently rolled out Dovecot-2.3.x, which is not fully compatible with Dovecot-2.2.x.
FYI: https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html

triple checked that I performed all the changes listed on the dovecot 2.2 to 2.3 page you referred me to. Also made sure the new columns to mailbox do exist on my system.
There must be something else that caused the problem.

I can log into admin and check users/domains but cannot log into redcube.

any other suggestions?

5

Re: cannot login to iredmail after centos8 updates

rayatnip wrote:

cannot log into redcube.

any related error in /var/log/maillog and /var/log/dovecot/*.log while login?

----

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

buy me a cup of coffee

6

Re: cannot login to iredmail after centos8 updates

ZhangHuangbin wrote:
rayatnip wrote:

cannot log into redcube.

any related error in /var/log/maillog and /var/log/dovecot/*.log while login?

dovecot.log

Jul  1 11:36:59 mail dovecot[120101]: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jul  1 11:36:59 mail dovecot[120103]: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jul  1 11:36:59 mail dovecot[120104]: lda: Fatal: Internal error occurred. Refer to server log for more information.
[root@mail dovecot]# Jul  1 11:36:59 mail dovecot[120101]: lda: Fatal: Internal error occurred. Refer to server log for more information.



lda.log
Jul  1 11:46:59 mail dovecot[121081]: lda(postmaster@diva.net)<121081><>: Error: auth-master: userdb lookup(postmaster@diva.net): connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
Jul  1 11:46:59 mail dovecot[121083]: lda(postmaster@diva.net)<121083><>: Error: auth-master: userdb lookup(postmaster@diva.net): connect(/var/run/dovecot/auth-userdb) failed: No such file or directory

maillog
Jul  1 11:48:53 mail postfix/postscreen[1607]: CONNECT from [170.130.68.28]:42749 to [10.51.7.10]:25
Jul  1 11:48:53 mail postfix/postscreen[1607]: PASS OLD [170.130.68.28]:42749
Jul  1 11:48:53 mail postfix/smtpd[117293]: connect from mail-a.webstudioninetysix.com[170.130.68.28]
Jul  1 11:48:53 mail postfix/smtpd[117293]: warning: connect to 127.0.0.1:12340: Connection refused
Jul  1 11:48:53 mail postfix/smtpd[117293]: warning: problem talking to server 127.0.0.1:12340: Connection refused
Jul  1 11:48:54 mail postfix/smtpd[117293]: warning: connect to 127.0.0.1:12340: Connection refused
Jul  1 11:48:54 mail postfix/smtpd[117293]: warning: problem talking to server 127.0.0.1:12340: Connection refused
Jul  1 11:48:54 mail postfix/smtpd[117293]: NOQUEUE: reject: RCPT from mail-a.webstudioninetysix.com[170.130.68.28]: 451 4.3.5 <ray@atnip.net>: Recipient address rejected: Server configuration problem; from=<insta.savings-ray=atnip.net@qgars.com> to=<ray@atnip.net> proto=ESMTP helo=<mail.qgars.com>
Jul  1 11:48:54 mail postfix/smtpd[117293]: disconnect from mail-a.webstudioninetysix.com[170.130.68.28] ehlo=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=3/5

7

Re: cannot login to iredmail after centos8 updates

rayatnip wrote:

Jul  1 11:46:59 mail dovecot[121081]: lda(postmaster@diva.net)<121081><>: Error: auth-master: userdb lookup(postmaster@diva.net): connect(/var/run/dovecot/auth-userdb) failed: No such file or directory

Still Dovecot configuration error. If you follow our tutorial strictly, Dovecot should work just fine.

Please try this:

- Restart Dovecot service.
- Check /var/log/dovecot/dovecot.log immediately, any error message?

----

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

buy me a cup of coffee