HP-UX Mailing Services Administrator's Guide

Configuring and Administering Sendmail
Configuring Sendmail
Chapter 2 47
Using SMTP Transport to Send Mail to a Remote User
If you are using the SMTP Transport, you can verify your Sendmail
installation by sending a message to a remote user using a
user
@
host
address, where
host
is a system that provides an SMTP server (for
example, the Sendmail daemon).
To verify both inbound and outbound SMTP connections, mail the
message in a loop, using the syntax
user
%
my_host
@
remote_host
.
For example, if you try:
lx -s “Round Robin SMTP” joe%node2@node1
you must receive a message similar to the following:
From joe@node2 Wed Aug 6 14:22 MDT 2003
Received: from node1 by node2; Wed, 6 Aug 02 14:22:56 mdt
Return-Path: <joe@node2>
Received: from node2 by node1; Wed, 6 Aug 02 14:25:04 mdt
Received: by node2; Wed, 6 Aug 02 14:22:31 mdt
Date: Wed, 6 Aug 02 14:22:31 mdt
From: Joe User <joe@node2>
To: joe%node2@node1
Subject: Round Robin SMTP
Wed Aug 6 14:22:28 MDT 2002
An entry in your /var/adm/syslog/mail.log file must have been
logged for the SMTP mail transaction. See “Configuring and Reading the
Sendmail Log” on page 97 for more information.
NOTE In this example, if you send a mail message to yourself and if the remote
system is running Sendmail, ensure that the MeToo option is set in the
configuration file on the remote system. The remote system’s
configuration file must contain a line beginning with O MeToo. If the
remote host’s configuration file does not contain such an entry, Sendmail
on the remote host notices that the sender is the same as the recipient
and removes your address from the recipients’ list.