HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Creating Sendmail Aliases
Chapter 260
Creating Sendmail Aliases
The Sendmail aliases database stores mailing lists and mail aliases. You
must create the aliases database by adding aliases to the file
/etc/mail/aliases and then by running the /usr/sbin/newaliases
command to generate the database from the file. The generated alias
database is stored in the file /etc/mail/aliases.db. The Sendmail
startup script also generates the aliases database when you reboot your
system.
Each user on your system can create a list of alternate mailing addresses
in a .forward file in the user’s home directory. The .forward file allows
users to forward their own mail to files or to other mailing addresses.
This section discusses the following topics:
• “Adding Aliases to the Sendmail Alias Database” on page 60
• “Verifying Your Sendmail Aliases” on page 65
• “Managing Sendmail Aliases with NIS or NIS+” on page 65
• “Rewriting the From Line on Outgoing Mail” on page 66
• “Forwarding Your Own Mail with a .forward File” on page 67
NOTE A non-root user does not have access to the files or databases associated
with Sendmail namely: /etc/mail/aliases.*,
/etc/mail/sendmail.st, and /etc/mail/sendmail.
Adding Aliases to the Sendmail Alias Database
To add Sendmail aliases to the database, follow these steps:
1. If the file /etc/mail/aliases does not exist on your system, copy it
from /usr/newconfig/etc/mail/aliases to /etc/mail/aliases.
2. Use a text editor to edit the file. Each line is of the following form:
alias: mailing_list