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