sendmail.1m (2010 09)

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 and routes 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).
For mail delivery failures, users get a Delivery Status Notification (DSN).
Note: DSNs resulting from attempts to relay a message to one or more recipients will contain a
"Diagnostic-Code" message citing the reasons for failure. This message will not contain the user’s
address.
A non-root user does not have access to the files and databases associated with
sendmail
, for example,
/etc/mail/aliases
, /etc/mail/aliases.*, /etc/mail/sendmail.st
, and
/etc/mail/sendmail.pid
.
Note: Only root users are privileged to kill any
sendmail process. Non-root users cannot send
signals to their sendmail process.
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
incoming 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.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (10 pages)