🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by spender Fri, 24 Feb 2023 10:02
how to post a text message to nntp server
#90140
Author: spender
Date: Fri, 24 Feb 2023 10:02
8 lines
967 bytes
Hi:
I have my self nntp server, listen post=563, and enable tls.
enable login auth,
How to post a message to a newsgroup@myselfhost:563  with shell/bash 
command line,

does somebody help me?
Re: how to post a text message to nntp server
#90141
Author: Urs Janßen
Date: Fri, 24 Feb 2023 13:44
13 lines
1208 bytes
spender wrote:
> How to post a message to a newsgroup@myselfhost:563  with shell/bash 
> command line,

if perl is ok:

http://bzr.tin.org/tools/tinews.pl
http://www.tin.org/bin/man.cgi?section=1&topic=tinews

e.g.

echo -e "\nbody goes here" |\
tinews.pl --ssl -XYv -t "test" -n "local.test" -f "me@example.org"
Re: how to post a text message to nntp server
#90136
Author: 彭江涛
Date: Sat, 25 Feb 2023 00:59
15 lines
1308 bytes
在 2023/2/24 21:44, Urs Janßen 写道:
> spender wrote:
>> How to post a message to a newsgroup@myselfhost:563  with shell/bash
>> command line,
> 
> if perl is ok:
> 
> http://bzr.tin.org/tools/tinews.pl
> http://www.tin.org/bin/man.cgi?section=1&topic=tinews
> 
> e.g.
> 
> echo -e "\nbody goes here" |\
> tinews.pl --ssl -XYv -t "test" -n "local.test" -f "me@example.org"
3ku, try it .
Re: how to post a text message to nntp server
#90138
Author: 彭江涛
Date: Sat, 25 Feb 2023 01:35
50 lines
2835 bytes
在 2023/2/24 21:44, Urs Janßen 写道:
> spender wrote:
>> How to post a message to a newsgroup@myselfhost:563  with shell/bash
>> command line,
> 
> if perl is ok:
> 
> http://bzr.tin.org/tools/tinews.pl
> http://www.tin.org/bin/man.cgi?section=1&topic=tinews
> 
> e.g.
> 
> echo -e "\nbody goes here" |\
> tinews.pl --ssl -XYv -t "test" -n "local.test" -f "me@example.org"
Pass:
1: need create sl director under this script
2: modify line 70, set nntp-server with configure to my local network 
address
3: modify line 71,72, set nntp-user as authinfo
4: modify line 88, set verbose with 1
5: modify line 89, set debug with 1

here is output with me:
echo -e "\nbody"|tinews.pl --nntps -XYv -t "cli send test" -n 
"local.sms" -f "spender@spender.men"
==========================================================
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 281 Authentication succeeded
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> POST
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 340 Ok, recommended message-ID 
<ttboa0$8aq$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Subject: cli send test
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Newsgroups: local.sms
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Injection-Date: Sat, 25 Feb 2023 
09:29:35 +0800
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Date: Sat, 25 Feb 2023 09:29:35 +0800
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> From: spender@spender.men
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Message-ID: 
<ttbo9v$8ao$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> body
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> --
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> === powered by root@news.spender.men ===
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> .
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 240 Article received 
<ttbo9v$8ao$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> QUIT
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 205 Bye!


3ku . on the way! now Need read how to configure it.
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