Page MenuHomePhorge

Kolab/Cyrus-imap not creating mail boxes
Closed, ResolvedPublic

Description

Hi ,

I have installed latest version of Kolab 16, after installation success, have created an couple of users for testing and am trying to login web-mail, i not able to login on it, i have checked the logs and checked i have not found mailboxes.

Also i have installed Ubuntu , Centos , debian all flavors but same issue.

Please help on this .

root@mail:~# kolab lm
Traceback (most recent call last):

File "/usr/sbin/kolab", line 39, in <module>
  kolab = Cli()
File "/usr/lib/python2.7/dist-packages/pykolab/cli/__init__.py", line 73, in __init__
  commands.execute('_'.join(to_execute))
File "/usr/lib/python2.7/dist-packages/pykolab/cli/commands.py", line 138, in execute
  commands[cmd_name]['function'](conf.cli_args, kw)
File "/usr/lib/python2.7/dist-packages/pykolab/cli/cmd_list_mailboxes.py", line 88, in execute
  folders.extend(imap.lm(imap_utf7.encode(search)))
File "/usr/lib/python2.7/dist-packages/pykolab/imap/__init__.py", line 1239, in lm
  return self.imap.lm(*args, **kw)
File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 511, in lm
  self.__prepare('LIST')
File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 373, in __prepare
  self.__doexception(command, self.ERROR.get("NOAUTH")[1])
File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 359, in __doexception
  self.__doraise( function.upper(), msg )
File "/usr/lib/python2.7/dist-packages/cyruslib.py", line 368, in __doraise
  raise CYRUSError( idError[0], mode, msg )

cyruslib.CYRUSError: (99, 'LIST', 'Connection is not authenticated')

root@mail:/var/spool/imap# tail -f /var/log/mail.log
Dec 4 02:01:36 ip-172-31-39-150 ctl_cyrusdb[25952]: checkpointing cyrus databases
Dec 4 02:01:36 ip-172-31-39-150 ctl_cyrusdb[25952]: done checkpointing cyrus databases
Dec 4 02:14:17 ip-172-31-39-150 imaps[25059]: inittls: Loading hard-coded DH parameters
Dec 4 02:14:17 ip-172-31-39-150 imaps[25059]: starttls: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits reused) no authentication
Dec 4 02:14:17 ip-172-31-39-150 imaps[25059]: client id: "name" "Roundcube/Kolab" "version" "1.4-git"
Dec 4 02:14:17 ip-172-31-39-150 imaps[25059]: SASL Password verification failed
Dec 4 02:14:17 ip-172-31-39-150 imaps[25059]: badlogin: [127.0.0.1] unknown AUTHENTICATE+PLAIN+TLS [SASL(-13): authentication failure: Password verification failed]
Dec 4 02:17:31 ip-172-31-39-150 imaps[25908]: inittls: Loading hard-coded DH parameters
Dec 4 02:17:31 ip-172-31-39-150 imaps[25908]: starttls: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits reused) no authentication
Dec 4 02:17:31 ip-172-31-39-150 imaps[25908]: badlogin: [127.0.0.1] cyrus-admin LOGIN+TLS SASL(-13): authentication failure: checkpass failed

root@mail:/var/spool/imap# cd /var/spool/imap/
root@mail:/var/spool/imap# ls
a b c d e f g h i j k l m n o p q r s stage. t u v w x y z
root@mail:/var/spool/imap#

Thanks,
Narendra L

Details

Ticket Type
Task

Event Timeline

laga423 renamed this task from Cyrus-imap not creation mail boxes to Kolab/Cyrus-imap not creating mail boxes .Dec 4 2019, 3:22 AM
laga423 updated the task description. (Show Details)

Hi all

Two weeks ago we update Kolab 16 (we run Kolab16 from a couple of months without any problem, upgrading on regular basis).

After the update, some users begin to report that they can't logon on the server (imap or roundcube).

After some hours of investigacion, we find a possible issue with SASL process. The file auth_cache.db on /var/lib/kolab appears to be used by SASL on logon. If a user is not present on the file, the logon fails with badlogin (the same message that appears on your issue).

We solved the problem (as workaround) by insert on auth_cache.db file all the accounts on the server and restart SASL and Kolabd daemons.

Two days ago we also detected that a new account also fails to appear on auth_cache.db (we need to insert to allow logon) and mailbox was not created on the user addition by the kolab-webadmin (we used a kolab create-mailbox command on the shell).

For me it seems that some has been broken on the upgrade (and i suppouse, on your new installation) regarding SASL process

Our infrastructure:

CentOS Linux release 7.7.1908 (Core)
kolab-saslauthd-0.8.16-2.1.el7.kolab_16.noarch
kolab-server-0.8.16-2.1.el7.kolab_16.noarch

<<New>>
I'm seeing that now appears a Kolab-saslauthd-0.8.17-2.2 for update, I will investigate on changes file ;))

Hi all

After upgrading Kolab to latest packages last weekend, the problem has been solved. Now SASL database is populating without any problem and new mailbox creation also works as usual.

Best regards

sicherha claimed this task.
sicherha subscribed.

Closing this task then.