Skip to content

Create users for Roundcube with Postfix and Dovecot

Just a quick note on how to do this:

  1. Decide on your username and password.
  2. To generate the password: sudo doveadm pw -s SHA512-CRYPT
  3. Copy and paste everything except what’s in the curly brackets.
  4. Then create a folder in /var/spool/mail/vhosts/{domain} called the same as your username.
  5. Change the permissions of the folder so that the user vmail can access it:
    chown -R vmail:vmail /var/spool/mail/vhosts/{domain}/{username}/
  6. Create a virtual_users record in the Roundcube database using the email address and the password, not forgetting to pick the domain.
Published inweb hosting