You can create a text file in Postfix containing an alias email and several destination emails. There are two ways to implement aliasing and mailing list in Postfix depending on how it is configured.
For System Accounts
Your Postfix is configured to use system accounts if your configuration file has something like
mydestination = $mydomainor sending to a non-existent account gives the error message
Recipient address rejected: User unknown in local recipient table
1. Edit the file /etc/aliases. The file has the form
alias: address1,address2If address has the same domain as yours, you can leave it out. Thus you can use the /etc/aliases file to alias an email address or to build a mailing list.
2. Type in the command newaliases in a terminal window. This will rebuild the aliases database file.
For Virtual Accounts
Your Postfix is configured to use virtual accounts if your configuration file has something like
virtual_mailbox_domains = $mydomainor sending to a non-existent account gives the error message
Recipient address rejected: User unknown in virtual mailbox table
3. Test your database file using the command
Replace group@acme.local with a valid alias entry. You should see the destination emails.postmap -q group@acme.local /etc/postfix/valias
4. Edit the file /etc/postfix/main.cf and add the line below to your virtual settings section
virtual_alias_maps = hash:/etc/postfix/valias
If you are using virtual accounts, instead of maintaining a text file containing the aliases and mailing list, it would be better if you can work with your virtual accounts source. See the links below for examples
To Test Postfix
1. Restart the Postfix service. But if you installed MailScanner, then restart MailScanner instead. This will immediately reload the aliases database file instead of after a few minutes.
2. You should now be able to send email to addresses found in your aliases file. See Test Postfix using Telnet and try using the alias email addresses.
REFERENCE