How to List the Contents of the NIS+ mail_aliases Table
To see a
complete list of the contents of the table, follow these instructions.
Either be a member of the NIS+ group that
owns the table, or become root on the mail server, or
assume an equivalent role.
Roles contain authorizations and privileged
commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
List all of the entries in alphabetical
order by alias.
For more information, refer to the aliasadm(1M) man page.
Example 13–3 Listing an Individual Entry From the NIS+ mail_aliases Table
you can use the aliasadm command to list individual entries.
After you complete the first step in this procedure, type the following:
# aliasadm -m ignatz
ignatz: ignatz@saturn # Alias for Iggy Ignatz
The command matches only the complete alias name, not partial strings.
You cannot use metacharacters, such as * and ?,
with aliasadm -m.
Example 13–4 Listing Partial Matches From the NIS+ mail_aliases Table
Also, you can use
the aliasadm command to list partial matches. After you
complete the first step in this procedure, type the following:
# aliasadm -l | grep partial-string
Replace partial-string with the desired string
for your search.