HP-UX Mailing Services Administrator's Guide

Configuring and Administering Sendmail
Creating Domain-Specific Aliasing Using Virtual Hosting
Chapter 2 69
3. Create the virtual user table in the /etc/mail directory. A sample
virtual user table may look like the following:
joe@mydomain.com jschmoe
jane@mydomain.com jdoe@othercompany.com
@mydomain.com jschmoe
In this example, the address joe@mydomain.com is mapped to the
local user jschmoe, jane@mydomain.com to the remote user
jdoe@othercompany.com, and any other address in mydomain.com is
mapped to jschmoe.
4. Build the virtual user table database file by running the makemap
utility on the command line as follows:
# makemap dbm /etc/mail/virtusertable < /etc/mail/virtuser
table
To reverse map local users for outbound mails, you must generate
the sendmail.cf file with the genericstable option in addition to
the virtusertable option.
You must generate the generics table similar to the virtual user
table, but with the entries reversed.
Example:
jschmoe joe@yourdomain.com
5. Add your domain name to the /etc/mail/sendmail.cw file.
6. Kill and restart Sendmail.
You can now receive mail at mydomain.com.
IMPORTANT The virtual hosting feature provides better support for ISPs that
offer queuing services to dial-up customers because queue-runs no
longer wait for the dial-up server connection attempts to time out.