praliases - print system-wide sendmail aliases
praliases [-f file] [key ...]
praliases prints out the contents of the alias data base used by
sendmail to resolve system-wide mail aliases. The alias data base is
built with the command newaliases or /usr/sbin/sendmail -bi. See
If the -f option is specified, praliases accesses the alias database
built from file with the command
newaliases -oA file
Otherwise, praliases accesses the database built from the default
alias file, /etc/mail/aliases.
Note that praliases accesses the database, not the alias file itself.
If the alias file has changed since the alias database was last built,
naturally the output of praliases cannot match the contents of the
Each key argument, if any, is looked up in the alias database.
praliases prints out the aliases to which each key expands in the
key: mailing list
where mailing list can be a comma-separated list of addresses to which
the key resolves.
key: No such key
key was not found in the alias database.
$ praliases root postmaster no_user
no_user: No such key
The output reveals that root is aliased to jan_user, postmaster
is aliased to joe_user, and that there is no alias for the key
Because sendmail supports NIS aliases, some NIS key-words may appear
in the praliases output. These key-words, which include
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000
YP_LAST_MODIFIED and YP_MASTER_NAME, may be safely ignored; they
merely indicate that sendmail is properly updating the alias database.
praliases was developed by the University of California, Berkeley.
/etc/mail/aliases default alias file
/etc/mail/aliases.db default alias database
Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000