ok followed the directions below and get the following error
postmap: fatal: open /etc/postfix/virtusertable: No such file or directory
I also notice that the user I created does not have a home drive nor a maildir folder. However the user ID was created
How do I create the following files
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
passwd sample_userThen run
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.:
yourdomain.com/etc/postfix/virtusertable looks like this:
sample_userEmails 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:
postmap /etc/postfix/virtusertableNow restart Postfix: