How to change password schema for Dovecot user authentication for an already existing mail server
- by deb_lrnr
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!