HP-UX Mailing Services Administrator's Guide (B2355-91064)
This section discusses the following topics:
• “Adding Aliases to the Sendmail Alias Database” (page 60)
• “Verifying Your Sendmail Aliases” (page 64)
• “Managing Sendmail Aliases with NIS” (page 64)
• “Rewriting the From Line on Outgoing Mail” (page 65)
• “Forwarding Your Own Mail with a .forward File” (page 65)
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
where alias is the local address, local user name, or local alias, and
mailing_list is a comma-separated list of local user names or aliases, remote
addresses, file names, commands, or included files. Table 2-3 describes the options
that can be included in a mailing list.
3. Issue the following command to regenerate the aliases database from the
/etc/mail/aliases file:
/usr/sbin/newaliases
This command creates the aliases database located in /etc/mail/aliases.
60 Configuring and Administering Sendmail