849d42b638e413631405596832eac4c0b16c2c36
[mmh] / man / spost.man8
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH SPOST %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 spost \- feed a message to sendmail
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .HP 5
11 .B spost
12 .RB [ \-alias
13 .IR aliasfile
14 .RB " | " \-noalias ]
15 .RB [ \-verbose " | " \-noverbose ]
16 .RB [ \-watch " | " \-nowatch ]
17 .I file
18 .RB [ \-Version ]
19 .RB [ \-help ]
20 .ad
21 .SH DESCRIPTION
22 .B Spost
23 is the program called by
24 .B send
25 to feed the message in
26 .I file
27 to
28 .B sendmail
29 for delivery.  In fact, many of
30 the features attributed to
31 .B send
32 in its manual page are performed by
33 .BR spost ,
34 with
35 .B send
36 acting as a preprocessor.
37 Thus, it is
38 .B spost
39 which parses the various header fields, appends
40 `From:' and `Date:' lines,
41 and finally feeds the message to the MTA.
42 .B Spost
43 will not normally be called directly by the user.
44 .PP
45 .B Spost
46 searches the `To:', `Cc:', `Bcc:',
47 `Fcc:', and `Resent\-xxx:' header lines of the specified
48 message for destination addresses,
49 .PP
50 If a `Bcc:' field is encountered, its addresses will be used for
51 delivery, and the `Bcc:' field will be removed from the message
52 sent to sighted recipients.  The blind recipients will receive a newly
53 constructed message with a copy of the original message attached.
54 MIME rules are used for encapsulation.
55 .RB ( spost
56 invokes
57 .B send
58 to send the Bcc message.)
59 .PP
60 The
61 .B \-alias
62 .I aliasfile
63 switch can be used to specify a file that spost
64 should take aliases from.  More than one file can be specified, each
65 being preceded with
66 .BR \-alias .
67 In any event, the alias file, set with the `Aliasfile' profile entry, is
68 read first.
69 .PP
70 The
71 .B \-verbose
72 enables the output of informational messages.
73 This option sets \-watch, too.
74 .PP
75 The
76 .B \-watch
77 switch adds the `\-v' switch to the
78 .B sendmail
79 invocation.
80 .PP
81 .B Spost
82 constructs the `From:' line of the
83 message from the user's login name and the full name from the GECOS field
84 of the passwd file.
85 An example is `From: Dan Harkless <dan>'.
86 .PP
87 If you set the
88 .B $SIGNATURE
89 environment variable.
90 Its value overrides the full name from the GECOS field.
91 .PP
92 If you specify a `From:'
93 line manually in the message draft.
94 It will be used as provided.
95 However, a `Sender:' header with the user's
96 .B real
97 address will be added.
98 .PP
99 Note that this applies equally to `Resent\-From:' lines
100 in messages sent with
101 .BR dist .
102 .PP
103 Your MTA is supposed to care to fully qualitfy the addresses
104 with the correct domain name.
105 .PP
106 The draft is filed to the folders in the Fcc headers by
107 .BR refile .
108
109 .SH FILES
110 .fc ^ ~
111 .nf
112 .ta \w'ExtraBigFileName  'u
113 None
114 .fi
115
116 .SH "PROFILE COMPONENTS"
117 .B spost
118 does
119 .B NOT
120 consult the user's profile.
121
122 .SH "SEE ALSO"
123 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
124 .I "Standard for the Format of ARPA Internet Text Messages"
125 (RFC\-822)
126
127 .SH DEFAULTS
128 .nf
129 .RB ` \-noverbose '
130 .RB ` \-nowatch '
131 .fi
132
133 .SH CONTEXT
134 None
135
136 .SH BUGS
137 Spost does not qualify addresses.
138 .PP
139 Spost does only basic processing and checking, yet.