How To Use Etc Aliases

Add the following line to the etc hosts file ip address host name aliases.
How to use etc aliases. To modify your etc aliases file you must first become root. Host name is the name of the host. Redirecting mail to users isn t all that can be done. For example mail to the ftp account would be sent to root s mailbox in the configuration you show. Localuser for a local user mapping alias2.
Note that the mail alias does not have to be on a single line. Aliases are the alias names for the host. To add an alias go to etc aliases and add the alias like so. If root is password protected you ll need to know the root password. From a workstation that has access to your storage system edit the etc hosts file.
Each etc aliases alias should use the following format. It specifies which account mail sent to an alias should really be delivered to. The first example adds an alias to a local user. Next run postmap against the file etc postfix vmailbox and postfix reload. The second will deliver mail to another domain.
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.