]> Cypherpunks.ru repositories - nncp.git/commitdiff
Note about From_ header usage with maildrop
authorSergey Matveev <stargrave@stargrave.org>
Fri, 25 Jun 2021 10:04:46 +0000 (13:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 25 Jun 2021 10:04:46 +0000 (13:04 +0300)
doc/integration.texi

index 84698ccad61fbf1c40c4cc0478be64279a42d372..2c24c19fad9db83859b786e5f90a65d99f967f19 100644 (file)
@@ -55,7 +55,7 @@ delivery via NNCP:
 @example
 /usr/local/etc/postfix/master.cf:
 nncp      unix  -       n       n       -       -       pipe
-  flags=FRqhu user=nncp argv=nncp-exec -quiet $nexthop sendmail $recipient
+  flags=Rqhu user=nncp argv=nncp-exec -quiet $nexthop sendmail $recipient
 @end example
 
 This runs the @command{nncp-exec} command to place outgoing mail into
@@ -67,7 +67,7 @@ shell meta characters in command-line parameters.
 
 Pay attention to @code{flags}, containing @code{R}, telling Postfix to
 include @code{Return-Path:} header. Otherwise that envelope sender
-information will be lost. Possibly you will also need somehow to
+information may be lost. Possibly you will also need somehow to
 preserve that header on the receiving side, because @command{sendmail}
 command will replace it. For example you can rename it before feeding to
 @command{sendmail} with
@@ -76,6 +76,13 @@ extract with:
 
 @verbatiminclude sendmail.sh
 
+Also pay attention that @command{maildrop} does not like @code{From_}
+mbox-style header, so you possibly want:
+
+@example
+mailbox_command = reformail -f0 | maildrop -d $@{USER@}
+@end example
+
 @item Specify that mail for @emph{example.com}, should be delivered via
 NNCP, to a host named @emph{nncp-host}: