You create a keyed map file to redirect addresses from one user and domain to another.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
Create a map input file with the following three entry types:
An entry to redirect mail to a new alias
old-name@newdomain.com new-name@newdomain.com
An entry indicating a message to send when an incorrect alias is used
old-name@olddomain.com error:nouser No such user here
An entry redirecting all incoming mail from the old domain to the new domain
@olddomain.com %1@newdomain.com
where olddomain.com is the domain that was previously assigned and newdomain.com is the newly assigned domain.
# /usr/sbin/makemap map-type new-map < new-map
Select a database type, such as dbm, btree, or hash.
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.