Using the editor of your choice, create the input file.
Entries can look like the following:
sandy@newdomain.com ssmith@newdomain.com ssmith@olddomain.com error:nouser No such user here @olddomain.com %1@newdomain.com |
In this sample, the first entry redirects mail to a new alias; the second entry creates a message when an incorrect alias is used; and the last entry redirects all incoming mail from olddomain to newdomain.
Make the database file.
# /usr/sbin/makemap -o dbm newmap < newmap |
-o |
Append to instead of overwriting the file. See makemap(1M) for a list of the options available. |
dbm |
Selects the dbm database type. Other map types are btree or hash. |
newmap |
Is 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 database files are created using a .pag and a .dir suffix. For the other two database types, the file name is followed by .db. |