Richard
2009-Jun-22 18:26 UTC
[Dovecot] CRAM-MD5 authentication but plain-md5 password storage.
Hi all, Got a question on configuring dovecot, I'm still new at this so I might be doing this all wrong. I want dovecot to authenticate the mail client using CRAM-MD5 so I've setup the config in dovecot.conf: auth default { mechanisms = cram-md5 passdb sql { # Path for SQL configuration file, see doc/dovecot-sql-example.conf args = /etc/dovecot/dovecot-sql.conf } <snipped> } In my dovecot-sql.conf I've setup the password scheme to be: default_pass_scheme = MD5 Somehow this does not work, the error I see in the logfile is: auth-worker(default): password(info at richard5.tld,127.0.0.1): Requested CRAM-MD5 scheme, but we have only MD5 Is there a way to get this working or does this feature only works with passwords stored in plain text ? Thanks! Richard
Pascal Volk
2009-Jun-22 18:38 UTC
[Dovecot] CRAM-MD5 authentication but plain-md5 password storage.
On 06/22/2009 08:26 PM Richard wrote:> Hi all, > > Got a question on configuring dovecot, I'm still new at this so I > might be doing this all wrong. > > I want dovecot to authenticate the mail client using CRAM-MD5 so I've > setup the config in dovecot.conf: > > auth default { > > mechanisms = cram-md5 > passdb sql { > # Path for SQL configuration file, see doc/dovecot-sql-example.conf > args = /etc/dovecot/dovecot-sql.conf > } > > <snipped> > } > > In my dovecot-sql.conf I've setup the password scheme to be: > > default_pass_scheme = MD5 > > Somehow this does not work, the error I see in the logfile is: > auth-worker(default): password(info at richard5.tld,127.0.0.1): Requested > CRAM-MD5 scheme, but we have only MD5 > > Is there a way to get this working or does this feature only works > with passwords stored in plain text ?Either use plain text, but this is NOT recommended, or dovecotpw: /path/to/dovecotpw -p plaintexpassword {CRAM-MD5}aba976aa6a7f048a82db01301075725bf42c6ad98f01a2747a853e0f479e25f8 Or w/o -p password, for the interactive mode. Regards, Pascal -- The trapper recommends today: c01dcofe.0917320 at localdomain.org
Reasonably Related Threads
- cram-md5 and users maintaining their own passwords?
- CRAM-MD5 Password Generation Algorithm
- Using pgsql with 'cram-md5 auth' and 'hmac-md5 scheme'
- CRAM-MD5 in Python
- dovecot.conf: mechanisms = plain login cram-md5 | Windows Live Mail: CRAM-MD5 authentication failed. This could (NOT) be due to a lack of memory on your system