THE VIRTUAL SERVER HANDBOOK
Perhaps the most important difference between virtmaps and aliases is that
sendmail performs only a single database lookup in the
~/etc/virtmaps.db
file when handling address mappings. The net
effect of this is that the right hand portion of an
~/etc/virtmaps
line
(the recipient portion) must not depend on the left hand portion (the address
portion) of any other line. The sendmail program does not lookup further
mappings to trace recipient addresses (unlike alias processing where
sendmail performs repeated alias lookups until it completely resolves the
recipient address).
Virtmaps Summarized
1.
If you have only one domain pointing to your virtual server then use of
the virtmaps file is not necessary.
2.
Address maps are stored in the
~/etc/virtmaps
file.
3.
After adding an address map to the
virtmaps
file generate the
virtmaps.db
file with the
vnewvirtmaps
command
4.
Address maps follow a simple format:
address
recipient
i.e.:
webmaster@abc.com
john
5.
No colons in address maps and only one user on the right side. If
multiple recipients are needed on the right the specify the name of an
alias on the right hand side and then create the alias in the aliases file
with the multiple recipients.
6.
The catch all for a domain should be last.
COPYRIGHT
1999 DIGITAL TOOLS LLC.
75