Installing and Administering Internet Services

Chapter 4 125
Installing and Administering sendmail
Installing sendmail
The NFS startup script NFS-mounts the /var/mail directory from the
mail server to your system. For more information on NFS, see Installing
and Administering NFS Services.
Verifying Your sendmail Installation
You can verify that sendmail has been installed properly and is working
properly by doing the things described in the following sections:
“Mailing to a Local User” on page 125
“Mailing to a Remote User with UUCP Addressing” on page 125 (if
you are using it).
“Mailing to a Remote User with the SMTP Transport” on page 126 (if
you are using it).
Mailing to a Local User
To check your local mailer or user agent, mail a message to a local user
(for example, joe) on your system:
date | mailx -s "Local sendmail Test" joe
This should result in a message similar to the following being sent to
user joe:
From joe Wed Aug 6 09:18 MDT 1986
Received: by node2; Wed, 6 Aug 86 09:18:53 mdt
Date: Wed, 6 Aug 86 09:18:53 mdt
From: Joe User <joe>
Return-Path: <joe>
To: joe
Subject: Local sendmail Test
Wed Aug 6 09:18:49 MDT 1986
An entry in your /var/adm/syslog/mail.log file should have been
logged for the local message transaction. See “Configuring and Reading
the sendmail Log” on page 156 for more information.
Mailing to a Remote User with UUCP Addressing
For this test, mail a message to a remote user with the UUCP transport
by using a host!user address, where host is a system to which your local
host has a direct UUCP connection. (The uuname command lists the
UUCP names of known systems. Type man 1 uuname at the HP-UX
prompt for more information.)