๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Heinz Ekker Wed, 18 Aug 1999 00:00
manipulating headers of incoming messages
#39247
Author: Heinz Ekker
Date: Wed, 18 Aug 1999 00:00
28 lines
1692 bytes
hi!

We have got an intranet news-server (inn 2.2) running. Now we wanted to make
a gossip-newsgroup with anonymous posting.

I asked myself if there's any possibility to manipulate the headers of the
incoming messages and remove the from:, x-trace: and nntp-posting-host:
fields. I found several perl-filtering tools & patches, but all they do is
either reject the message or spool them for manual editing.

I know some perl, so it would be interesting if there is a possibility to
pipe articles through a script and then putting them into the spool.
There are several other possibilities, like going over the spool directory
with a perl-script, like setting up another server at another port, etc. but
this seems not really elegant, and at least, I thought to give it a try ;)

regards, heinz

--
***************************************************************
* Linux is like a wigwam: no windows, no gates, Apache inside *
* mailto:ch1a23@enemy.org       mailto:belafon@cyberspace.org *
*                  http://www.netway.at/belafon               *
***************************************************************



Re: manipulating headers of incoming messages
#39243
Author: Jeremy
Date: Wed, 18 Aug 1999 00:00
28 lines
1803 bytes
Heinz Ekker <hekker@netway.at> wrote:

> We have got an intranet news-server (inn 2.2) running. Now we wanted to
> make a gossip-newsgroup with anonymous posting.

I like your company already. :)

> I asked myself if there's any possibility to manipulate the headers of the
> incoming messages and remove the from:, x-trace: and nntp-posting-host:
> fields. I found several perl-filtering tools & patches, but all they do is
> either reject the message or spool them for manual editing.

Like Russ said, very recent INNs can modify the headers.  Or, you can make
the group moderated, and set the moderation address to a program that works
over the headers and then automatically posts the article.

In addition to From, X-Trace, and NNTP-Posting-Host, you should also
remove/replace X-Newsreader, Sender, X-Sender, Originator, User-Agent,
Path, Message-ID, and probably a few others I'm not thinking of at the
moment.  Best bet would be to blow away and replace everything except
Subject, Newsgroups, and References.  Otherwise, someone will get 'outed'
and it won't be pretty.

-- 
Jeremy  |  jeremy@exit109.com
"I find your lack of faith disturbing."   --Darth Vader

Re: manipulating headers of incoming messages
#39255
Author: Etienne
Date: Wed, 18 Aug 1999 00:00
39 lines
2312 bytes
Hi Heinz,

  Another idea (I don't know if it's possible) :
- Just reject all messages coming to this 'gossip' newsgroup.
- Then your script could post the message itself to the newsgroup. Then,
every information from the sender would be masked.

Etienne


Heinz Ekker a ๏ฟฝcrit :
> 
> hi!
> 
> We have got an intranet news-server (inn 2.2) running. Now we wanted to make
> a gossip-newsgroup with anonymous posting.
> 
> I asked myself if there's any possibility to manipulate the headers of the
> incoming messages and remove the from:, x-trace: and nntp-posting-host:
> fields. I found several perl-filtering tools & patches, but all they do is
> either reject the message or spool them for manual editing.
> 
> I know some perl, so it would be interesting if there is a possibility to
> pipe articles through a script and then putting them into the spool.
> There are several other possibilities, like going over the spool directory
> with a perl-script, like setting up another server at another port, etc. but
> this seems not really elegant, and at least, I thought to give it a try ;)
> 
> regards, heinz
> 
> --
> ***************************************************************
> * Linux is like a wigwam: no windows, no gates, Apache inside *
> * mailto:ch1a23@enemy.org       mailto:belafon@cyberspace.org *
> *                  http://www.netway.at/belafon               *
> ***************************************************************

Re: manipulating headers of incoming messages
#39264
Author: Russ Allbery
Date: Wed, 18 Aug 1999 00:00
41 lines
2693 bytes
Heinz Ekker <hekker@netway.at> writes:

> I asked myself if there's any possibility to manipulate the headers of
> the incoming messages and remove the from:, x-trace: and
> nntp-posting-host: fields. I found several perl-filtering tools &
> patches, but all they do is either reject the message or spool them for
> manual editing.

> I know some perl, so it would be interesting if there is a possibility
> to pipe articles through a script and then putting them into the spool.
> There are several other possibilities, like going over the spool
> directory with a perl-script, like setting up another server at another
> port, etc. but this seems not really elegant, and at least, I thought to
> give it a try ;)

Are the articles locally posted?  If so, get a recent version of INN and
you can modify the headers in the Perl filter.  Note that the articles
still have to be syntactically valid, so you need to replace the From
header with a bogus one containing something like an e-mail address, not
just remove it.  Then configure INN to not add NNTP-Posting-Host or
X-Trace or the like, and you should be all set.

If the articles aren't all locally posted, INN can't modify headers of
incoming articles (and in general I'd be opposed to making that possible,
just because there's too much potential for catastrophic misuse --
modifying an article and then passing it along to peers with the same
message ID would cause serious problems for the rest of Usenet).  I doubt
any other major server can do so either, for similar reasons.

I think your best bet would be to use one of those tools to spool all the
articles you want to anonymize; usually they write them somewhere in
incoming.  Then, run your Perl script across all of the articles to take
out the fields you don't want *and change the Newsgroups header to some
local-only newsgroup and change the Message-ID to something else*.  Make
sure you do both of those!  Then move the articles into the main incoming
area and run rnews -U to post them all to your server.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: manipulating headers of incoming messages
#39269
Author: Russ Allbery
Date: Wed, 18 Aug 1999 00:00
15 lines
1165 bytes
Jeremy <jeremy@exit109.com> writes:

> In addition to From, X-Trace, and NNTP-Posting-Host, you should also
> remove/replace X-Newsreader, Sender, X-Sender, Originator, User-Agent,
> Path, Message-ID, and probably a few others I'm not thinking of at the
> moment.  Best bet would be to blow away and replace everything except
> Subject, Newsgroups, and References.  Otherwise, someone will get
> 'outed' and it won't be pretty.

And watch out for signatures that people forgot not to attach.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: manipulating headers of incoming messages
#39286
Author: bill davidsen
Date: Thu, 19 Aug 1999 00:00
28 lines
2149 bytes
In article <7pdtad$fvg$1@news.netway.at>, Heinz Ekker <hekker@netway.at> wrote:

| I asked myself if there's any possibility to manipulate the headers of the
| incoming messages and remove the from:, x-trace: and nntp-posting-host:
| fields. I found several perl-filtering tools & patches, but all they do is
| either reject the message or spool them for manual editing.
| 
| I know some perl, so it would be interesting if there is a possibility to
| pipe articles through a script and then putting them into the spool.
| There are several other possibilities, like going over the spool directory
| with a perl-script, like setting up another server at another port, etc. but
| this seems not really elegant, and at least, I thought to give it a try ;)

You can do that with inn-2.2 and later (maybe 2.0, don't have any left).
But you might be better off to make the group moderated and remove all
traces of poster id, since INN logs the connect IP even if you take it
out of the article.

Very much depends on how much you reaaly need anon. Also be aware that
people will use their real addresses or sigs in messages, don't count
on self preservation there.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.

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