Internet Express for Tru64 UNIX Version 6.8 Administration Guide (14233)

10. To masquerade the envelope addresses, check Enable Masquerading for the Envelope. By
default, the header addresses are masqueraded; however, by checking this item, the envelope
addresses are also masqueraded.
11. Click on Submit to change the server configuration (or click on Cancel to cancel the changes
and return to the Configure Sendmail Server menu).
The Administration utility displays a message confirming that the configuration has been
changed, and indicates that the Sendmail server has been restarted. Click on OK to return
to the Configure Sendmail Server menu.
If there were any errors in the configuration, the Administration utility displays a list of the
errors. Click on OK to return to the Configure Masquerading form.
5.1.4.3 Configuring Virtual Domains
Virtual domains allow multiple aliases to be hosted on a single system. To use virtual domains
on your system, you must first create a virtual domain table. The Administration utility expects
this file to be named /var/adm/sendmail/virtusertable, but you can override this default
when you enable virtual domains. Example 5-1 shows a sample virtual domain table.
Example 5-1 Sample Virtual Domain Table
info@foo.com foo-info
info@bar.com bar-info
@baz.org jane@elsewhere.net
The virtual domain table in Example 5-1 specifies the following:
Mail addressed to info@foo.com is delivered to foo-info.
Mail addressed to info@bar.com is delivered to bar-info.
Mail addressed to anyone at baz.org is delivered to jane@elsewhere.net.
The user name from the original address is passed as %1 (for example,
@foo.org%1@elsewhere.net). This allows mail sent to someone@baz.org to be delivered
to someone@elsewhere.net.
All the host names on the left-hand side of the table (in Example 5-1, foo.com, bar.com, and
baz.org) must be in the host alias list (see Section 5.1.3.1: Creating and Deleting Host Aliases
for a Mail Server).
You must also set up name servers for the virtual addresses that get mapped to the real addresses.
You can use Domain Name System (DNS) configuration to complete the following:
1. Select an available domain name.
2. Establish two machines as primary and secondary name servers for this domain.
3. Configure MX records for this domain.
4. Register this domain with InterNIC.
See the Tru64 UNIX manual Network Administration: Services for more information about
configuring DNS.
After you create the virtual domain table, use the makemap command to create an address
mapping database, based on the data in the table; for example:
# makemap btree virtusertable < virtusertable
This command creates the virtusertable.db file in BTREE format. Sendmail uses these files
to determine whether the address on a mail messages has been mapped to a virtual domain. For
more information on the makemap command, see the makemap(8) reference page.
After creating the database files, you can use the Administration utility to configure virtual
domains on your system, as follows:
104 Mail Delivery Administration