System Administration Guide: Network Services

ProcedureHow to Edit Entries in an NIS+ mail_aliases Table

To edit entries in the table, follow these instructions.

  1. 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.

  2. Display the alias entry.


    # aliasadm -m alias
    

    Replace alias with the assigned alias name.

  3. Edit the alias entry, as necessary.


    # aliasadm -c alias expanded-alias [options comments]
    alias

    If necessary, edit the alias name.

    expanded-alias

    If necessary, edit the expanded alias name.

    options

    If necessary, edit the option.

    comments

    If necessary, edit the comment for this entry.

    For more information, refer to the aliasadm(1M) man page, as well as Mail Alias Files.

  4. Display the entry that you have edited and ensure that the entry is correct.


    # aliasadm -m alias
    

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


Example 13–5 Deleting Entries From an NIS+ mail_aliases Table

To delete entries from the table, use the following syntax after you complete the first step in this procedure:


# aliasadm -d alias

Replace alias with the alias name for the entry that you are deleting.