πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83586

Re: Transit server "wanttrash"

#83586
From: John F. Morse
Date: Thu, 28 Oct 2010 19:23
182 lines
7868 bytes
Hi Julien,

> Julien Γ‰LIE wrote:
>>> I remember some discussion about a year ago that involved using 
>>> wanttrash to accept and relay any newsgroup.
>>>
>>> What version of INN supports this?
>>
>> INN 2.5.2 according to:
>> http://www.eyrie.org/~eagle/software/inn/docs/news.html
>>
>>    A new flag has been added to newsfeeds entries:  Aj, when present,
>>    says to feed articles accepted and filed in junk (due to wanttrash)
>>    to peers based on their newsfeeds feed patterns applied to the
>>    Newsgroups: header as though the article were accepted and all those
>>    groups were locally carried. This is useful if you want to run INN
>>    with a minimal active file and propagate all posts.  Thanks to
>>    Andrew Gierth for the patch.
>>
>>    A new parameter has been added to inn.conf:  logtrash defines
>>    whether a line for articles posted to groups not locally carried
>>    by the news server should be added in the news log file to report
>>    unwanted newsgroups.  The default is true but it can be useful to
>>    set it to false (especially when wanttrash is also used).
>>
>>> Could you briefly explain what additional settings are needed to 
>>> process transit articles?
>>
>> See above.
>>
>>> I see remembertrash is another config option that may be needed.
>>
>> It is a different thing (remembering in the history).
>>
>>> Can a transit-only (no readers) server use such an option and not 
>>> need any active file, tradindexed articles spool, nor any cycbuffs?
>>
>> You need a minimal active file (with at least "control" and "junk").
>> No need for tradindexed.
>> You *need* a place where to store articles to feed (it could be CNFS).
>> A small one would be enough.  It is how innd works:  it needs to write
>> articles somewhere, so that innfeed can retrieve them (and if one of 
>> your
>> peer is down for two days, it can send the articles when it is up again,
>> if of course the article is still stored).
>>
>>> If so, how does INN monitor history so articles can be refused 
>>> and/or rejected?
>>
>> The history file still exists.  Remembering is set by artcutoff,
>> remembertrash and things like that.  You still need to run news.daily
>> to expire the history file.
>
> Thanks Julien.
>
> All understood (mostly a memory jog!), and I'm going to get busy. ;-)
>
> Just installed (aptitude) INN 2.5.2 on a new headless Debian Squeeze 
> box via ssh, configured /etc/inn.conf, and it's up and running now.
>
> Will configure more tomorrow.
>
> Thanks for the fast reply.


All of the above is working fine now (after a lot of owner:group and 
permission changes from Marco's packaging).

However I found an unknown (to me) problem.

I'm receiving e-mail cron failure reports at midnight. The Message 
Subject is:

Cron <news@v102> test -x /usr/lib/news/bin/news.daily && news.daily 
expireover lowmark delayrm

The message body contains only these two lines:

/usr/lib/news/innshellvars: line 98: basename: command not found
/usr/lib/news/innshellvars: line 121: tr: command not found

Checking the /usr/lib/news/innshellvars file:

     98 TEMPSOCK=`basename ${INNDDIR}/ctlinndXXXXXX | ${SED} -e 
's/XXXXXX$/*/'`
     98 TEMPSOCK=`basename ${INNDDIR}/ctlinndXXXXXX | ${SED} -e 
's/XXXXXX$/*/'`

    121 SYSLOG_FACILITY=`echo "LOG_NEWS" | tr "[:upper:]" "[:lower:]" | 
${SED} -e 's/log_//'`
    121 SYSLOG_FACILITY=`echo "LOG_NEWS" | tr "[:upper:]" "[:lower:]" | 
${SED} -e 's/log_//'`

The first lines are from v102, a new INN 2.5.2 Aptitude package install 
from the Debian Squeeze repository.

The second lines are from n102, a Debian Squeeze server with INN 2.5.2 
compiled from source last February, and put into production service in 
March. It is running fine.

They look identical and I see nothing unusual there.

john@v102:/usr/lib/news$ locate basename
/usr/bin/basename
/usr/share/man/man1/basename.1.gz

john@n102:/usr/lib/news$ locate basename/usr/bin/basename
/usr/share/man/man1/basename.1.gz
/usr/share/man/man3/basename.3.gz

john@v102:/usr/lib/news$ ls -al /usr/bin/basename
-rwxr-xr-x 1 root root 27472 Apr 27  2010 /usr/bin/basename

john@n102:/usr/lib/news$ ls -al /usr/bin/basename
-rwxr-xr-x 1 root root 22212 Apr 27  2010 /usr/bin/basename

For the tr program:

john@v102:/usr/lib/news$ ls -al /usr/bin/tr
-rwxr-xr-x 1 root root 43904 Apr 27  2010 /usr/bin/tr

john@n102:/usr/lib/news$ ls -al /usr/bin/tr
-rwxr-xr-x 1 root root 36708 Apr 27  2010 /usr/bin/tr

Both files are different sizes on each computer. Both basename and tr 
are binary files, so I cannot compare them. I do not have the source.

I don't know what these two commands are supposed to do, but the server 
seems to be handling messages fine and generating Daily Reports that 
look fine.

Oddly, they both are unknown when using "apt-cache show" or "apt-cache 
showpkg." Furthermore, "apt-cache policy" indicates they neither are 
installed. However, both have manual pages.

john@n102:/usr/lib/news$ apropos basename
basename (1)         - strip directory and suffix from filenames
basename (3)         - parse pathname components

tr (1)               - translate or delete characters

So I dig a little deeper. These programs appear to be part of the 
coreutils package:

john@v102:/usr/bin$ apt-cache policy coreutils
coreutils:
  Installed: 8.5-1
  Candidate: 8.5-1
  Version table:
 *** 8.5-1 0
        500 http://debian.mirrors.tds.net/debian/ squeeze/main amd64 
Packages
        100 /var/lib/dpkg/status

john@n102:/usr/lib/news$ apt-cache policy coreutils
coreutils:
  Installed: 8.5-1
  Candidate: 8.5-1
  Version table:
 *** 8.5-1 0
        500 http://debian.mirrors.tds.net/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status


The different sizes of the files is unusual. The n102 server is Debian 
Squeeze i386, but the new v102 server is Debian Squeeze amd64.

Perhaps that architecture build is the reason the programs differ?

Any idea how to "fix" this so the e-mail cron noise will stop? How 
important are the consequences of this failure?

Finally, should I post this in Debian Bugs so Marco can look at it (or 
would it be Michael Stone for coreutils)?

TIA


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <iacike$j2r$1@n102.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <ia27te$mhk$1@n102.xanadu-bbs.net> <ia2anl$vqb$1@news.trigofacile.com> <ia2j9t$pid$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <iacike$j2r$1@n102.xanadu-bbs.net>
Subject: Re: Transit server "wanttrash"
Date: Thu, 28 Oct 2010 14:23:58 -0500
From: "John F. Morse" <john@example.invalid>
References: <ia27te$mhk$1@n102.xanadu-bbs.net> <ia2anl$vqb$1@news.trigofacile.com> <ia2j9t$pid$1@n102.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 182
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1288293838 19547 192.168.89.210 (28 Oct 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Thu, 28 Oct 2010 19:23:58 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
In-Reply-To: <ia2j9t$pid$1@n102.xanadu-bbs.net>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 7619