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