• how to post a text message to nntp server

    From spender@21:1/5 to All on Fri Feb 24 18:02:00 2023
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Urs =?UTF-8?Q?Jan=C3=9Fen?=@21:1/5 to spender on Fri Feb 24 13:44:30 2023
    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"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?5b2t5rGf5rab?=@21:1/5 to All on Sat Feb 25 08:59:51 2023
    在 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 .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?5b2t5rGf5rab?=@21:1/5 to All on Sat Feb 25 09:35:39 2023
    在 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)