Mail Administration Guide

How to Add Entries by Editing a NIS+ mail_aliases Table

If you are adding more than two or three aliases, you might want to edit the NIS+ table directly.

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

  2. Become root on any system.

  3. Type aliasadm -e and press Return.

    The aliases table is displayed using the editor set with the $EDITOR environment variable. If the variable is not set, vi is the default editor.

  4. Type each alias on a separate line, using these formats:

    1. Type the aliases in any order, at any place in the table.

      The order is not important to the NIS+ mail_aliases table. The aliasadm -l command sorts the list and displays them in alphabetical order.

    2. Use the format alias: expanded_alias # ["option"# "comments"]

      If you leave the option column blank, type an empty pair of quotation marks ("") and then add the comments.

    3. End each line by pressing Return.

  5. Check that the entries are correct.

  6. Save the changes.