🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #251566

Re: CLI tools that can handle snews:// URLs

#251566
From: Eli the Bearded
Date: Thu, 13 Sep 2012 21:12
55 lines
3108 bytes
In news.software.readers, John F. Morse <dont.bother> wrote:
> Anonymous wrote:
>> My next question is how to *post* from the commandline.  Lynx can post
>> interactively, but I suspect that the -post_data option is only for
>> http posting.
>> Any usenet tools that are designed to work from the commandline?
> Telnet.

Hahaha. Telnet works fine for an encrypted channel, but will suck at
an SSL link. Normally you'd use 'inews' for this task, but the trn4,
nn, and inn versions of 'inews' I've looked at today do not do SSL.

You might be able to get openssl to provide the suitable telnet-style
tunnel. 

And...

I just tried it with my local news server, and it worked just fine.
Lines starting with numbers are exact output from the newsserver
in this cut-and-paste transcript:

$ openssl s_client -connect news.panix.com:563
[ lots of openssl output ]
authinfo user USERNAME
381 PASS required
authinfo pass PASSWORD
281 Ok
post
340 Ok, recommended ID <k2thgj$g3g$1@reader1.panix.com>
From: Eli the Bearded <*@eli.users.panix.com>
Newsgroups: panix.test
Subject: openssl s_client -connect news.panix.com:563
Message-ID: <k2thgj$g3g$1@reader1.panix.com>

Test post using:
        openssl s_client -connect news.panix.com:563
and typing my post in.

Elijah
------
whee!
..
240 Article posted <k2thgj$g3g$1@reader1.panix.com>
quit
205 .
closed
$ 

I then checked the test group and saw my post. First time I've
gotten the panix news server to use "localhost" in NNTP-Posting-Host:
header.

Elijah
------
it also used 127.0.0.1 in X-Trace:
Technical Details
Message-ID: <eli$1209131701@qz.little-neck.ny.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.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!news-out.readnews.com!transit3.readnews.com!panix!qz!not-for-mail
References: <6d04a9ecf59311767822dcc625427097@breaka.net> <e02cc929ee86f8e4f13c83d418b3692d@breaka.net> <k2tf83$1t1$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <eli$1209131701@qz.little-neck.ny.us>
Subject: Re: CLI tools that can handle snews:// URLs
Date: Thu, 13 Sep 2012 21:12:40 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <6d04a9ecf59311767822dcc625427097@breaka.net> <e02cc929ee86f8e4f13c83d418b3692d@breaka.net> <k2tf83$1t1$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.readers.20140922.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!news-out.readnews.com!transit3.readnews.com!panix!qz!not-for-mail
Newsgroups: news.software.readers
Organization: Some absurd concept
Lines: 55
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1347570760 22464 166.84.1.5 (13 Sep 2012 21:12:40
 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Thu, 13 Sep 2012 21:12:40 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-Comments: "(Welcome to the desert of the real.)" -- eck@panix
 "... terrorism is open-source war ..." -- srini@unamerican
X-Original-Bytes: 2846