[ Thanks to An Anonymous Reader for
this link. ]
“As root login to the mail server and use the dovecotpw
command as seen below. It will ask for the password you want to
encrypt and then provide you with the output.# dovecotpw
Enter new password:
Retype new password:
{HMAC-MD5}e02d374fde0dc75a17a557039a3a5338c7743304777dccd376f332bee68d2cf6“In the /etc/dovecot directory create two files, userdb for a
list of users and passdb for the encrypted passwords.”