HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Configuring Sendmail
Chapter 2 43
Configuring Sendmail on a Mail Server
This section describes how to configure a system to allow users on other
(client) systems to use Sendmail.
The mail server receives mail for local users and for the users on client
systems. Users on client systems mount the mail directory from the
server and read or access mail over an NFS link. For more information
on how Sendmail clients and servers work, see “Default Client/Server
Operation” on page 35.
The Sendmail installation script performs the configuration changes that
are described in “Configuring Sendmail on a Standalone System” on
page 41. To set up the system as an NFS server and allow the Sendmail
clients to read and write to the /var/mail directory, do the following:
1. Ensure that all mail users have accounts on the mail server and that
their user IDs and group IDs on the mail server are the same as on
the client machines. (This step is not necessary if you are using NIS
or NIS+ and your mail server is in the same NIS or NIS+ domain as
the clients.)
2. Use a text editor to set the NFS_SERVER variable to 1 in the
/etc/rc.config.d/nfsconf file.
3. Use a text editor to add the following line to the /etc/exports file:
/var/mail -access=client1,client2, ...
where each mail client is listed in the access list. If the
/etc/exports file does not exist, you must create it.
4. Issue the following command to run the NFS startup script:
/sbin/init.d/nfs.server start
For more information on NFS, see Installing and Administering NFS
Services, at the URL
http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90
048.html.
Configuring Sendmail on a Mail Client
Sendmail clients do not receive mail on their local system, but receive
mail on the mail server. User mail directories reside on the server, and
users read their mail over an NFS link. By default, a Sendmail client
forwards to the server any local mail (a user address destined for the