Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The following statement is not true. The previous statement is true.


computers / Rocksolid Nodes Help / rslight spam mods - testing

SubjectAuthor
* rslight spam mods - testingRetro Guy
+- rslight spam mods - testingRetro Guy
+- rslight spam mods - testingSugarBug
+* rslight spam mods - testingSugarBug
|`* rslight spam mods - testingRetro Guy
| +* rslight spam mods - testingRetro Guy
| |`- rslight spam mods - testingRetro Guy
| `- rslight spam mods - testingSugarBug
`* rslight spam mods - testingSugarBug
 `* rslight spam mods - testingRetro Guy
  `* rslight spam mods - testingSugarBug
   `- rslight spam mods - testingRetro Guy

1
rslight spam mods - testing

<0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=774&group=rocksolid.nodes.help#774

  copy link   Newsgroups: rocksolid.nodes.help
Date: Thu, 21 Dec 2023 16:28:36 +0000
Subject: rslight spam mods - testing
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$3E6AvXHPjBgWol8iHwz7rO2amoR8kUQNXT4rSgya7QzxRR3ZQqAze
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
User-Agent: Rocksolid Light
Organization: Rocksolid Light
Message-ID: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
Content-Type: multipart/mixed;boundary="------------658467b2357687.13615891"
 by: Retro Guy - Thu, 21 Dec 2023 16:28 UTC
Attachments: rslight_spam_mods.tgz (application/gzip)

The attached tgz contains rslight-lib.php and post.inc.php

With these two files changed, and nntp.php restarted, it SHOULD reject posted spam, whether through the web interface or newsreader.

Works for me, but you know what that means, lol.

--
Retro Guy

Attachments: rslight_spam_mods.tgz (application/gzip)
Re: rslight spam mods - testing

<5a403b580c699d57dc4797a18ef647c0@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=775&group=rocksolid.nodes.help#775

  copy link   Newsgroups: rocksolid.nodes.help
Date: Thu, 21 Dec 2023 17:08:02 +0000
Subject: Re: rslight spam mods - testing
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$RAP35XwQ0gvQDztKMcmCpOogAJfc8tfkyRbtvbJqXJ1Yn9VJc3WoO
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
User-Agent: Rocksolid Light
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
Organization: Rocksolid Light
Message-ID: <5a403b580c699d57dc4797a18ef647c0@news.novabbs.org>
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
Content-Type: multipart/mixed;boundary="------------658470f17a5880.32507295"
 by: Retro Guy - Thu, 21 Dec 2023 17:08 UTC
Attachments: spoolnews.php.tgz (application/gzip)

Retro Guy wrote:

> The attached tgz contains rslight-lib.php and post.inc.php

> With these two files changed, and nntp.php restarted, it SHOULD reject posted spam, whether through the web interface or newsreader.

> Works for me, but you know what that means, lol.

Adding spoolnews.php now. Here's what I get for a fresh group with some spam in it:

Dec 21 17:05:11 rocksolid Spooling: comp.arch:1
Dec 21 17:05:12 rocksolid Skipping: news.i2pn2.org comp.arch:38735 Exceeds Spam Score
Dec 21 17:05:13 rocksolid Spooling: comp.arch:2
Dec 21 17:05:15 rocksolid Spooling: comp.arch:3
Dec 21 17:05:16 rocksolid Spooling: comp.arch:4
Dec 21 17:05:17 rocksolid Skipping: news.i2pn2.org rocksolid.spam:38739 Exceeds Spam Score
Dec 21 17:05:18 rocksolid Spooling: comp.arch:5
Dec 21 17:05:19 rocksolid Spooling: comp.arch:6
Dec 21 17:05:20 rocksolid Skipping: news.i2pn2.org rocksolid.spam:38742 Exceeds Spam Score
Dec 21 17:05:20 rocksolid Skipping: news.i2pn2.org rocksolid.spam:38743 Exceeds Spam Score
Dec 21 17:05:21 rocksolid Skipping: news.i2pn2.org rocksolid.spam:38744 Exceeds Spam Score
Dec 21 17:05:21 rocksolid Spooling: comp.arch:7
Dec 21 17:05:22 rocksolid Spooling: comp.arch:8
Dec 21 17:05:23 rocksolid Spooling: comp.arch:9
Dec 21 17:05:24 rocksolid Spooling: comp.arch:10
Dec 21 17:05:26 rocksolid Spooling: comp.arch:11
Dec 21 17:05:26 rocksolid Skipping: news.i2pn2.org rocksolid.spam:38750 Exceeds Spam Score
Dec 21 17:05:27 rocksolid Spooling: comp.arch:12
Dec 21 17:05:30 rocksolid Spooling: comp.arch:13

--
Retro Guy

Attachments: spoolnews.php.tgz (application/gzip)
Re: rslight spam mods - testing

<um1s81$rkhd$2@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=776&group=rocksolid.nodes.help#776

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 11:23:29 -0600
Organization: To protect and to server
Message-ID: <um1s81$rkhd$2@paganini.bofh.team>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 17:22:09 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="905773"; posting-host="LLvcb2s2pZR9sFvdlQ0tNg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:oEFKhkoZ8I0rqUwQn9sr7hDgtx5f3c6094xi2HdwCNA=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:NDUuMTQxLjIxNS42Mg== --
 by: SugarBug - Thu, 21 Dec 2023 17:23 UTC

On Thu, 21 Dec 2023 16:28:36 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> The attached tgz contains rslight-lib.php and post.inc.php
>
> With these two files changed, and nntp.php restarted, it SHOULD
> reject posted spam, whether through the web interface or newsreader.
>
> Works for me, but you know what that means, lol.

No kidding! "Works on my machine" probably appears nearly as much on the
internet as cat memes. I am testing this now.

I'm also putting out feelers to ask others to contribute themes and run
some more peers. Hopefully a few will bite. If your project could get
more attention it could attract more people to Usenet.

Re: rslight spam mods - testing

<um1t4q$rkhd$3@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=777&group=rocksolid.nodes.help#777

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 11:38:50 -0600
Organization: To protect and to server
Message-ID: <um1t4q$rkhd$3@paganini.bofh.team>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 17:37:31 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="905773"; posting-host="LLvcb2s2pZR9sFvdlQ0tNg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:0U9ombmr5LL/IK4JF6+EqsduihBX6aiEg66ylvI9Zac=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:NDUuMTQxLjIxNS42Mg== --
 by: SugarBug - Thu, 21 Dec 2023 17:38 UTC

On Thu, 21 Dec 2023 16:28:36 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> The attached tgz contains rslight-lib.php and post.inc.php
>
> With these two files changed, and nntp.php restarted, it SHOULD
> reject posted spam, whether through the web interface or newsreader.

I want to be sure I am testing for the right thing. By this do you mean
spam that is posted through the local machine accounts, and not
messages pulled from a peer?
> Works for me, but you know what that means, lol.

Re: rslight spam mods - testing

<um1tfn$jnnf$10@i2pn2.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=778&group=rocksolid.nodes.help#778

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 17:43:19 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <um1tfn$jnnf$10@i2pn2.org>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
<um1t4q$rkhd$3@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Dec 2023 17:43:19 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="646895"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 21 Dec 2023 17:43 UTC

On Thu, 21 Dec 2023 11:38:50 -0600, SugarBug wrote:

> On Thu, 21 Dec 2023 16:28:36 +0000 retro.guy@rocksolidbbs.com (Retro
> Guy) wrote:
>
>> The attached tgz contains rslight-lib.php and post.inc.php
>>
>> With these two files changed, and nntp.php restarted, it SHOULD reject
>> posted spam, whether through the web interface or newsreader.
>
> I want to be sure I am testing for the right thing. By this do you mean
> spam that is posted through the local machine accounts, and not messages
> pulled from a peer?
>
>> Works for me, but you know what that means, lol.

Correct. But I did after that send spoolnews.php that may work for
importing from peers.

Re: rslight spam mods - testing

<25bfd97098f71f29c098f0b52cff0f77@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=779&group=rocksolid.nodes.help#779

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 18:25:09 +0000
Organization: RetroBBS
Message-ID: <25bfd97098f71f29c098f0b52cff0f77@rocksolidbbs.com>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org> <um1t4q$rkhd$3@paganini.bofh.team> <um1tfn$jnnf$10@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="677672"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Rslight-Site: $2y$10$A0axL74ppA97sJTyzyxR5eJ4sOjQjS7VqjnxKm9ZFUTspRVneh7Ey
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 21 Dec 2023 18:25 UTC

Retro Guy wrote:

> On Thu, 21 Dec 2023 11:38:50 -0600, SugarBug wrote:

>> On Thu, 21 Dec 2023 16:28:36 +0000 retro.guy@rocksolidbbs.com (Retro
>> Guy) wrote:
>>
>>> The attached tgz contains rslight-lib.php and post.inc.php
>>>
>>> With these two files changed, and nntp.php restarted, it SHOULD reject
>>> posted spam, whether through the web interface or newsreader.
>>
>> I want to be sure I am testing for the right thing. By this do you mean
>> spam that is posted through the local machine accounts, and not messages
>> pulled from a peer?
>>
>>> Works for me, but you know what that means, lol.

> Correct. But I did after that send spoolnews.php that may work for
> importing from peers.

Note: I have made some fixes to spoolnews.php since I sent the above .tgz of same.

--
Retro Guy

Re: rslight spam mods - testing

<um1vuq$rut8$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=780&group=rocksolid.nodes.help#780

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 12:26:51 -0600
Organization: To protect and to server
Message-ID: <um1vuq$rut8$1@paganini.bofh.team>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
<um1t4q$rkhd$3@paganini.bofh.team>
<um1tfn$jnnf$10@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 18:25:30 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="916392"; posting-host="RIXAPFPE+0MN2JnjupodKA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:lZl9GOf3NZN4/LIye3lB16FJ9CHtw1+DcP0g6hXqIsw=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MjAwMTo2N2M6ODljOjcwMjoxY2U6MWNlOmJhYmU6Mw== --
 by: SugarBug - Thu, 21 Dec 2023 18:26 UTC

On Thu, 21 Dec 2023 17:43:19 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Thu, 21 Dec 2023 11:38:50 -0600, SugarBug wrote:
>
> > On Thu, 21 Dec 2023 16:28:36 +0000 retro.guy@rocksolidbbs.com (Retro
> > Guy) wrote:
> >
> >> The attached tgz contains rslight-lib.php and post.inc.php
> >>
> >> With these two files changed, and nntp.php restarted, it SHOULD
> >> reject posted spam, whether through the web interface or
> >> newsreader.
> >
> > I want to be sure I am testing for the right thing. By this do you
> > mean spam that is posted through the local machine accounts, and
> > not messages pulled from a peer?
> >
> >> Works for me, but you know what that means, lol.
>
> Correct. But I did after that send spoolnews.php that may work for
> importing from peers.

I just found this. I ran tests already without the updated
spoolnews. I'll post the results, then update spoolnews.php and test
that later.

Re: rslight spam mods - testing

<um2056$rut8$2@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=781&group=rocksolid.nodes.help#781

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 12:30:15 -0600
Organization: To protect and to server
Message-ID: <um2056$rut8$2@paganini.bofh.team>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 18:28:55 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="916392"; posting-host="RIXAPFPE+0MN2JnjupodKA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:gkT8zr7vG0uoG5g49lhFuIuXA6Stl6tOEZ4XNPrwAow=
X-TOR-Router: sha256:MjAwMTo2N2M6ODljOjcwMjoxY2U6MWNlOmJhYmU6Mw== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: SugarBug - Thu, 21 Dec 2023 18:30 UTC

On Thu, 21 Dec 2023 16:28:36 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> The attached tgz contains rslight-lib.php and post.inc.php
>
> With these two files changed, and nntp.php restarted, it SHOULD
> reject posted spam, whether through the web interface or newsreader.
>
> Works for me, but you know what that means, lol.
>

I updated the files in place and I am testing with cron runs on a fresh,
empty spool.

Exact order of operations shown below.

[run 1] no errors

[run 2] error:

PHP Fatal error: Uncaught TypeError: fputs(): supplied resource is not
a valid stream resource in .../rocksolid/lib/thread.inc.php:237
Stack trace:
#0 ...//rocksolid/lib/thread.inc.php(237): fputs()
#1 ...//rocksolid/lib/thread.inc.php(304): thread_overview_read()
#2 .../scripts/spoolnews.php(146): thread_load_newsserver()
#3 {main}
thrown in ..//rocksolid/lib/thread.inc.php on line 237

[runs 3-5] no errors

[run 6] same error as run #2

[runs 7-10] no errors

Posting tests:

From: Blocked Address Test <black@hole.url>

first attempt (group 'spam'): message accepted.
next attempt (group 'spam'): connection dropped, spamd in log.

https://rocksolid.sybershock.com/rocksolid/thread.php?group=spam

next attempt (group 'spam.spam'): message accepted.
next attempt (group 'spam.spam'): connection dropped, spamd in log.

https://rocksolid.sybershock.com/rocksolid/thread.php?group=spam.spam

I tested a post via telnet:

[blacklisted address]

281 Authentication succeeded
mode reader
200 Rocksolid Light NNRP Server ready (no posting)
post
340 Send article to be posted
From: black@hole.url
Newsgroups: spam
Subject: Tesing spamd

Testing spamd
..
Connection closed by foreign host.

[not blacklisted address]

281 Authentication succeeded
mode reader
200 Rocksolid Light NNRP Server ready (no posting)
post
340 Send article to be posted
From: good@address.url
Newsgroups: spam
Subject: Testing spamd

Testing spamd
..
Connection closed by foreign host.

This message from good@address.url never appears in the web interface.

[cron run 11] same error as #2 and #6 above.

[cron runs 12-13] no errors.

Web portal shows 78 total messages.

spool/articles$ find . -type f | wc -l
110

Spool shows 110.

Articles are not updating in the web interface:

https://rocksolid.sybershock.com/rocksolid/?

Then I ran the cron sixteen times in a loop with 10-second pause between
each run. Then I checked the spool:

articles$ find . -type f | wc -l
110

The same number of articles as before.

I set these values for testing:

config$ cat overrides.inc.php
<?php
return [
// expire.php
'max_articles_per_group' => 500,

// spoolnews.php
'maxarticles_per_run' => 10,
'maxfirstrequest' => 1000,

I am going to leave it alone right here so you can look at the portal
pages without further changes on my end. The cron is disabled to prevent
(hopefully) updates. I will test the new spoolnews.php later.

Re: rslight spam mods - testing

<5d546b9450830f768127d1003adf36bd@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=782&group=rocksolid.nodes.help#782

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 18:28:14 +0000
Organization: RetroBBS
Message-ID: <5d546b9450830f768127d1003adf36bd@rocksolidbbs.com>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org> <um1t4q$rkhd$3@paganini.bofh.team> <um1tfn$jnnf$10@i2pn2.org> <25bfd97098f71f29c098f0b52cff0f77@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="------------658483bd51a1f2.06148357"
Injection-Info: i2pn2.org;
logging-data="678169"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Rslight-Site: $2y$10$FdfevZZtY/u6ZOijsjRHROoCbbH2YggdCAe2oMCs6yVirOCGlW.0W
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 21 Dec 2023 18:28 UTC
Attachments: spoolnews.php.tgz (application/gzip)

Retro Guy wrote:

> Retro Guy wrote:

>> On Thu, 21 Dec 2023 11:38:50 -0600, SugarBug wrote:

>>> On Thu, 21 Dec 2023 16:28:36 +0000 retro.guy@rocksolidbbs.com (Retro
>>> Guy) wrote:
>>>
>>>> The attached tgz contains rslight-lib.php and post.inc.php
>>>>
>>>> With these two files changed, and nntp.php restarted, it SHOULD reject
>>>> posted spam, whether through the web interface or newsreader.
>>>
>>> I want to be sure I am testing for the right thing. By this do you mean
>>> spam that is posted through the local machine accounts, and not messages
>>> pulled from a peer?
>>>
>>>> Works for me, but you know what that means, lol.

>> Correct. But I did after that send spoolnews.php that may work for
>> importing from peers.

> Note: I have made some fixes to spoolnews.php since I sent the above .tgz of same.

Here is the updated spoolnews.php (attached)

--
Retro Guy

Attachments: spoolnews.php.tgz (application/gzip)
Re: rslight spam mods - testing

<um20ra$jnnf$14@i2pn2.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=783&group=rocksolid.nodes.help#783

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 18:40:42 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <um20ra$jnnf$14@i2pn2.org>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
<um2056$rut8$2@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Dec 2023 18:40:42 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="646895"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 21 Dec 2023 18:40 UTC

On Thu, 21 Dec 2023 12:30:15 -0600, SugarBug wrote:

> On Thu, 21 Dec 2023 16:28:36 +0000 retro.guy@rocksolidbbs.com (Retro
> Guy) wrote:
>
>> The attached tgz contains rslight-lib.php and post.inc.php
>>
>> With these two files changed, and nntp.php restarted, it SHOULD reject
>> posted spam, whether through the web interface or newsreader.
>>
>> Works for me, but you know what that means, lol.
>>
>>
> I updated the files in place and I am testing with cron runs on a fresh,
> empty spool.
>
> Exact order of operations shown below.
>
> [run 1] no errors
>
> [run 2] error:
>
> PHP Fatal error: Uncaught TypeError: fputs(): supplied resource is not
> a valid stream resource in .../rocksolid/lib/thread.inc.php:237 Stack
> trace:
> #0 ...//rocksolid/lib/thread.inc.php(237): fputs()
> #1 ...//rocksolid/lib/thread.inc.php(304): thread_overview_read()
> #2 .../scripts/spoolnews.php(146): thread_load_newsserver()
> #3 {main}
> thrown in ..//rocksolid/lib/thread.inc.php on line 237

This is that same error we had last week. It's not truly fatal in the long
run, just one run. I think I fixed it, but you may not have the latest
code with that fix.

Also, the filtering has nothing to do with cron.php, it's all in the
posting (web interface post, or newsreader post).

I see the post in 'spam' that shouldn't be there. Can you try just wiping
the entire spool dir and starting fresh?

BTW: My current testing is being done on a tradspool setup. Hmmm...

Re: rslight spam mods - testing

<um23si$s0br$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=784&group=rocksolid.nodes.help#784

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 13:33:55 -0600
Organization: To protect and to server
Message-ID: <um23si$s0br$1@paganini.bofh.team>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
<um2056$rut8$2@paganini.bofh.team>
<um20ra$jnnf$14@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 19:32:34 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="917883"; posting-host="uKgZBr+5EbkR/Q2/togogw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:3jd8Eag4HzHIkRQBKSHmaeYrPB8S+hmMD3+shk+jYg4=
X-TOR-Router: sha256:MmEwMzo0MDAwOjYyOjg6Yzg1NToyM2ZmOmZlZjY6NTBlZQ== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: SugarBug - Thu, 21 Dec 2023 19:33 UTC

On Thu, 21 Dec 2023 18:40:42 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> I see the post in 'spam' that shouldn't be there. Can you try just
> wiping the entire spool dir and starting fresh?

Added updated spoolnews.php.

Wiped spool directory.

Looped 10 cron runs.

Syslog is full of spamd activity now:

# grep -c "spamd" /var/log/syslog
1514

Example:

spamd[1249]: spamd: processing message
<hhjaiip0u75iioo8h2u6ukp1qvtk7b6fap@4ax.com> for sybershock.com:1003

Some blacklist addresses are being identified by spamd:

/var/log# grep "spamd: result: Y" syslog | wc -l
115

Interface not updating messages after count of 22 again.

Tradspool files not updating after count of 110ish messages again.

spool/articles$ find . | wc -l
116

After all this, I sent a test message from news reader client address
good@addy.url. This address is not in spamd blacklist.

Message listed in portal but not found:
https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=1&group=spam#1

This single message is listed in 3 newsgroups in portal, although I
posted only to one group:

https://rocksolid.sybershock.com/rocksolid/?

Same message shows subject header via NNTP, but is inaccessible:

This message can't be displayed.
This is probably due to a network error.

Checked via telnet:

200 Rocksolid Light NNTP Server ready (no posting)
mode reader
200 Rocksolid Light NNRP Server ready (no posting)
group spam
211 1 1 1 spam
article 1
430 no such article found
quit
205 closing connection - goodbye!
Connection closed by foreign host.

spool$ ls -a articles/spam/
.. ..

returns null, no files

Then fired cron twice to update everything.

Sent second test message via newsreader over NNTP using from:
newsreader@fakeaddress.com which is not blacklisted. The NNTP server
rejects and drops the connection.

spool/articles$ ls spam/
2

spool/articles$ cat spam/2

spool/articles$ wc -c spam/2
0 spam/2

It is a blank, 0-byte file.

It seems that something is going haywire once a spam match is
activated. Then nothing after that is working quite as usual.

Later on I am going to wipe out the installation and delete all
the files then pull fresh from gitlab and start over by reinstalling
rslight with the updated php files. I must be away for awhile.

For now I leave the cron off so you can see the current state of the
portal.

Re: rslight spam mods - testing

<um24ah$jnnf$15@i2pn2.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=785&group=rocksolid.nodes.help#785

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight spam mods - testing
Date: Thu, 21 Dec 2023 19:40:01 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <um24ah$jnnf$15@i2pn2.org>
References: <0d4f26bf6a404a2eea20b8293d716a27@news.novabbs.org>
<um2056$rut8$2@paganini.bofh.team> <um20ra$jnnf$14@i2pn2.org>
<um23si$s0br$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Dec 2023 19:40:01 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="646895"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 21 Dec 2023 19:40 UTC

On Thu, 21 Dec 2023 13:33:55 -0600, SugarBug wrote:

> On Thu, 21 Dec 2023 18:40:42 -0000 (UTC)
> Retro Guy <retroguy@i2pn2.org> wrote:
>
>> I see the post in 'spam' that shouldn't be there. Can you try just
>> wiping the entire spool dir and starting fresh?
>
> Added updated spoolnews.php.
>
> Wiped spool directory.
>
> Looped 10 cron runs.
>
> Syslog is full of spamd activity now:
>
> # grep -c "spamd" /var/log/syslog 1514
>
> Example:
>
> spamd[1249]: spamd: processing message
> <hhjaiip0u75iioo8h2u6ukp1qvtk7b6fap@4ax.com> for sybershock.com:1003
>
> Some blacklist addresses are being identified by spamd:
>
> /var/log# grep "spamd: result: Y" syslog | wc -l 115
>
> Interface not updating messages after count of 22 again.
>
> Tradspool files not updating after count of 110ish messages again.
>
> spool/articles$ find . | wc -l 116
>
> After all this, I sent a test message from news reader client address
> good@addy.url. This address is not in spamd blacklist.
>
> Message listed in portal but not found:
> https://rocksolid.sybershock.com/rocksolid/article-flat.php?
id=1&group=spam#1
>
> This single message is listed in 3 newsgroups in portal, although I
> posted only to one group:
>
> https://rocksolid.sybershock.com/rocksolid/?
>
> Same message shows subject header via NNTP, but is inaccessible:
>
> This message can't be displayed.
> This is probably due to a network error.
>
> Checked via telnet:
>
> 200 Rocksolid Light NNTP Server ready (no posting)
> mode reader 200 Rocksolid Light NNRP Server ready (no posting)
> group spam 211 1 1 1 spam article 1 430 no such article found quit 205
> closing connection - goodbye!
> Connection closed by foreign host.
>
> spool$ ls -a articles/spam/
> . ..
>
> returns null, no files
>
> Then fired cron twice to update everything.
>
> Sent second test message via newsreader over NNTP using from:
> newsreader@fakeaddress.com which is not blacklisted. The NNTP server
> rejects and drops the connection.
>
> spool/articles$ ls spam/
> 2
>
> spool/articles$ cat spam/2
>
> spool/articles$ wc -c spam/2 0 spam/2
>
> It is a blank, 0-byte file.
>
> It seems that something is going haywire once a spam match is activated.
> Then nothing after that is working quite as usual.
>
> Later on I am going to wipe out the installation and delete all the
> files then pull fresh from gitlab and start over by reinstalling rslight
> with the updated php files. I must be away for awhile.
>
> For now I leave the cron off so you can see the current state of the
> portal.

Ok, I need a break also.

The three php files I sent are NOT on github. You will need to apply those
manually. Make sure you use the second spoolnews.php that I sent, not the
first one.

I will convert to database (non tradspool) for my next testing.


computers / Rocksolid Nodes Help / rslight spam mods - testing

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor