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

Verifying your Sendmail Installation
This section provides information on how to verify your Sendmail installation. It
discusses the following topics:
“Sending Mail to a Local User” (page 41)
“Using UUCP Addressing to Send Mail to a Remote User” (page 41) (if you are
using UUCP Addressing)
“Using SMTP Transport to Send Mail to a Remote User (page 42) (if you are using
SMTP Addressing)
Sending Mail to a Local User
To check your local mailer or user agent, send a mail message to a local user (for
example, joe) on your system:
date | mailx -s "Local sendmail Test" joe
This must result in a message similar to the following being sent to user joe:
From joe Wed Aug 6 09:18 MDT 2002
Received: by node2; Wed, 6 Aug 02 09:18:53 mdt
Date: Wed, 6 Aug 02 09:18:53 mdt
From: Joe User <joe>
Return-Path: <joe>
To: joe
Subject: Local sendmail Test
Wed Aug 6 09:18:49 MDT 2002
An entry in your /var/adm/syslog/mail.log file must have been logged for the
local message transaction. See “Configuring and Reading the Sendmail Log” (page 95)
for more information.
Using UUCP Addressing to Send Mail to a Remote User
If you are using UUCP addressing, you can verify your Sendmail installation by sending
a mail message to a remote user with 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.)
To verify both inbound and outbound UUCP connections, mail the message in a loop,
using the syntax remote_host !my_host !user. For example, if you execute the
following command:
date | mailx -s UUCP Test node1!node2!joe
and node2 is your local host, you must receive a message similar to this:
From node1!node2!joe Wed Aug 6 09:48 MDT 2003
Received: by node2; Wed, 6 Aug 02 09:48:09 mdt
Return-Path: <node1!node2!joe>
Configuring Sendmail 41