Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

How to Set Up an NIS mail.aliases Map

  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 an administrator on the NIS master server.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  3. Add the following entries to the /etc/mail/aliases file:
    • An entry for each mail client

      # cat /etc/mail/aliases
      ..
      alias:expanded-alias
      alias

      Use the short alias name

      expanded-alias

      Use the expanded alias name (user@host.domain.com)

    • A Postmaster: root entry

      # cat /etc/mail/aliases
      ..
      Postmaster: root
    • An alias for root using the mail address of the person who is designated as the postmaster

      # cat /etc/mail/aliases
      ..
      root: user@host.domain.com
      user@host.domain.com

      Use the assigned address of the designated postmaster

  4. Ensure that the NIS master server is running a name service to resolve the host names on each mail server. For more information, see Chapter 6, Setting Up and Configuring Network Information Service in Working With Oracle Solaris 11.3 Directory and Naming Services: DNS and NIS.
  5. Change to the /var/yp directory and issue the make command to reflect changes on the NIS slave systems.
    # cd /var/yp
    # make

    The changes in the /etc/hosts and /etc/mail/aliases files are propagated to NIS slave systems.