🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51186

Re: Setting the NNTP posting host

#51186
From: Rebecca Ore
Date: Wed, 14 Mar 2001 08:14
55 lines
2714 bytes
Obscure Meowbot <meowbot@meowing.net> writes:

> Rebecca Ore <rebecca@ogoense.net> wrote:
> 
> > I'm running INN-2.3.1 and need to have an NNTP posting host to post in
> > certain hieararchies, but some of my users are coming in from
> > dedicated connections.  I've heard that there is a way to use my
> > server as the NNTP posting host regardless of where my users
> > originally logged in.  What part of inn.conf will I need to change to
> > make the NNTP posting host show as my server and not the user's
> > original cable modem or dsl?
> 
> You can disable NNTP-Posting-Host in inn.conf, but that leaves
> X-Trace.
> 
> You could do something like this.  Note that this stuff is done in
> filter_nnrpd, not filter_innd.

Okay.  Anything from the old filter that needs to be kept?

I'll test this.  Thanks, ever so, again.  We're all having fun, come
visit someday.

> 
> #
> # filter_nnrpd.pl
> #
> sub
> filter_post
> {
>     my $result = "";
>     $modify_headers = 31337;
> 
>     # Hey, I gotta try.
>     $hdr{'X-Meow'} = $hdr{'X-Meow'} || 'Meow';
> 
>     # Set this to the posting host you want to substitute.
>     my $forcehost = "kremvax.gov.su";
> 
>     $hdr{'NNTP-Posting-Host'} = $forcehost;
> 
>     # clobber posting host but leave server/time/PID info intact.
>     # Got logs?
>     my @newtrace = split / /, $hdr{'X-Trace'};
>     $newtrace[3] = $forcehost;
>     $hdr{'X-Trace'} = join ' ', @newtrace;
> 
>     $result ;
> }
> 

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Technical Details
Message-ID: <m38zm83gz2.fsf@pyrophore.ogoense.net>
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!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!yellow.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail
References: <m3bsr4c1h8.fsf@pyrophore.ogoense.net> <8766hcssp4.fsf@adsl-141-154-24-189.bostma.adsl.bellatlantic.net>

Show Full Headers
Complete Article Headers
Message-ID: <m38zm83gz2.fsf@pyrophore.ogoense.net>
Subject: Re: Setting the NNTP posting host
Date: Wed, 14 Mar 2001 08:14:09 GMT
From: Rebecca Ore <rebecca@ogoense.net>
References: <m3bsr4c1h8.fsf@pyrophore.ogoense.net> <8766hcssp4.fsf@adsl-141-154-24-189.bostma.adsl.bellatlantic.net>
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!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!yellow.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail
Mail-Copies-To: never
Sender: rebecca@pyrophore.ogoense.net
Newsgroups: news.software.nntp
Organization: Rebecca's
Lines: 54
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 207.8.130.194
X-Complaints-To: Abuse Role <abuse@netaxs.com>
X-Trace: monger.newsread.com 984557649 207.8.130.194 (Wed, 14 Mar 2001 03:14:09 EST)
NNTP-Posting-Date: Wed, 14 Mar 2001 03:14:09 EST