Originally Posted by falko
First you have to tell Postfix to deliver emails to a user's Maildir:
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
Then you have to create a system user and a password:
useradd -d /home/sample_user -g users sample_user
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/postfix/local-host-names should contain all domains that you want to accept emails for, e.g.:
/etc/postfix/virtusertable looks like this:
Emails for firstname.lastname@example.org
will now arrive in the mailbox of sample_user.
Everytime you change /etc/postfix/virtusertable you have to run the following command:
Now restart Postfix:
and you're done!
Thanks a lot. That also worked for me.