How to change password schema for Dovecot user authentication for an already existing mail server

Posted by deb_lrnr on Server Fault See other posts from Server Fault or by deb_lrnr
Published on 2010-12-30T18:43:16Z Indexed on 2010/12/30 18:56 UTC
Read the original article Hit count: 267

Hello,

I have an email server setup on Debian Lenny with Postfix, Dovecot, SASL and MySQL.

Currently, the password scheme in my dovecot-sql.conf file is set to: CRYPT

default_pass_scheme = CRYPT

I would like to globally change the scheme to something stronger like SSHA, or MD5-CRYPT and re-hash all passwords with SSHA. What is the best way to do this?

The Dovecot wiki mentions how passwords that don't follow the default scheme defined in dovecot-sql.conf can be prefixed with "{ssha}password", but I couldn't see anything regarding changing an already-existing scheme to a new one for all passwords that are already in the database.

Thanks for your help!

© Server Fault or respective owner

Related posts about mysql

Related posts about email