Article View: news.software.nntp
Article #14186Re: INN Moderated posting issues
From: Terry Kennedy
Date: Sat, 18 Jan 1997 00:00
Date: Sat, 18 Jan 1997 00:00
55 lines
3289 bytes
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)
Technical Details
Message-ID:
<E46HuM.MHu@spcuna.spc.edu>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-mailReferences:
<5boe0u$6qb@bcarh8ab.bnr.ca>Show Full Headers
Complete Article Headers
Message-ID: <E46HuM.MHu@spcuna.spc.edu> Subject: Re: INN Moderated posting issues Date: Sat, 18 Jan 1997 00:00:00 +0000 From: Terry Kennedy <terry@spcuna.spc.edu> References: <5boe0u$6qb@bcarh8ab.bnr.ca> 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: 210553723 Distribution: inet X-nntp-posting-host: spcuna.spc.edu Sender: news@spcuna.spc.edu (USENET News) X-nntp-posting-user: terry Content-type: text/plain; charset=US-ASCII X-trace: 853547997/28552 Organization: St. Peter's College, US Mime-version: 1.0 Newsgroups: news.software.nntp,news.software.b