System Administration Guide: Resource Management and Network Services

Example-Adding Aliases to the NIS+ mail_aliases Table From the Command Line

To add two or three aliases to the table, follow these instructions.

  1. Compile a list of each of your mail clients, the locations of their mailboxes, and the names of the mail server systems.

  2. Either be a member of the NIS+ group that owns the table, or become root on the mail server, or assume an equivalent role.

    For information about roles, refer to "Using Privileged Applications" in System Administration Guide: Security Services.

  3. (Optional) If necessary, initiate an NIS+ table.

    If you are creating a completely new NIS+ mail_aliases table, you must first initiate the table. To complete this task, refer to "Example-Initiating an NIS+ mail_aliases Table".

  4. Add aliases to the table.

    See this example of a typical entry.


    # aliasadm -a iggy iggy.ignatz@saturn "Iggy Ignatz"
    

    The following list describes the input from the preceding example.

    -a

    The option for adding an alias 

    iggy

    The short form of the alias name 

    iggy.ignatz@saturn

    The expanded alias name 

    "Iggy Ignatz"

    The name for the alias in quotation marks 

  5. Display the entry you created and ensure that it is correct.


    # aliasadm -m alias
    

    alias

    The entry that you created 

For more information, refer to the aliasadm(1M) man page.