Go to main content

Managing sendmail Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Create a File to Redirect Addresses

You create a keyed map file to redirect addresses from one user and domain to another.

  1. Become an administrator.

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

  2. Create a map input file.

    Create a map input file with the following three entry types:

    • An entry to redirect mail to a new alias

      old-name@newdomain.example.com new-name@newdomain.example.com
    • An entry indicating a message to send when an incorrect alias is used

      old-name@olddomain.example.com    error:nouser No such user here
    • An entry redirecting all incoming mail from the old domain to the new domain

      @olddomain.example.com          %1@newdomain.example.com

    where olddomain.example.com is the domain that was previously assigned and newdomain.example.com is the newly assigned domain.

  3. Create the database file.
    # /usr/sbin/makemap map-type new-map < new-map
    map-type

    Select a database type, such as dbm, btree, or hash.

    new-map

    Use the name of the input file and the first part of the name of the database file. If the dbm database type is selected, then the database files are created by using a .pag and a .dir suffix. For the other two database types, the file name is followed by .db.