Article View: news.software.nntp
Article #51185Re: Setting the NNTP posting host
From: Obscure Meowbot
Date: Wed, 14 Mar 2001 07:41
Date: Wed, 14 Mar 2001 07:41
43 lines
2474 bytes
2474 bytes
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.
#
# 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 ;
}
Technical Details
Message-ID:
<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!logbridge.uoregon.edu!newsfeed.skycache.com!Cidera!cyclone1.ba-dsg.net!typhoon2.ba-dsg.net.POSTED!not-for-mailReferences:
<m3bsr4c1h8.fsf@pyrophore.ogoense.net>Show Full Headers
Complete Article Headers
Message-ID: <8766hcssp4.fsf@adsl-141-154-24-189.bostma.adsl.bellatlantic.net> Subject: Re: Setting the NNTP posting host Date: Wed, 14 Mar 2001 07:41:49 GMT From: Obscure Meowbot <meowbot@meowing.net> References: <m3bsr4c1h8.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!logbridge.uoregon.edu!newsfeed.skycache.com!Cidera!cyclone1.ba-dsg.net!typhoon2.ba-dsg.net.POSTED!not-for-mail Newsgroups: news.software.nntp Mail-Copies-To: nobody X-Meow: Wouf X-Face: #!n`o'kqzEiF(\CL4IR$H.F-||!S*5wv~g8~prn}Z<+F/-^?oJ:#_V#QP?G}!!yayV0]i\' GTb6:]Tic*!vjH}wm>ILhZBn8U0XEjh'l~yrjB?4Iiph5N9:kwqd/}86UTr9i|LCu]Bd)~G1R9U(qJ KOyEQK8*? Organization: They Lines: 42 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 141.154.22.13 X-Complaints-To: newsadmin@bellatlantic.net X-Trace: typhoon2.ba-dsg.net 984555709 141.154.22.13 (Wed, 14 Mar 2001 02:41:49 EST) NNTP-Posting-Date: Wed, 14 Mar 2001 02:41:49 EST