HP-UX Mailing Services Administrator's Guide (B2355-91064)
NFS link. By default, a Sendmail client forwards to the server any local mail (a user
address destined for the client system) and sends nonlocal mail directly to the
destination system or MX host. An outgoing mail message appears to originate from
the server, so replies are sent back to the server. For more information on how Sendmail
clients and servers work, see “Default Client/Server Operation” (page 33). Sendmail
clients can be diskless systems.
To configure a Sendmail client system, do the following:
1. Use a text editor to set the SENDMAIL_SERVER variable to 0 in the
/etc/rc.config.d/mailservs file. This ensures that the Sendmail daemon
will not be started when you reboot your system or run the Sendmail startup script.
2. Set the SENDMAIL_SERVER_NAME variable in the
/etc/rc.config.d/mailservs file to the host name or to the IP address of
the mail server you will use (the machine that will run the Sendmail daemon).
3. Set the NFS_CLIENT variable to 1 in the /etc/rc.config.d/nfsconf file.
4. Add the following line in the /etc/fstab file:
servername:/var/mail /var/mail nfs 0 0
where servername is the name configured in the SENDMAIL_SERVER_NAME
variable in /etc/rc.config.d/mailservs. If the /etc/fstab file does not
exist, you must create it.
5. Issue the following command to run the Sendmail startup script:
/sbin/init.d/sendmail start
6. Issue the following command to run the NFS startup script:
/sbin/init.d/nfs.client start
The Sendmail startup script assumes that this system will use the host specified by the
SENDMAIL_SERVER_NAME variable as the mail hub. The script also assumes that mail
sent from this system appears to be from the host specified by the
SENDMAIL_SERVER_NAME variable (this feature may previously have been known as
site hiding). The script therefore modifies the macros DM (for masquerade) and DH (for
mail hub) in the system’s /etc/mail/sendmail.cf file to use the host specified by
the SENDMAIL_SERVER_NAME variable. If the DM and DH macros have been defined
previously, the startup script does not modify them.
The client system now forwards local mail to the mail server and forwards other mail
directly to remote systems. To configure the client system to relay all mail to the mail
server for delivery, see “Modifying the Default Sendmail Configuration File” (page 43).
The NFS startup script mounts the /var/mail directory from the mail server to your
system.
40 Configuring and Administering Sendmail