delivermail \- deliver mail to arbitrary people
delivers a letter to one or more people,
routing the letter over whatever networks
will do inter-net forwarding as necessary
to deliver the mail to the correct place.
is not intended as a user interface routine;
it is expected that other programs will provide user-friendly
will be used only to deliver pre-formatted messages.
and sends a copy of the letter found there
to all of the addresses listed.
It determines the network to use
based on the syntax of the addresses.
Addresses containing the character `@'
and addresses containing `:' or `.'
are sent to the Berkeley network.
Other addresses are assumed to be local.
Local addresses are looked up in the file
and aliased appropriately.
Aliasing can be prevented by preceeding the address
with a backslash or using the
Normally the sender is not included in any alias
if `john' sends to `group',
and `group' includes `john' in the expansion,
then the letter will not be delivered to `john'.
flag disables this suppression.
computes the person sending the mail
by looking at your login name.
can be explicitly specified by using the
delivermail looks in the body of the message
for a ``From:'' or ``Sender:''
only by the special users
or if the person you are trying to become
is the same as the person you are.
flag is entirely equivalent to the
flag; it is provided for ease of interface only.
flag controls the disposition of error output,
Print errors on the standard output,
and echo a copy of the message when done.
It is assumed that a network server will
return the message back to the user.
Mail errors back to the user.
Print errors on the standard output.
only exit status is returned.
Write errors back to the user's terminal,
but only if the user is still logged in
and write permission is enabled;
otherwise errors are mailed back.
If the error is not mailed back,
and if the mail originated on the machine where the error occurred,
the letter is appended to the file
in the sender's home directory.
If the first character of the user name
the rest of the user name is used as the name of a program
It may be necessary to quote the name of the user
from supressing the blanks from between arguments.
The message is normally editted to eliminate ``From''
lines that might confuse other mailers.
``From'' lines in the header are deleted,
and ``From'' lines in the body are prepended by `>'.
flag saves ``From'' lines in the header.
flag gives a ``hop-count'', i.e.,
a measure of how many times this message
(presumably on different machines).
it increases the hop-count by one;
assumes that an alias loop has occured
and it aborts the message.
The hop-count defaults to zero.
.ta 3n +\w'EX_UNAVAILABLE'u+3n
.in +\w'EX_UNAVAILABLE'u+6n
0 EX_OK Succesful completion on all addresses.
2 EX_NOUSER User name not recognized.
3 EX_UNAVAILABLE Catchall meaning necessary resources
4 EX_SYNTAX Syntax error in address.
5 EX_SOFTWARE Internal software error,
6 EX_OSERR Temporary operating system error,
7 EX_NOHOST Host name not recognized.
/usr/lib/mailaliases \- to alias names
/bin/mail \- to deliver local mail
/usr/net/bin/sendmail \- to deliver Berkeley mail
/usr/lib/mailers/arpa \- to deliver
/usr/lib/mailers/uucp \- to deliver
/tmp/xscript* \- saved transcript
/dev/log \- to log status (optional)
mail(1), Mail(UCB), arpa-mailer(8), uucp-mailer(8),
mailaliases(5), userinfo(5)
sends one copy of the letter
of the letter to each host
and distribute to multiple users there
assumes the addresses can be represented as one word.
This is incorrect according to the
mail protocol RFC 733 (NIC 41952),
but is consistant with the real world.