🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Jonathan I. Kamens Thu, 09 Jan 1997 00:00
INN 1.5.1: default _PATH_SENDMAIL is wrong
#13895
Author: Jonathan I. Kamens
Date: Thu, 09 Jan 1997 00:00
44 lines
2403 bytes
(Posted and mailed to inn-bugs@isc.org.)

The default _PATH_SENDMAIL in config/config.dist is wrong for two
reasons:

* It doesn't specify "-oi" to sendmail, which means that if the message
being sent has any lines in it containing a single period, sendmail
will terminate the message prematurely.

* It used "-t", telling sendmail to search the message for recipients,
rather than containing a "%s" for the recipient address to specified on
the command line.  The problem with this is that a message being sent
to a moderator might also have been sent to other recipients already
by the client software (i.e., the program which hands the message to
either inews or nnrpd to post/submit to the moderator).  These
recipients' addresses may appear in the header message, as shown for
example in the header of this message.  If inews/nnrpd uses "-t"
instead of "%s" to deliver the message to the moderator, it will be
*re*delivered to the other recipients, even though it shouldn't be.

  In short, when inews or nnrpd is trying to send a message to a
moderator, it should send that message to *only* the moderator,
regardless of other addresses in the header of the message, so it
should use "sendmail <moderator-address>" instead of "sendmail -t".

Here's a simple patch which fixes both of these problems:

--- config.dist.orig	Thu Jan  9 11:43:02 1997
+++ config.dist	Thu Jan  9 11:43:10 1997
@@ -545,7 +545,7 @@
 ##  Where sendmail, or a look-alike, lives.
 ##  The -t is optional and says to read message for recipients
 #### =()<_PATH_SENDMAIL		@<_PATH_SENDMAIL>@>()=
-_PATH_SENDMAIL		/usr/sbin/sendmail -t
+_PATH_SENDMAIL		/usr/sbin/sendmail -oi %s
 ##  Where the shell is.
 #### =()<_PATH_SH		@<_PATH_SH>@>()=
 _PATH_SH		/bin/sh

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads