🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Paul Sun, 16 Nov 2008 23:13
Can I Alter the News Header Like I Can In Sendmail and Postfix?
#79658
Author: Paul
Date: Sun, 16 Nov 2008 23:13
46 lines
2539 bytes
 Hi there Smart People!  :-)

 I'd like to alter the header, Actually, just Remove certain things in the
outgoing header section from my server. Example, this is my current
outgoing header:
---------------
Path:   news.enother.com!not-for-mail
  From:   Paul <notreally@enother.net>
  Newsgroups:   news.software.nntp
  Subject:   Blah, Bla, Blahh, Bla Da Da Blah Blah Blah,,
  Date:   Sun, 16 Nov 2008 06:50:49 -0500
  Organization:   news.enother.com
  Lines:   17
  Message-ID:   <gfp5cc$ism$1@jellygram.net>
  Reply-To:   notreally@enother.net
  NNTP-Posting-Host:   adsl-219-44-18.asm.bellsouth.net
  Mime-Version:   1.0
  Content-Type:   text/plain; charset=us-ascii
  Content-Transfer-Encoding:   7Bit
  X-Trace:   jellygram.net 1226840268 19350 72.219.34.187 (16 Nov 2008
12:57:48 GMT)
  X-Complaints-To:   abuse@enother.com
  NNTP-Posting-Date:   Sun, 16 Nov 2008 12:57:48 +0000 (UTC)
  User-Agent:   KNode/0.10.4
  Xref:   news.enother.com news.software.nntp:54
---------------

 I'd just like to remove or alter the   X-Trace: line to only reflect
enother.com, rather than my main servers primary name..
Should I change my /etc/mailname? If I do that, I think, that would mess up
verification on my other softwares running as legit? Is this possible? Did
I miss something? What is it?

 I'm using Inn2 on Debian and any thoughts of advice, or suggestions are
very welcome from any people!?

 Thanks!

 Paul


-- 
------
My Real Reply To Address Is
admin AT enother.net
Re: Can I Alter the News Header Like I Can In Sendmail and Postfix?
#79659
Author: Julien ÉLIE
Date: Mon, 17 Nov 2008 08:41
39 lines
2390 bytes
Hi Paul,

>  X-Trace:   jellygram.net 1226840268 19350 72.219.34.187 (16 Nov 2008 12:57:48 GMT)
>
> I'd just like to remove or alter the   X-Trace: line to only reflect
> enother.com, rather than my main servers primary name..

domain

* alter:
    http://www.eyrie.org/~eagle/software/inn/docs/readers.conf.html
    See virtualhost: and domain: in readers.conf.

* remove :
    http://www.eyrie.org/~eagle/faqs/inn.html

6.11. Hide the X-Trace header

There is no built-in support for suppressing generation of the X-Trace header.
You can, however, remove it from inside a Perl posting filter.
Try using a posting filter like this:

    sub filter_post {
        $modify_headers = 1;
        delete $hdr{'X-Trace'};
        return '';
    }

Note that you have to set $modify_headers to make changes to the article header
effective in the actual posted article.


-- 
Julien ÉLIE

« -- Je vous ai à l'oil, Gaulois !
  -- Briseradius est furieux, je ne donne pas cher de votre peau !
  -- Bien sûr, puisqu'il nous a à l'oil. » (Astérix) 
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