🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Chris Lewis Fri, 17 Jan 1997 00:00
INN Moderated posting issues
#14163
Author: Chris Lewis
Date: Fri, 17 Jan 1997 00:00
46 lines
2648 bytes
We're a large site running INN1.4unoff4 on multiple HP boxes.

When you post to a moderated group, nnrpd notices it's moderated, and
forwards it off by invoking "/usr/lib/sendmail -t" (_PATH_SENDMAIL
configuration option).  The -t option tells sendmail to read the
To:/Cc: line to determine recipients, and not need addresses in the
command line.

The problem: as the mail is being initiated on the news server, sendmail
views the mail as being "from" the news userid, rather than the originator.
Hence, the news userid gets all of the bounces.  This would generally
be not a problem on most sites, but due to the way our central
MTAs work, certain additional heuristics are applied w.r.t. valid from
addresses etc.  Further, for example, some moderated groups issue
acknowledgements, which end up in the news administrator's lap.

We would like to be able to get all of the bounces out of news' lap,
and best-efforts get them to the originator.

As we're not running NNTP authentication or identd, generating perfectly
accurate email addresses is not possible, but given the right solution,
we can make better guesses than letting everything fall on news' head.

Conceptually, we want to be able to specify the "-f" option to sendmail,
constructed from Originator if present, or From, or perhaps other things.

In order to get nnrpd to do it, we'd have to extensively hack nnrpd itself.
I was thinking of changing the _PATH_SENDMAIL parameter to something
other than sendmail.  This other program would crack the headers, compose
a reasonably sane address, and then in turn invoke sendmail -t with
an -f option.

Forcing the news browser to somehow email moderated postings is not an option.

I was wondering whether someone had already done this, preferably in perl,
that they could share.

Thanks.
-- 
"I can't stand this proliferation of paperwork.  It's useless to fight 
the forms.  You've got to kill the people producing them."
-- Vladimir Kabaidze, 64, General Director of Ivanovo Machine Building Works


Re: INN Moderated posting issues
#14186
Author: Terry Kennedy
Date: Sat, 18 Jan 1997 00:00
55 lines
3289 bytes
In news.software.b Chris Lewis <clewis@ferret.ocunix.on.ca> wrote:
> The problem: as the mail is being initiated on the news server, sendmail
> views the mail as being "from" the news userid, rather than the originator.
> Hence, the news userid gets all of the bounces.  This would generally
> be not a problem on most sites, but due to the way our central
> MTAs work, certain additional heuristics are applied w.r.t. valid from
> addresses etc.  Further, for example, some moderated groups issue
> acknowledgements, which end up in the news administrator's lap.
[...]
> I was wondering whether someone had already done this, preferably in perl,
> that they could share.

  C News is broken the same way. I talked to the INN developer about this
very problem to see how INN handled it and found that it's a known restric-
tion in INN.

  Here's what I do in C News. No idea if this will work for INN.

*** injnews	Mon Jun 10 04:31:13 1996
--- injnews_real	Sat Nov 23 16:51:49 1996
***************
*** 118,124 ****
  			# unApproved article: mail to a moderator.
  			moderator="` modroute $ng `"
  			echo "mailing your article to $moderator"
! 			mail "$moderator" <$censart
  			;;
  		esac
  		trap "$justcleanup" 0	# normal exit - no dead.article
--- 120,130 ----
  			# unApproved article: mail to a moderator.
  			moderator="` modroute $ng `"
  			echo "mailing your article to $moderator"
! # tmk - choose one of the following lines and comment out the other. The first
! # form is the C News default, while the second prevents misconfigured moder-
! # ators from sending replies to the wrong place.
! #			/usr/sbin/sendmail "$moderator" <$censart
! 			/usr/sbin/sendmail -f "noreply@<yourhost>.com" "$moderator" <$censart
  			;;
  		esac
  		trap "$justcleanup" 0	# normal exit - no dead.article

  The first change (changing from mail to sendmail) makes the From: line in
the message be correct. The second change (adding -f) catches those clients
that want to use the envelope from instead of the message from for replies.
It isn't perfect (it assumes your host has a bitbucket alias called noreply)
but it at least keeps the news admin's traffic down to a dull roar. I decided
that parsing RFC822 to correctly handle this was a losing proposition.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

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