HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

n
newalias(1) newalias(1)
NAME
newalias - install new elm aliases for user or system
SYNOPSIS
newalias [-g]
Remarks
newalias replaces the former functionality of the
elmalias command.
DESCRIPTION
The
newalias command creates new alias database files from an alias text file for use by
elm and other
programs. For user aliases, this functionality can also be performed from the Alias Menu of the
elm pro-
gram (see elm(1)).
Options
newalias recognizes the following option:
-g Global. The program updates the system alias files instead of a user’s alias files.
Operation
Without the -g option, newalias updates a user’s alias files, based on an input file named
$HOME/.elm/aliases.text
Upon finding the file, it creates the output files named
$HOME/.elm/aliases
$HOME/.elm/aliases.dir
$HOME/.elm/aliases.pag
With the -g option, newalias updates the system alias files, based on an input file named
/var/mail/.elm/aliases.text
Upon finding the file, it creates the output files named
/var/mail/.elm/aliases
/var/mail/.elm/aliases.dir
/var/mail/.elm/aliases.pag
In either case, you need read access to the aliases.text file and write access to the other files and the
.elm directory.
Text File Entries
Each entry in either aliases.text file is expected to be in the following format:
alias-list = [lastname [; firstname]] [, comment] = address-list
Field Names
The field names are defined as follows:
address-list A blank- or comma-separated list of one or more mail addresses, personal alias names,
and/or group alias names.
In practice, each item is tested first as an alias name. If it is not an alias name, it is
assumed to be a mail address. A mail address can be in Internet form
(
user@host.domain), in UUCP form (host.domain!user
), or in sendmail
alias form (see sendmail(1M)). It can also be the name of a local mail user, which is
appended with the local host name in Internet form.
alias-list A blank- or comma-separated list of alias names. Each name identifies the same alias
entry. An alias name can be made up of letters (AZ, az), digits (09), underscores
(_), dashes (-), and periods (.). Alias names are not case-sensitive, so dave and
Dave are equivalent.
comment A string containing any information you wish about the entry, such as location and
phone numbers. It is displayed in the Alias Menu of the elm program, but elm does
not transmit it in a mail message. This field can contain any characters except an
unquoted equal sign (=). See the Quoting Characters subsection.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1595