HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Creating Domain-Specific Aliasing Using Virtual Hosting
Chapter 268
Creating Domain-Specific Aliasing Using
Virtual Hosting
Sendmail controls the /etc/mail/virtusertable database. This
database provides a domain-specific form of aliasing and also allows
multiple domains to be hosted on a single machine.
With this feature, users can have their own domain names and receive
mail using these domain names with a single host. You are required to
obtain a new (available) domain name and set up name servers for that
domain. Then, you must configure MX records for your new domain.
NOTE Virtual hosting requires DNS to be set up. For information on setting up
DNS, see the IP Address and Client Management Administrator’s Guide,
at the URL
http://www.docs.hp.com/hpux/netcom/index.html#Internet%20Se
rvices
The following steps describe how to set up virtual hosting:
1. Assume mydomain.com as the new domain name. If the mail server
that serves the new domain name has a full-time connection to the
Internet, include the following line in the db.domain file (domain is
the domain name specified in the file /etc/resolve.conf):
mydomain.com. IN MX 10 mymailserver.mydomain.com.
Otherwise, you must have another machine to queue mail for your
domain. Include the following lines in the db.domain file:
mydomain.com. IN MX 10 mymailserver.mydomain.com.
mydomain.com. IN MX 20 othermailserver.otherdomain.com.
Now you must set up Sendmail.
2. Generate the sendmail.cf.gen file using the gen_cf utility with the
virtusertable option, and move this file to
/etc/mail/sendmail.cf.
For more information on gen_cf, read the section “Modifying the
Default Sendmail Configuration File” on page 48.