The Aliases Lookup Table

Finally, the aliases lookup table defines aliases in the file /etc/aliases; it is the only table that is not in /etc/postfix, probably to maintain compatibility with the Sendmail mail server, which can use the same file. To activate this table, use the following in :

alias_maps = hash:/etc/aliases

Listing 16-7 shows an example of the content of the /etc/aliases file. The \ in front of the name of the user root is to make sure the mail is delivered to a local user, whereas all other names can exist on a network system like NIS or LDAP as well. Also note the use of multiple aliases that is possible in the same alias file; this allows you to make the system more flexible.

Listing 16-7. Example of /etc/aliases root: \root, franck mailer-daemon: root postmaster: root webmaster: root sales: [email protected]

wwwrun: webmaster

If changes are made to the aliases file, make sure these changes are processed. You can use two commands to do that; you can use postalias /etc/aliases to do it in the Postfix-style method, and you can use newaliases if you want the Sendmail style to process this file more.

Was this article helpful?

0 0

Post a comment