Add "Default-From" config option
[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 puts the
69 .RI ` Default-From '
70 profile entry in the `From:' line of the message.
71 If `Default-From' is not set,
72 .B spost
73 constructs the `From:' line of the
74 message from the user's login name and the full name from the GECOS field
75 of the passwd file.
76 An example is `From: Dan Harkless <dan>'.
77 .PP
78 If you set the
79 .B $SIGNATURE
80 environment variable.
81 Its value overrides the full name from the GECOS field.
82 .PP
83 If you specify a `From:'
84 line manually in the message draft.
85 It will be used as provided.
86 A `Sender:' header with the user's
87 .B real
88 address will be added, if the `From' line don't contain a address
89 from the user
90 .RI ` Alternate-Mailboxes '.
91 .PP
92 Note that this applies equally to `Resent\-From:' lines
93 in messages sent with
94 .BR dist .
95 .PP
96 Your MTA is supposed to care to fully qualitfy the addresses
97 with the correct domain name.
98 .PP
99 The draft is filed to the folders in the Fcc headers by
100 .BR refile .
101
102 .SH FILES
103 .fc ^ ~
104 .nf
105 .ta \w'ExtraBigFileName  'u
106 None
107 .fi
108
109 .SH "PROFILE COMPONENTS"
110 .fc ^ ~
111 .nf
112 .ta 3.5i
113 .ta \w'ExtraBigProfileName  'u
114 ^Aliasfile:~^For default alias files
115 ^Default\-From:~^The default From header
116 ^Alternate\-Mailboxes:~^The user's addresses
117 .fi
118
119 .SH "SEE ALSO"
120 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
121 .I "Standard for the Format of ARPA Internet Text Messages"
122 (RFC\-822)
123
124 .SH DEFAULTS
125 .nf
126 .RB ` \-noverbose '
127 .fi
128
129 .SH CONTEXT
130 None
131
132 .SH BUGS
133 Spost does not qualify addresses.
134 .PP
135 Spost does only basic processing and checking, yet.