[GH-ISSUE #266] Dovecot saying "Not a valid MD5-CRYPT or PLAIN-MD5 password" (log in with Roundcube) #216

Closed
opened 2026-02-26 09:36:49 +03:00 by kerem · 2 comments
Owner

Originally created by @Betalord on GitHub (May 18, 2020).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/266

I'm having the following problem: I've set up ViMbAdmin more or less as the docs say, and all works (I add domains, mailboxes etc.), but when I try to login via Roundcube, it just doesn't work (login failed). If I look at the logs, this is what I get from dovecot (/var/log/mail.log):

May 18 12:48:40 betalord dovecot: auth-worker(1709475): Error: sql(betalord@betalord.com,127.0.0.1,<GyrF5+ml+Jx/AAAB>): Invalid password in passdb: Not a valid MD5-CRYPT or PLAIN-MD5 password

Any idea what's wrong?

Originally created by @Betalord on GitHub (May 18, 2020). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/266 I'm having the following problem: I've set up ViMbAdmin more or less as the docs say, and all works (I add domains, mailboxes etc.), but when I try to login via Roundcube, it just doesn't work (login failed). If I look at the logs, this is what I get from dovecot (/var/log/mail.log): `May 18 12:48:40 betalord dovecot: auth-worker(1709475): Error: sql(betalord@betalord.com,127.0.0.1,<GyrF5+ml+Jx/AAAB>): Invalid password in passdb: Not a valid MD5-CRYPT or PLAIN-MD5 password ` Any idea what's wrong?
kerem closed this issue 2026-02-26 09:36:50 +03:00
Author
Owner

@Marcwa19197 commented on GitHub (Jun 8, 2020):

Which settings are you using as "defaults.mailbox.password_scheme" in your application.ini? (Installpath/application/configs/application.ini)

The setting there must match with the Dovecot settings.

So i guess in your environment it should be set to defaults.mailbox.password_scheme = "crypt:md5"

; The password hashing function to use. Set to one of:
;
; "plain" - password stored as clear text
; "md5" - password hashed using MD5 without salt (PHP md5())
; "md5.salted" - password hashed using MD5 with salt (see below)
; "sha1" - password hashed using sha1 without salt
; "sha1.salted" - password hashed using sha1 with salt defined below
; "crypt:XXX" - call the PHP crypt function (with random salt) where XXX is one of: md5, blowfish, sha256, sha512
; "dovecot:XXX" - call the Dovecot password generator (see next option below) and use the
; scheme specified by XXX. To see available schemes, use 'dovecotpw -l'
; or 'doveadm pw -l'

<!-- gh-comment-id:640400602 --> @Marcwa19197 commented on GitHub (Jun 8, 2020): Which settings are you using as "defaults.mailbox.password_scheme" in your application.ini? (Installpath/application/configs/application.ini) The setting there must match with the Dovecot settings. So i guess in your environment it should be set to defaults.mailbox.password_scheme = "crypt:md5" ; The password hashing function to use. Set to one of: ; ; "plain" - password stored as clear text ; "md5" - password hashed using MD5 without salt (PHP md5()) ; "md5.salted" - password hashed using MD5 with salt (see below) ; "sha1" - password hashed using sha1 without salt ; "sha1.salted" - password hashed using sha1 with salt defined below ; "crypt:XXX" - call the PHP crypt function (with random salt) where XXX is one of: md5, blowfish, sha256, sha512 ; "dovecot:XXX" - call the Dovecot password generator (see next option below) and use the ; scheme specified by XXX. To see available schemes, use 'dovecotpw -l' ; or 'doveadm pw -l'
Author
Owner

@Betalord commented on GitHub (Jun 8, 2020):

I resolved the problem with help of good folks at freenode IRC. There were several things that did not work with my configuration, to be honest. Anyway, I resolved my problem, thanks anyway!

<!-- gh-comment-id:640457251 --> @Betalord commented on GitHub (Jun 8, 2020): I resolved the problem with help of good folks at freenode IRC. There were several things that did not work with my configuration, to be honest. Anyway, I resolved my problem, thanks anyway!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#216
No description provided.