I used one web based control panel to create some virtual users for Dovecot. That control panel no longer works so I need to do this manually.
I need to reset the password for one (virtual) user which is listed in dovecot.passwd
file. The file uses CRYPT
schema. How do I reset that password?
So the question boils down to - what can use to convert plain text password to CRYPT
encrypted format?
You can use the
doveadm
utility that comes with Dovecot:You can use the Apache utility
htpasswd
. It usescrypt()
to encrypt passwords by default on Linux platforms. The following will prompt you for the new password for the userjscott
and will update the file/etc/dovecot/dovecot.passwd
.htpasswd /etc/dovecot/dovecot.passwd jscott
or to avoid the prompts do:
doveadm pw -s CRYPT -p yourpassword -u user
doveadm pw -s SHA512-CRYPT
is also good.