HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
sendmail(1M) sendmail(1M)
NAME
sendmail - send mail over the Internet
SYNOPSIS
/usr/sbin/sendmail [mode ][flags][address ...]
DESCRIPTION
sendmail sends a message to one or more recipients or addresses, routing the message over whatever
networks are necessary. sendmail does internetwork forwarding as necessary to deliver the message to
the correct place.
sendmail is not intended as a user interface routine. Other programs provide user-friendly front ends.
sendmail is used only to deliver pre-formatted messages.
With no flags specified in the command line, sendmail reads its standard input up to an end-of-file or a
line consisting only of a single dot (.) and sends a copy of the message found there to all of the addresses
listed in the command line. It determines the network(s) to use based on the syntax and contents of the
addresses, according to information in the sendmail configuration file. The default configuration file is
/etc/mail/sendmail.cf
.
Local addresses are looked up in a file and aliased appropriately, and
sendmail also supports the use of
NIS and LDAP for address lookup. Aliasing can be prevented by preceding the address with a backslash
(
\). Normally the sender is not included in any alias expansions. For example, if ‘john sends to ‘group’,
and ‘group includes ‘john in the expansion, then the letter will not be delivered to ‘john’.
If newaliases is invoked, sendmail will rebuild the alias database. newaliases is identical to
sendmail -bi. See newaliases(1M). Mail that is temporarily undeliverable is saved in a mail queue. If
mailq is invoked, sendmail will print the contents of the mail queue. The mail queue files are in the
directory /var/spool/mqueue
. mailq is identical to sendmail -bp. See mailq(1).
Arguments
sendmail recognizes the following arguments:
mode A mode selected from those described in the "Modes" subsection below. Only one mode can
be specified. The default is -bm.
address The address of a recipient. Several addresses can be specified.
flags A flag selected from those described in the "Flags" subsection below. Several flags can be
specified.
Modes
sendmail operates in one of the following modes. The default is -bm, deliver mail in the usual way.
-ba Go into ARPANET mode. All input lines must end with a CR-LF, and all messages will be gen-
erated with a CR-LF at the end. Also, the ‘‘From:’’ and ‘‘Sender:’’ fields are examined for the
name of the sender.
-bd Run as a daemon. sendmail will fork and run in background listening on socket 25 for incom-
ing SMTP connections.
-bD Run as a daemon, but run in foreground.
-bh Print the persistent host status database.
-bH Purge the persistent host status database.
-bi Initialize the alias database for the mail aliases file. newaliases is identical to sendmail
-bi
. See newaliases(1M).
-bm Deliver mail in the usual way (default).
-bp Print a listing of the mail queue. mailq is identical to sendmail -bp. See mailq(1).
-bs Use the SMTP protocol as described in RFC821 on standard input and output. This flag implies
all the operations of the ba flag that are compatible with SMTP.
-bt Run in address test mode. This mode reads addresses and shows the steps in parsing; it is used
for debugging configuration tables.
Section 1M770 1 HP-UX Release 11i: December 2000
___
___