76d10a8f21a63126645cc134d5c0f3e0d2f0555d
[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 .B Sendmail
47 is called witch all recipients, expect these from Bcc-field
48 .br
49 .B sendmail
50 .B \-i
51 .RB [ \-v ]
52 .I recipients ...
53 .PP
54 If a `Bcc:' field is encountered, its addresses will be used for
55 delivery, and the `Bcc:' field will be removed from the message
56 sent to sighted recipients.  The blind recipients will receive a newly
57 constructed message with a copy of the original message attached.
58 MIME rules are used for encapsulation.
59 .RB ( spost
60 invokes
61 .B send
62 to send the Bcc message.)
63 .PP
64 The `Aliasfile' profile entry
65 can be used to specify one or more files that spost
66 should take aliases from.
67 .PP
68 Aliasing is done on any address-field will.
69 The address-fields are `From:', `To:', `Bcc:',
70 or rather the `Resent\-xxx:' versions of this fields.
71 .PP
72 The
73 .B \-verbose
74 switch enables informational messages.
75 For example, the `\-v' switch will be added to the
76 .B sendmail
77 invocation.
78 .PP
79 .B Spost
80 puts the
81 .RI ` Default-From '
82 profile entry in the `From:' line of the message.
83 If `Default-From' is not set,
84 .B spost
85 constructs the `From:' line of the
86 message from the user's login name and the full name from the GECOS field
87 of the passwd file.
88 An example is `From: Dan Harkless <dan>'.
89 .PP
90 If you set the
91 .B $SIGNATURE
92 environment variable.
93 Its value overrides the full name from the GECOS field.
94 .PP
95 If you specify a `From:'
96 line manually in the message draft.
97 It will be used as provided.
98 A `Sender:' header with the user's
99 .B real
100 address will be added, if the `From' line don't contain a address
101 from the user
102 .RI ` Alternate-Mailboxes '.
103 .PP
104 Note that this applies equally to `Resent\-From:' lines
105 in messages sent with
106 .BR dist .
107 .PP
108 .B Spost
109 takes care about full qualitfy addresses,
110 in every address-field.
111 Your MTA is supposed to care to add the correct domain,
112 if there is no after aliasing.
113 .PP
114 The draft is filed to the folders in the Fcc headers by
115 .BR refile .
116
117 .SH FILES
118 .fc ^ ~
119 .nf
120 .ta \w'ExtraBigFileName  'u
121 None
122 .fi
123
124 .SH "PROFILE COMPONENTS"
125 .fc ^ ~
126 .nf
127 .ta 3.5i
128 .ta \w'ExtraBigProfileName  'u
129 ^Aliasfile:~^For default alias files
130 ^Default\-From:~^The default From header
131 ^Alternate\-Mailboxes:~^The user's addresses
132 .fi
133
134 .SH "SEE ALSO"
135 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
136 .I "Standard for the Format of ARPA Internet Text Messages"
137 (RFC\-822)
138
139 .SH DEFAULTS
140 .nf
141 .RB ` \-noverbose '
142 .fi
143
144 .SH CONTEXT
145 None
146
147 .SH BUGS
148 None