Installing and Administering Internet Services

126 Chapter 4
Installing and Administering sendmail
Installing sendmail
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 try
date | mailx -s "UUCP Test" node1!node2!joe
and node2 is your local host, you should receive a message similar to
this:
From node1!node2!joe Wed Aug 6 09:48 MDT 1986
Received: by node2; Wed, 6 Aug 86 09:48:09 mdt
Return-Path: <node1!node2!joe>
Received: from node1.UUCP; Wed, 6 Aug 86 09:30:16
Received: by node1; Wed, 6 Aug 86 09:30:16 mdt
Received: from node2.UUCP; Wed, 6 Aug 86 09:26:18
Received: by node2; Wed, 6 Aug 86 09:26:18 mdt
Date: Wed, 6 Aug 86 09:26:18 mdt
From: Joe User <node1!node2!joe>
To: node1!node2!joe
Subject: UUCP Test
Wed Aug 6 09:26:15 MDT 1986
An entry in your /var/adm/syslog/mail.log file should have been
logged for the UUCP mail transaction. See “Configuring and Reading
the sendmail Log” on page 156 for more information.
NOTE In this example, if you mail to yourself, and if the local system is running
sendmail, be sure the configuration file on the local system has set the m
option (for a pre-version 6 configuration file) or the MeToo option (for a
version 6 configuration file). The local system’s configuration file should
contain a line beginning with Om or O MeToo. If such a line is not in the
local host’s configuration file, sendmail on the local host notices that the
sender is the same as the recipient and your address is removed from the
recipient list.
Mailing to a Remote User with the SMTP Transport
For this test, mail a message to a remote user with the SMTP transport
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
date | mailx -s "Round Robin SMTP" joe%node2@node1
you should receive a message similar to the following: