How To Use Etc Aliases
For example mail to the ftp account would be sent to root s mailbox in the configuration you show.
How to use etc aliases. To add an alias go to etc aliases and add the alias like so. Aliases are the alias names for the host. The format of mail aliases that are created in etc aliases is somewhat different from those in mailrc. Multiple recipients can be specified as comma separated lists too. Next run postmap against the file etc postfix vmailbox and postfix reload.
The etc aliases file is part of sendmail. The second will deliver mail to another domain. The first example adds an alias to a local user. Note that the mail alias does not have to be on a single line. It specifies which account mail sent to an alias should really be delivered to.
To modify your etc aliases file you must first become root. Localuser for a local user mapping alias2. Each etc aliases alias should use the following format. Add the following line to the etc hosts file ip address host name aliases. Host name is the name of the host.
From a workstation that has access to your storage system edit the etc hosts file. The name of the mail alias followed by a colon the recipients logins and machine names separated by commas.