Use the following procedure to resolve aliases with a local mail alias file.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
user1: [email protected]
Use the new alias name.
Use the actual address for the new alias.
# cat /etc/mail/aliases .. Postmaster: root
# cat /etc/mail/aliases .. root: [email protected]
Use the assigned address of the designated postmaster.
# newaliases
The configuration of the –AliasFile option in /etc/mail/sendmail.cf determines whether this command generates in binary form either the single file, /etc/mail/aliases.db, or the pair of files, /etc/mail/aliases.dir and /etc/mail/aliases.pag.
You can copy the three files by using the rcp or rsync commands. Refer to the rcp (1) man page or the rsync (1) man page for more information. Alternately, you can create a script for this purpose.
When you copy these files, you do not need to run the newaliases command on each of the other systems. However, remember that you must update all the /etc/mail/aliases files each time you add or remove a mail client.
You can copy these files by using the rcp or rsync commands. Refer to the rcp (1) man page or the rsync (1) man page for more information. Alternately, you can create a script for this purpose.
When you copy these files, you do not need to run the newaliases command on each of the other systems. However, remember that you must update all the /etc/mail/aliases files each time you add or remove a mail client.