Internet Services Delta Manual for HP-UX 11i Version 1.6
NOTE: You must know how to setup DNS before implementing this feature. For information on
setting up DNS, refer to "Installing and Administering Internet Services" manual, posted on
http://docs.hp.com.
The following steps describe how to set up virtual hosting:
• Assume 'mydomain.com' as the new domain name. If the mail server, which serves the new
domain name has a full time connection to the internet, include the following line in the
db.domain file.
mydomain.com. IN MX 10 mymailserver.mydomain.com.
Otherwise, you will need to have another machine to queue mails 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.
The generic-hpux10.mc file in /usr/newconfig/etc/mail/cf/cf/generic...mc is
used for generating the configuration file. In the generic-hpux10.mc file, the version id string
and the DOMAIN () flag can be modified to contain 'mydomain.com'.
• Create a file mydomain.com.m4 in /usr/newconfig/etc/mail/cf/domain/ directory.
This file must be similar to the /usr/newconfig/etc/mail/cf/domain/generic.m4
file, with the version id containing 'mydomain.com'.
• Generate the sendmail.cf.gen file using gen_cf utility with 'virtusertable' option
and move this file to /etc/mail/sendmail.cf.
NOTE: For more information on gen_cf, read the "Generating the Configuration File" section
above.
• Create the virtusertable in /etc/mail directory. A sample virtusertable may look like:
joe@mydomain.com jschmoe
jane@mydomain.com jdoe@othercompany.com
@mydomain.com jschmoe
In the first example, the address joe@mydomain.com will be mapped to the local user jschmoe,
jane@mydomain.com to the remote user jdoe@othercompany.com, and any other address in
mydomain.com will also be mapped to jschmoe.
• Build the virtusertable database file in the command line as follows:
# makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable
If you wish to reverse-map local users for out-bound mail, you will need to generate sendmail.cf
file with 'genericstable' option in addition to 'virtusertable' option.
You must generate the genericstable similar to the virtusertable, but with the entries reversed.
Example:
jschmoe joe@yourdomain.com
• Add your domain name to /etc/mail/sendmail.cw file.
• Kill and Restart Sendmail.
Now you should be able to receive mails at mydomain.com.
Chapter Overview 11










