3 deliver \- deliver a message
7 [\fB\-verbose\fR] [\fB\-format\fR] [\fB\-msgid\fR]
8 [\fB\-help\fR] [\fB\-noverbose\fR] [\fB\-noformat\fR] [\fB\-nomsgid\fR] file
11 is the program called by
13 to deliver the message in
15 to a local or remote user. In fact,
16 all of the functions attributed to
18 on its manual page are peformed by
22 acting as a relatively simple preprocessor. Thus, it is
24 which parses the various header fields, appends From: and
25 Date: lines, and maintains the correct locking on maildrop
28 will not normally be called directly by the user.
31 searches the ``To:'', ``Bcc:'', and ``Fcc:'' header lines of
32 the specified message for destination addresses, checks these
33 addresses for validity, and formats them so as to conform to
34 Arpanet Mail protocol, unless the
36 flag is set. This will normally cause ``AT local-site'' to
37 be appended to each local destination address, as well
38 as any local return addresses.. Destinations are
41 LOCAL MAIL (e.g. ``To: root''): The message is appended to the
42 appropriate mailbox. The specified name may be mapped
43 into a different user name if it matches an entry in the
44 file /etc/MailAlias. See mh-alias(5) for additional details on the
46 If the recipient user's home directory contains an
47 executable or shell file named .mh\(rureceive, that program will be
50 execlp (prog, prog, tmpfil, mail, home, alias, 0)
52 where prog is the receive program, tmpfil is a file in
53 /usr/tmp which is the mail to be received, mail is the path of
54 the user's mail drop (/usr/spool/mail/name), home is the
55 $HOME directory of the user, and alias is the string that matched
56 the first in a sequence of local aliases. File descriptor 3 will have
57 tmpfil opened on it read only. These are all the RECEIVER'S
58 parameters, not the sender's. Also, the environment is set up
59 with appropriate values for HOME and USER.
61 ARPANET MAIL (e.g. ``To: root@bbn-unix''): A copy of the message is
62 left as a uniquely-named file
63 in the Arpanet mail queue directory (/usr/spool/netmail/),
64 with the text prepended
65 by a list of the network addresses of the recipients. The
66 format of this queue file is given in
68 The file is picked up by an Arpanet mailer daemon (
73 UUCP MAIL (e.g. ``To: ucbvax!root''): Uux(1) is forked with the
76 its standard input, so as to execute mail(1) at the remote site.
77 Thus, a message with a field such as given in the example would
78 be given as standard input with a command line of
80 uux \- ucbvax!rmail root
82 Rmail is assumed to be linked to mail(1) (or an equivalent program
83 such as the UC Berkeley or Bell mail programs)
84 so as to correctly deliver the
85 message at the remote site.
87 It is possible to have all three types of destinations in the various
88 destination fields of the message; each destination is processed
89 separately. It is also possible to mix destinations from the
90 two delivery networks. For example, one might specify a destination
91 of ``csvax!root@Berkeley''. However, there is an ambiguity here as
94 should attempt to use the Arpanet to send the message to Berkeley
95 with ``csvax!root'' as the recipient, or whether it should use uux
96 to tell csvax to deliver mail to ``root@Berkeley''. The choice
97 is determined by a compile-time constant which tells whether
98 or not the local machine is on the Arpanet. If it is, the message
99 is sent via the Arpanet to the remote host, which presumably
100 forwards the message via uux. Otherwise the at-sign is given
101 no special treatment,
102 and the message is sent via uux.
108 will attempt to send the message to the appropriate user
109 with no formatting or header processing. As this is primarily
112 command, use of this flag is restricted to the super-user.
115 /usr/spool/mail/* Recipient mail drop
117 /usr/spool/locks/* Lockout for the mail drop
119 /usr/spool/netmail/* Arpanet mail queue
121 /usr/spool/mailt/* Arpanet temp mail queue
123 /usr/tmp/mh/locsXXXX.tmpTemporary local output file
125 /usr/tmp/mh/uulcXXXX.tmpTemporary uucp output file
127 /etc/MailAliases Alias list
128 .SH PROFILE COMPONENTS
129 fileproc: Used for Fcc: processing
131 \fIThe MH Message Handling System: User's Manual\fR
132 by B. Borden, R. Gaines, and N. Shapiro
134 \fIStandard for the Format of ARPA Network Test Messages\fR
135 by D. Crocker, J. Vittal, K. Pogran, and D. Henderson, Jr.
158 If the message is going through a series of hops (say, via UUCP links),
159 the "From" field will not be adequate for a reply. Deliver should,
160 but currently does not, formulate a "Reply-to:" field for such