🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13895

INN 1.5.1: default _PATH_SENDMAIL is wrong

#13895
From: 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

Technical Details
Message-ID: <5b377r$1l4$1@pad-thai.cam.ov.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5b377r$1l4$1@pad-thai.cam.ov.com>
Subject: INN 1.5.1: default _PATH_SENDMAIL is wrong
Date: Thu, 09 Jan 1997 00:00:00 +0000
From: jik@cam.ov.com (Jonathan I. Kamens)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 208735529
To: inn-bugs@isc.org
Organization: OpenVision Technologies, Inc.
Cc: jik
Newsgroups: news.software.nntp