Setting up a new user for Dovecot and Postfix with SQLite
If you are using dovecot and postfix with a SQLite backend you can easily add a new user account with just a few steps. If you are using a different database such as MySQL, the following steps should be easily transferrable. We are assuming this is a new user account for an already configured and existing domain name on your mail server.
First we’ll need to generate a new password using SHA512-CRYPT encryption using the doveadm utility.