THE VIRTUAL SERVER HANDBOOK
Where "alias" is replaced with the alias name, and "recipient" is replaced
with a full E mail address. For example:
sales:
tony@hotshotmail.com
2.
From the command prompt enter
vnewaliases
. This action
generates the ~/etc/aliases.db file to activate the alias.
Note: Do not worry about multiple aliases, or one alias actually pointing
to another alias. Sendmail performs multiple lookups to determine the
recipient.
You should begin each alias at the start of the line because lines that begin
with a space or tab are considered continuation lines. The colon separating
alias and recipient should be on the same line as the alias and it may be
preceded or followed by spaces or tabs.
Creating Mailing Lists
Using the ~/etc/aliases file, you can create mailing lists that include many
recipients. Mailing lists save time. You can either create a simple mailing
list, or you can create a more sophisticated mailing list that you are able to
edit independent of the alias file itself.
The :include: statement causes the contents of a separate file to be read in,
or included, in the aliases file. This allows the recipient list to be stored in
an outside file where it can be manipulated independently of the aliases file.
To create a mailing list
1.
Edit the ~/etc/aliases file and enter:
alias: recipient1, recipient2, recipient3,
recipient4, ...
(where "..." signifies that the sequence can be continued for as long as
necessary).
To create a mailing list using "include"
1.
Edit the ~/etc/aliases file and enter
alias: :include:/pathname
The "/pathname" is the virtual pathname of the file. For example:
subscribers: :include:/etc/subscribers.list
Note: Because the contents of included files are not stored in the
~/etc/aliases.db database, it is not necessary to run the vnewaliases
command to activate editing changes.
The file referenced by ":include:" is a text file containing a list of recipient
addresses. Each line is a list of one or more recipient addresses. Multiple
addresses appearing on a line should be separated by commas. Like the
~/etc/aliases file, any line that begins with a # character is considered a
comment and is ignored, as are blank lines.
COPYRIGHT
1999 DIGITAL TOOLS LLC.
70