DirectAdmin User cannot login to dovecot after update to 2.4.1-4

CISWS

Verified User
Joined
Aug 4, 2016
Messages
12
Good day to all,

Yesterday I have updated my webservers to DirectAdmin 1.676 including dovecot 2.4.1-4. Now I have some (luckily just a very few) users that cannot login any more into the mail. Roundcube, imap and pop3 logins fail. This only happens to the main DirectAdmin e-mail accounts (so the accounts without @domain.com). The normal (virtual) e-mail accounts seem to work without any issues. I didn't also receive complaints from users other than the few using a DirectAdmin account.

I already tried to rebuild dovecot one more time but that didn't solve the problem. The OS is Alma Linux 8.10. Is this is known issue and is there a fix for this?

Best regards
Roland



PS: a short piece of the log for a login attempt to Roundcube:

Code:
Apr 23 09:11:23 ws11 dovecot[160686]: auth-worker(************,::1)<161364><31gTz2wz6KEAAAAAAAAAAAAAAAAAAAAB>: request [9]: Error: unix_user: pam_authenticate() failed: Authentication failure (/etc/pam.d/dovecot missing?)
Apr 23 09:11:25 ws11 dovecot[160686]: imap-login: Login aborted: Connection closed (auth failed, 1 attempts in 2 secs) (auth_failed): user=<************>, method=PLAIN, rip=::1, lip=::1, secured, session=<31gTz2wz6KEAAAAA
 
If the mail address is like [email protected] and username1 is used to login, change the username1 of the account to a new one (for example username2) and add a new mailbox with that username1 so [email protected] still can used.

OR

You can manually modify /usr/virtual/domain.tld/passwd file to add the username to access as before.
 
You can manually modify /usr/virtual/domain.tld/passwd file to add the username to access as before.

That would be a work-around. But where are the data stored? It's not in /home/username1/imap/domain.tld/

Edit: found it in /home/username1/Maildir
 
I have added this line to /etc/virtual/domain.tld/passwd:

username1:$6$u_hidden_hash_bhw5.:1037:12::/home/username1/Maildir:/bin/false:userdb_quota_rule=*:bytes=0M userdb_quota_storage_size=0M

and I can login to Roundcube with [email protected] but Roundcube says "Mailbox is empty"
 
I have changed the configuration file and now I have my mailbox back up and running. I just had to change the login username to the full email address.

@zEitEr : I'll (try to) remember this method when I run into this again.

Thanks to all for your support.
 
We had the same issue with one of our customers which use DA user (= system user) to use Dovecot.
After the Dovecot upgrade we got the same issue.

Code:
 Error: unix_user: pam_authenticate() failed: Authentication failure (/etc/pam.d/dovecot missing?)
I've created the /etc/pam.d/dovecot file and it works again.
Code:
# cat /etc/pam.d/dovecot
auth    required        pam_unix.so
account required        pam_unix.so

I've checked the release notes again https://github.com/dovecot/core/releases/tag/2.4.1.
I see the following line:
Code:
auth: Change unix_listener/auth-userdb/group = $SET:default_internal_group
This change needs dovecot_config_version=2.4.1.

Could it be that DirectAdmin must update the dovecot config for this new version?
 
Back
Top