HP-UX Mailing Services Administrator's Guide (B2355-91064)
A .forward file can contain anything that appears on the right side of an alias
definition, including programs and files. (See Table 2-3) The following is an example
of a .forward file owned by user alice on host chicago:
alice@miami, alice@toronto, alice, mycrew
Mail sent to alice@chicago will be delivered to alice’s accounts on hosts miami
and toronto, and to her account on local host chicago. It will also be delivered to
all the recipients of the mailing list mycrew, which must be defined in the local aliases
database or in the :include file on host chicago.
The aliases database is read before a .forward file. The .forward file is read only if
the user’s name is not defined as an alias or if an alias expands to the user’s name.
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%20Services
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.
66 Configuring and Administering Sendmail