1 .TH POST %manext8% "October 17, 2016" "%nmhversion%"
6 post \- deliver a message
10 .B %nmhlibexecdir%/post
18 .RB [ \-format " | " \-noformat ]
19 .RB [ \-mime " | " \-nomime ]
20 .RB [ \-msgid " | " \-nomsgid ]
22 .IR localname " | " random ]
23 .RB [ \-verbose " | " \-noverbose ]
24 .RB [ \-watch " | " \-nowatch ]
28 .IR smtp " | " sendmail/smtp " | " sendmail/pipe ]
48 is the default program called by
53 to local and remote users. In fact, most of
54 the features attributed to
56 in its manual page are performed by
60 acting as a relatively simple preprocessor.
63 which parses the various header fields, appends a
64 \*(lqDate:\*(rq line, and interacts with the mail transport system.
66 will not normally be called directly by the user,
67 but can be replaced by the user with a
69 profile component that will have
71 as its final argument.
72 See the mh-profile(5) man page for more information on postproc.
75 searches the \*(lqTo:\*(rq, \*(lqcc:\*(rq, \*(lqBcc:\*(rq,
76 \*(lqFcc:\*(rq, and \*(lqResent\-xxx:\*(rq header lines of the specified
77 message for destination addresses, checks these addresses for validity,
78 and formats them so as to conform to ARPAnet Internet Message Format
81 flag is set. This will normally cause
82 \*(lq@\fIlocal\-site\fR\*(rq to be appended to each local destination
83 address, as well as any local return addresses. The
86 switch can be used to indicate the preferred length of the header
87 components that contain addresses.
89 If a \*(lqBcc:\*(rq field is encountered, its addresses will be used for
90 delivery, and the \*(lqBcc:\*(rq field will be removed from the message
91 sent to sighted recipients. The blind recipients will receive an entirely
92 new message with a minimal set of headers. Included in the body of the
93 message will be a copy of the message sent to the sighted recipients.
97 is specified, then this copy is filtered
100 prior to being sent to the blind recipients.
103 switch is given, then
106 the MIME rules for encapsulation.
111 switch can be used to specify a file that post
112 should take aliases from. More than one file can be specified, each
115 In any event, the primary alias file is
120 switch indicates that a \*(lqMessage\-ID:\*(rq or
121 \*(lqResent\-Message\-ID:\*(rq field should be added to the header.
125 switch selects the style used for the part appearing after the @
126 in \*(lqMessage\-ID:\*(rq, \*(lqResent\-Message\-ID:\*(rq, and
127 \*(lqContent\-ID:\*(rq header fields. The two acceptable options are
129 (which is the default),
134 the local hostname is used. With
136 a random sequence of characters is used instead. Note that the
138 switch must be enabled for this switch to have any effect.
142 switch indicates that the user should be informed of
143 each step of the posting/filing process.
147 switch indicates that the user would like to watch the
148 transport system's handling of the message (e.g., local and \*(lqfast\*(rq
151 Under normal circumstances,
153 uses the \*(lqFrom:\*(rq line in the message draft as the identity of
154 the originating mailbox. A \*(lqFrom:\*(rq line is required in
155 all message draft. By default the message composition utilities such
161 will automatically place a \*(lqFrom:\*(rq line in the message draft.
162 There are two ways to override this behavior, however.
163 Note that they apply equally to \*(lqResent\-From:\*(rq lines in messages sent
167 The first way is to supply a \*(lqSender:\*(rq line. The value of this
168 field will be used as the originating mailbox identity when submitting the
169 message to the mail transport system. If multiple addresses are
170 given in the \*(lqFrom:\*(rq line, a \*(lqSender:\*(rq line is
172 If an \*(lqEnvelope-From:\*(rq line is supplied when multiple addresses
173 are given in the \*(lqFrom:\*(rq line, a \*(lqSender:\*(rq header will
174 be generated using the value of the \*(lqEnvelope-From:\*(rq line,
176 the \*(lqEnvelope-From:\*(rq line is not blank.
178 The second way is to supply a \*(lqEnvelope-From:\*(rq line. The value
179 of this field will be used as the originating mailbox identity when
180 submitting the message to the mail transport system. This will override
181 both the value of the \*(lqFrom:\*(rq line and a \*(lqSender:\*(rq line
182 (if one is supplied). The \*(lqEnvelope-From:\*(rq line is allowed to
183 have a blank value; if the value is blank, then the mail transport system
184 will be instructed to not send any bounces in response to the message.
185 Not all mail transport systems support this feature.
187 The mail transport system default is provided in
188 .I %nmhetcdir%/mts.conf
189 but can be overridden here with the
193 If nmh is using as its mail transport system
197 switch can be used to override the default
201 If nmh is using the SMTP MTA, the
205 switches can be used to override the default mail server (defined by the
208 .I %nmhetcdir%/mts.conf
213 has been compiled with SASL support, the
217 switches will enable and disable
218 the use of SASL authentication with the SMTP MTA. Depending on the
219 SASL mechanism used, this may require an additional password prompt from the
222 file can be used to store this password, as described in the
223 mh-profile(5) man page). The
225 switch can be used to select a particular SASL mechanism,
228 switch can be used to select a authorization userid to provide to SASL
229 other than the default. The credentials profile entry in the
230 mh\-profile(5) man page describes the ways to supply a username and
233 If SASL authentication is successful,
235 will attempt to negotiate a security layer for session encryption.
236 Encrypted data is labelled with `(sasl-encrypted)' and `(sasl-decrypted)' when
237 viewing the SMTP transaction with the
240 Base64-encoded data is wrapped with `b64<>'.
241 (Beware that the SMTP transaction may contain authentication information either
242 in plaintext or easily decoded base64.)
246 has been compiled with TLS support, the
250 switches will require the negotiation of TLS when
251 connecting to the SMTP MTA. The
253 switch will negotiate TLS as part of the normal SMTP protocol
254 using the STARTTLS command. The
256 will negotiate TLS immediately after the connection has
257 taken place, before any SMTP commands are sent or received. Encrypted data
258 is labelled with `(tls-encrypted)' and
259 `(tls-decrypted)' when viewing the SMTP transaction with the
262 Base64-encoded data is wrapped with `b64<>'.
263 (Beware that the SMTP transaction may contain authentication information either
264 in plaintext or easily decoded base64.)
267 switch will disable all attempts to negotiate TLS.
269 If port 465 is specified and none of the TLS switches were enabled,
271 will be implied if TLS support was compiled in. Though port 465 for
272 SMTPS (SMTP over SSL) was deregistered by IANA in 1998, it is still
273 used for that service.
276 filters out header lines with names beginning with \*(lqNmh-\*(rq
277 (case insensitive) from the message draft.
278 Those lines are reserved for internal
284 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
285 ^%nmhetcdir%/mts.conf~^nmh mts configuration file
286 ^%nmhetcdir%/MailAliases~^global nmh alias file
287 ^%bindir%/refile~^Program to process Fcc:s
288 ^%nmhlibexecdir%/mhl~^Program to process Bcc:s
290 .SH "PROFILE COMPONENTS"
304 .I "Standard for the Format of ARPA Internet Text Messages"
308 .RB ` \-alias "' defaults to %nmhetcdir%/MailAliases"
312 .RB ` "\-messageid\ localname" '
315 .RB ` "\-width\ 72" '
321 \*(lqReply\-To:\*(rq fields are allowed to have groups in them according
322 to the RFC 822 specification, but
324 won't let you use them.