/etc/aliases – maps local system users to email. So if an application running on the server needs to send mail, it can send to a system user (root) and the mail will be forwarded to an actual email address.
newaliases command, which will create a hashed version of the file (named
/etc/postfix/virtual – allow incoming Internet mail to firstname.lastname@example.org to be redirected to an actual email account on the server.
Run postmap [file path] after editing.
/etc/postfix/virtual-mailbox-users – List all the email addresses for Postfix to handle email delivery. These would be the “real” users of the server (i.e. accounts that log into IMAP/SMTP)
/etc/dovecot/passwd.db – holds the “real” users of the server.
doveadm pw -s SSHA512to generate the user’s password hash, then copy it into the file like this (repeat process for each new user):
Now the accounts are set up.