Do your mail users like it to use mixed upper/lower case in user names? So the problem described below may hit you.
Your mail user is known to the system as user.name@domain.tld. The user itself knows himself asUser Name so he naturally (it seems) uses User.Name@domain.tld when logging in to the Roundcube webmail page. Roundcube does not care much and saves User.Name@domain.tld to it’s internal data base.
It tries to connect to the Dovecot IMAP server and gets a a001 NO Authentication failed. back. Dovecot indeed cares about the case. When trying to use the lower case variantuser.name@domain.tld Roundcube still seems to use the former mixed case variant it already saved for connecting to the IMAP server.
To make it easy for your users just configure Dovecot to convert user names to lower case before looking it up in the system. Set this variable in /etc/dovecot/dovecot.conf:
And restart Dovecot.
Note :
I stumbled upon the same problem in our rc 0.5 installation. Unless
you have some weird imap server that requires case sensitive usernames
you *should* set $rcmail_config[‘login_lc‘] to “true”. If you don’t
then some of your users will use an upper/lower case combination for
their username the first time they try to login and then they would
have to stick with it or else will fail to login successfully with an
error message like:
MDB2 Error: constraint violation (-3): _doQuery: [Error message: Could
not execute statement]
[Last executed query: EXECUTE
mdb2_statement_mysql_59ee766a0fe6d6645f1d52ec743dc1adb66c4b2e3 USING
@0, @1, @2, @3]
[Native code: 1062]
[Native message: Duplicate entry ‘user10-mail.server.tld’ for key ‘username’]
After setting login_lc to true you would probably have to clean up the
users table and make sure that all username entries are in lower case.
RC developers, consider setting the default value of login_lc to true
or at least add it to the installer page with a proper notice.