X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2b1cd09eae8aa7516f8d47a6ee80e92cba714224..c576ad2674c37a1c63f004c71049998f38854c64:/man/post.man diff --git a/man/post.man b/man/post.man index 5084ec45..0e8e3093 100644 --- a/man/post.man +++ b/man/post.man @@ -1,13 +1,15 @@ -.\" +.TH POST %manext8% 2016-10-17 "%nmhversion%" +. .\" %nmhwarning% -.\" -.TH POST %manext8% "%nmhdate%" MH.6.8 [%nmhversion%] +. .SH NAME -post \- deliver a message +post \- deliver an nmh message .SH SYNOPSIS .HP 5 .na -.B %libdir%/post +.B %nmhlibexecdir%/post +.RB [ \-help ] +.RB [ \-version ] .RB [ \-alias .IR aliasfile ] .RB [ \-filter @@ -16,37 +18,39 @@ post \- deliver a message .RB [ \-format " | " \-noformat ] .RB [ \-mime " | " \-nomime ] .RB [ \-msgid " | " \-nomsgid ] +.RB [ \-messageid +.IR localname " | " random ] .RB [ \-verbose " | " \-noverbose ] .RB [ \-watch " | " \-nowatch ] .RB [ \-width .IR columns ] +.RB [ \-mts +.IR smtp " | " sendmail/smtp " | " sendmail/pipe ] +.RB [ \-sendmail +.IR program ] .RB [ \-server .IR servername ] .RB [ \-port .IR portname/number ] .RB [ \-sasl ] .RB [ \-nosasl ] -.RB [ \-saslmaxssf -.IR ssf ] .RB [ \-saslmech .IR mechanism ] .RB [ \-user .IR username ] .RB [ \-tls ] +.RB [ \-initialtls ] .RB [ \-notls ] .I file -.RB [ \-version ] -.RB [ \-help ] .ad .SH DESCRIPTION -.B Post +.B post is the default program called by .B send -to deliver -the message in +to deliver the message in .I file -to local and remote users. In fact, most of -the features attributed to +to local and remote users. +In fact, most of the features attributed to .B send in its manual page are performed by .BR post , @@ -57,10 +61,18 @@ Thus, it is .B post which parses the various header fields, appends a \*(lqDate:\*(rq line, and interacts with the mail transport system. -.B Post -will not normally be called directly by the user. +.B post +will not normally be called directly by the user, but can be replaced +by the user with a +.I postproc +profile component that will have +.I file +as its final argument. +See +.IR mh-profile (5) +for more information on postproc. .PP -.B Post +.B post searches the \*(lqTo:\*(rq, \*(lqcc:\*(rq, \*(lqBcc:\*(rq, \*(lqFcc:\*(rq, and \*(lqResent\-xxx:\*(rq header lines of the specified message for destination addresses, checks these addresses for validity, @@ -83,26 +95,22 @@ message will be a copy of the message sent to the sighted recipients. If .B \-filter .I filterfile -is specified, then this copy is filtered -(re\-formatted) by +is specified, then this copy is filtered (re-formatted) by .B mhl prior to being sent to the blind recipients. Alternately, if the .B \-mime switch is given, then .B post -will use -the MIME rules for encapsulation. +will use the MIME rules for encapsulation. .PP The .B \-alias .I aliasfile -switch can be used to specify a file that post -should take aliases from. More than one file can be specified, each -being preceded with +switch can be used to specify a file that post should read aliases from. +More than one file can be specified, with each being preceded by .BR \-alias . -In any event, the primary alias file is -read first. +In any event, the primary alias file is read first. .PP The .B \-msgid @@ -110,6 +118,23 @@ switch indicates that a \*(lqMessage\-ID:\*(rq or \*(lqResent\-Message\-ID:\*(rq field should be added to the header. .PP The +.B \-messageid +switch selects the style used for the part appearing after the @ +in \*(lqMessage\-ID:\*(rq, \*(lqResent\-Message\-ID:\*(rq, and +\*(lqContent\-ID:\*(rq header fields. The two acceptable options are +.B localname +(which is the default), +and +.BR random . +With +.BR localname , +the local hostname is used. With +.BR random , +a random sequence of characters is used instead. Note that the +.B \-msgid +switch must be enabled for this switch to have any effect. +.PP +The .B \-verbose switch indicates that the user should be informed of each step of the posting/filing process. @@ -123,12 +148,13 @@ delivery). Under normal circumstances, .B post uses the \*(lqFrom:\*(rq line in the message draft as the identity of -the the originating mailbox. A \*(lqFrom:\*(rq line is required in -all message draft. By default the message composition utilities such +the originating mailbox. A \*(lqFrom:\*(rq line is required in +all message drafts. By default the message composition utilities such as -.B comp -and +.BR comp , .B repl +and +.B mhmail will automatically place a \*(lqFrom:\*(rq line in the message draft. There are two ways to override this behavior, however. Note that they apply equally to \*(lqResent\-From:\*(rq lines in messages sent @@ -155,15 +181,32 @@ have a blank value; if the value is blank, then the mail transport system will be instructed to not send any bounces in response to the message. Not all mail transport systems support this feature. .PP +The mail transport system default is defined in +.I %nmhetcdir%/mts.conf +but can be overridden here with the +.B \-mts +switch. +.PP +If nmh is using +.BR sendmail/pipe , +as its mail transport system, the +.B \-sendmail +switch can be used to override the default +.B sendmail +program. +.PP If nmh is using the SMTP MTA, the .B \-server -and the +and .B \-port -switches can be used to override the default mail server (defined by the -.RI servers -entry in -.I %etcdir%/mts.conf -). +switches can be used to override the default mail server and port. +The default server is set with +.I servers +in +.IR %nmhetcdir%/mts.conf , +and the default port is +.IR submission , +587. .PP If .B nmh @@ -175,79 +218,108 @@ switches will enable and disable the use of SASL authentication with the SMTP MTA. Depending on the SASL mechanism used, this may require an additional password prompt from the user (but the -.RI \*(lq \&.netrc \*(rq -file can be used to store this password). +.I netrc +file can be used to store this password, as described in +.IR mh-profile (5). +The .B \-saslmech switch can be used to select a particular SASL mechanism, -and the the +and the .B \-user -switch can be used to select a authorization userid -to provide to SASL other than the default. +switch can be used to select an authorization userid to provide to SASL, +other than the default. The credentials profile entry in +.IR mh-profile (5) +describes the ways to supply a username and password. .PP -If SASL authentication is successful, -.BR nmh +If SASL authentication is successful, +nmh will attempt to negotiate a security layer for session encryption. Encrypted data is labelled with `(sasl-encrypted)' and `(sasl-decrypted)' when viewing the SMTP transaction with the .B \-snoop -switch. The -.B \-saslmaxssf -switch can be used to select the maximum value of the Security Strength Factor. -This is an integer value and the exact meaning of this value depends on the -underlying SASL mechanism. A value of 0 disables encryption. +switch. +Base64-encoded data is wrapped with `b64<>'. +(Beware that the SMTP transaction may contain authentication information either +in plaintext or easily decoded base64.) .PP If .B nmh has been compiled with TLS support, the .B \-tls and -.B \-notls -switches will require and disable the negotiation of TLS support when -connecting to the -SMTP MTA. Encrypted data is labelled with `(tls-encrypted)' and -`(tls-decrypted)' when viewing the SMTP transction with the +.B \-initialtls +switches will require the negotiation of TLS when connecting to the SMTP MTA. +The +.B \-tls +switch will negotiate TLS as part of the normal SMTP protocol +using the STARTTLS command. The +.B \-initialtls +will negotiate TLS immediately after the connection has +taken place, before any SMTP commands are sent or received. Encrypted data +is labelled with `(tls-encrypted)' and +`(tls-decrypted)' when viewing the SMTP transaction with the .B \-snoop switch. - +Base64-encoded data is wrapped with `b64<>'. +(Beware that the SMTP transaction may contain authentication information either +in plaintext or easily decoded base64.) +The +.B \-notls +switch will disable all attempts to negotiate TLS. +.PP +If port 465 is specified and none of the TLS switches were enabled, +.B \-initialtls +will be implied if TLS support was compiled in. Though port 465 for +SMTPS (SMTP over SSL) was deregistered by IANA in 1998, it is still +used for that service. +.PP +.B post +filters out header lines with names beginning with \*(lqNmh-\*(rq +(case insensitive) from the message draft. +Those lines are reserved for internal +.B nmh +use. .SH FILES .fc ^ ~ .nf -.ta \w'%etcdir%/ExtraBigFileName 'u -^%etcdir%/mts.conf~^nmh mts configuration file -^%etcdir%/MailAliases~^global nmh alias file +.ta \w'%nmhetcdir%/ExtraBigFileName 'u +^%nmhetcdir%/mts.conf~^nmh mts configuration file +^%nmhetcdir%/MailAliases~^global nmh alias file ^%bindir%/refile~^Program to process Fcc:s -^%libdir%/mhl~^Program to process Bcc:s +^%nmhlibexecdir%/mhl~^Program to process Bcc:s .fi - .SH "PROFILE COMPONENTS" .B post does -.B NOT +.I not consult the user's -.I \&.mh\(ruprofile - +.I \&.mh_profile .SH "SEE ALSO" -mhmail(1), send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), +.IR mhmail (1), +.IR send (1), +.IR mh\-mail (5), +.IR mh\-alias (5), +.IR mh\-profile (5), +.IR mh\-tailor (5) +.PP .I "Standard for the Format of ARPA Internet Text Messages" -(RFC\-822) - +(RFC 822) .SH DEFAULTS .nf -.RB ` \-alias "' defaults to %etcdir%/MailAliases" +.RB ` \-alias "' defaults to %nmhetcdir%/MailAliases" .RB ` \-format ' .RB ` \-nomime ' .RB ` \-nomsgid ' +.RB ` "\-messageid\ localname" ' .RB ` \-noverbose ' .RB ` \-nowatch ' .RB ` "\-width\ 72" ' .RB ` \-nofilter ' .fi - .SH CONTEXT None - .SH BUGS \*(lqReply\-To:\*(rq fields are allowed to have groups in them according -to the 822 specification, but +to the RFC 822 specification, but .B post won't let you use them.