HP-UX Mailing Services Administrator's Guide (B2355-91064)

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” (page 43).
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/virtusertable
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.
Sendmail and the LDAP Protocol
The Lightweight Directory Access Protocol (LDAP) enables servers to share static
information. Combining Sendmail and LDAP increases the speed and efficiency at
which network information is collected and displayed.
Sendmail and the LDAP Protocol 67