Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Machine Always Crashes, If Not, The Operating System Hangs (MACINTOSH) -- Topic on #Linux


computers / Rocksolid Nodes Help / Re: testing devel branch with spamc enabled

SubjectAuthor
* testing devel branch with spamc enabledSugarBug
`* testing devel branch with spamc enabledRetro Guy
 +* testing devel branch with spamc enabledRetro Guy
 |`* testing devel branch with spamc enabledSugarBug
 | `* testing devel branch with spamc enabledRetro Guy
 |  `- testing devel branch with spamc enabledRetro Guy
 `* testing devel branch with spamc enabledSugarBug
  `* testing devel branch with spamc enabledRetro Guy
   `* testing devel branch with spamc enabledSugarBug
    `* testing devel branch with spamc enabledRetro Guy
     `* testing devel branch with spamc enabledSugarBug
      `* testing devel branch with spamc enabledRetro Guy
       `* testing devel branch with spamc enabledRetro Guy
        `* testing devel branch with spamc enabledSugarBug
         +- testing devel branch with spamc enabledSugarBug
         `* testing devel branch with spamc enabledRetro Guy
          +- testing devel branch with spamc enabledRetro Guy
          `* testing devel branch with spamc enabledSugarBug
           `- testing devel branch with spamc enabledRetro Guy

1
testing devel branch with spamc enabled

<umdvr9$1d1i9$1@paganini.bofh.team>

  copy mid

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

  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: testing devel branch with spamc enabled
Date: Tue, 26 Dec 2023 01:38:37 -0600
Organization: To protect and to server
Message-ID: <umdvr9$1d1i9$1@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Dec 2023 07:37:14 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1476169"; posting-host="3Rx5G8TfXG+d9JN1KlfYMg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:T2HmEsQj/MmpRBDnUi3N9Um6GHUTfNFjKK637p43lRg=
X-TOR-Router: sha256:MmEwYTo0Y2MwOjM6YzY6ODg3ZjozZGZmOmZlYWI6ZTY3Ng== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: SugarBug - Tue, 26 Dec 2023 07:38 UTC

I think spamc is marking all articles as spam because they don't
contain email headers. Maybe I am missing some module for this? Web
searches return nothing useful about the subject.

Here are the results the tests are returning.

I pulled the latest from gitlab and I installed 'devel' branch.

I enabled spamc.

I set database to '1' in rslight.inc.php.

I set overrides.inc.php to limit messages per run:

// expire.php
'max_articles_per_group' => 444,

// spoolnews.php
'maxarticles_per_run' => 3,
'maxfirstrequest' => 333,

I put some rocksolid groups and two spammy groups into the groups.txt.

I added a few of the addresses to my spamd blacklist_from directives.

I restarted spamd.service.

I truncated syslog to 0 bytes.

I fired the cron job.

The cron was running for a very long time. There are thousands of spamd
entries in syslog. There are hundreds of spam matches in syslog. It does
not appear that anything is actually being synced. The cron is just
running on and on stacking up entries in syslog, far in excess os what
is enabled in overrides.inc.php.

grep "spamd: result: Y" syslog | wc -l
609

Upon further inspection it appears that all messages are being flagged
as spam. In spool/log/spam.log the file is huge and has all of my and
your most recent testing messages in it. The entries look like this,
with some data truncated for brevity:

------------------------------------------
with SpamAssassin (version 4.0.0);
Mon, 25 Dec 2023 21:34:45 -0500
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on nightbulb.net
X-Spam-Flag: YES
X-Spam-Level: *****
X-Spam-Status: Yes, score=5.5 required=5.0
tests=MISSING_DATE,MISSING_FROM,
MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,
NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no version=4.0.0
MIME-Version: 1.0 Content-Type: multipart/mixed;
boundary="----------=_658A3BC5.12600B3A"

This is a multi-part message in MIME format.

------------=_658A3BC5.12600B3A
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Spam detection software [...] has identified this incoming email as
possible spam.

Content preview: [truncated]

Content analysis details: (5.5 points, 5.0 required)

pts rule name description
-0.0 NO_RECEIVED Informational: message has no Received headers
0.1 MISSING_MID Missing Message-Id: header
1.8 MISSING_SUBJECT Missing Subject: header
1.4 MISSING_DATE Missing Date: header
1.0 MISSING_FROM Missing From: header
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
1.2 MISSING_HEADERS Missing To: header
0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
headers

-----------------------------------

So it appears that all messages are being flagged as spam for the same
reasons as this example because they don't look like emails. So it
would appear that rslight is communicating just fine with spamc, and
getting back the "X-Spam-Flag: YES" header for every message pulled in
from remote.

So I shortened the number of messages for first read and got faster
completions of the cron:

I set overrides.inc.php to limit messages per run:

// expire.php
'max_articles_per_group' => 444,

// spoolnews.php
'maxarticles_per_run' => 3,
'maxfirstrequest' => 33, <== nix a 3

Also, when I post via the local server, the fake blacklisted address is
not marked as spam by rslight. When I post from it the articles show up
immediately in the group. It is blacklisted in spamc config and in
banned_names.conf. But if I post to rocksolid.test, then wipe the
spool, then sync, it is flagged as spam when pulled from remote.

Also, on prior and subsequent runs banned_names.conf never seemed to
work, either with or without spamc enabled.

I noticed that when I post locally through the NNTP server that no
entry is made in spam.log even thought the from address is blacklisted
in spamc config.

I also did some more test runs on a re-wiped spool. A few times I
changed spamc path to a script that just cats the data to a file. no
data was sent from rslight to that script at all for about a dozen runs
of cron.

I did the same kind of tests with tradspool instead of database = '1'.
The result are the same. All incoming articles are flagged as spam. All
articles whatever are flagged as spam. All articles are successfully
prevented from being written to the spool articles directory.

All points to rslight getting the X-Spam headers back from spamc and
acting upon them since they are YES for all articles. Do I need some
additional module or setting for spamassasin to work properly with NNTP
articles? Are there config options to skip the checks for the expected
email and SMTP data headers? Do I need to somehow inject fake email
headers that pass muster? What am I missing?

Re: testing devel branch with spamc enabled

<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Tue, 26 Dec 2023 10:46:54 +0000
Subject: Re: testing devel branch with spamc enabled
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$WB2w68adi.qK/lqcm9AImO2r698CBY8EZjTrcHFrcSdpnFicC1oIW
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <umdvr9$1d1i9$1@paganini.bofh.team>
Organization: Rocksolid Light
Message-ID: <991088c0ac490a062e2d552d237aaa9e@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|
 by: Retro Guy - Tue, 26 Dec 2023 10:46 UTC

SugarBug wrote:

> I think spamc is marking all articles as spam because they don't
> contain email headers. Maybe I am missing some module for this? Web
> searches return nothing useful about the subject.

Thanks for these test results. Very helpful!

I see why no headers are avail, I can fix that.

The headers that will be added are:
Subject, From, Newsgroups, Message-ID and maybe References

I had removed the above in testing and never put it back.

Spamassassin WILL need some checks removed due to differences between email and news, like NO_RECEIVED, etc. There are quite a few.

> Upon further inspection it appears that all messages are being flagged
> as spam. In spool/log/spam.log the file is huge and has all of my and
> your most recent testing messages in it. The entries look like this,
> with some data truncated for brevity:

It's actually good news. Formatting the message properly (putting the headers back in), and disabling some Spamassassin rules should do the rest.

> Also, when I post via the local server, the fake blacklisted address is
> not marked as spam by rslight. When I post from it the articles show up
> immediately in the group. It is blacklisted in spamc config and in
> banned_names.conf. But if I post to rocksolid.test, then wipe the
> spool, then sync, it is flagged as spam when pulled from remote.

> Also, on prior and subsequent runs banned_names.conf never seemed to
> work, either with or without spamc enabled.

I haven't changed anything with banned_name.conf. but this file is ONLY used when importing articles, not when posting them (as you have noticed). That's the way it's written, it's not broken if that's what it's doing.

I have moved away from using this file and do everything in Spamassassin.

> I did the same kind of tests with tradspool instead of database = '1'.
> The result are the same. All incoming articles are flagged as spam. All
> articles whatever are flagged as spam. All articles are successfully
> prevented from being written to the spool articles directory.

I've been putting a lot of effort into making sure tradspool continues to work when I make changes. Glad it's still working the same either way.

> All points to rslight getting the X-Spam headers back from spamc and
> acting upon them since they are YES for all articles. Do I need some
> additional module or setting for spamassasin to work properly with NNTP
> articles? Are there config options to skip the checks for the expected
> email and SMTP data headers? Do I need to somehow inject fake email
> headers that pass muster? What am I missing?

Yes, the error is mine. I will fix that today and send a commit. I'll let you know when it's done.

Thanks again!

--
Retro Guy

Re: testing devel branch with spamc enabled

<c7825d0d323700fb2efa3574638c3c8b@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Tue, 26 Dec 2023 16:07:04 +0000
Subject: Re: testing devel branch with spamc enabled
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$b6ZlBJAgfF9VncsdL8CzxuH2Qgcnk2zqkqveQXuIaIsQ5x0vdmLeu
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
Organization: Rocksolid Light
Message-ID: <c7825d0d323700fb2efa3574638c3c8b@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|
 by: Retro Guy - Tue, 26 Dec 2023 16:07 UTC

Retro Guy wrote:

> SugarBug wrote:

>> I think spamc is marking all articles as spam because they don't
>> contain email headers. Maybe I am missing some module for this? Web
>> searches return nothing useful about the subject.

<snip>

> Yes, the error is mine. I will fix that today and send a commit. I'll let you know when it's done.

I have made a lot of changes to the code. Including improved logging for troubleshooting.

Spam should be checked no matter how it's posted, newwreader, web interface or spoolnews.

Spam log file only contains SPAM or HAM listing of message-id. Spam itself is saved in $spooldir/spam

Some changes to spoolnews to fix a bug spooling some mailing lists to fix References.

I have just pushed commits to gitlab. Please don't forget to restart nntp server.

After that, let me know how badly I broke everything.

--
Retro Guy

Re: testing devel branch with spamc enabled

<umevfn$1eeo6$1@paganini.bofh.team>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Tue, 26 Dec 2023 10:38:38 -0600
Organization: To protect and to server
Message-ID: <umevfn$1eeo6$1@paganini.bofh.team>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Dec 2023 16:37:12 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1522438"; posting-host="PucJEPotjJyynPGC85C0DQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:YevmI8D3T6bwJWbpw8dQUS204jKkA6KsigbxEA2OPwc=
X-Notice: Filtered by postfilter v. 0.9.3
 by: SugarBug - Tue, 26 Dec 2023 16:38 UTC

On Tue, 26 Dec 2023 10:46:54 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> I haven't changed anything with banned_name.conf. but this file is
> ONLY used when importing articles, not when posting them (as you have
> noticed). That's the way it's written, it's not broken if that's what
> it's doing.

It's not working for either case. Nothing placed in banned_names.conf
is blocked either locally or pulled in from remote.

I have been placing the email address on one line by itself and name on
another line by itself, and another line combined like this:

Black Hole <black@hole.url>
black@hole.url
Black Hole

What is the exact format for data to be placed in this file? Is it case
sensitive? (I've been ensuring the case of entries matches the target
messages).

Re: testing devel branch with spamc enabled

<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: testing devel branch with spamc enabled
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team>
Date: Tue, 26 Dec 2023 10:00:16 -0700
Message-ID: <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
 by: Retro Guy - Tue, 26 Dec 2023 17:00 UTC

On Tue, 26 Dec 2023 10:38:38 -0600, SugarBug wrote:

> On Tue, 26 Dec 2023 10:46:54 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> I haven't changed anything with banned_name.conf. but this file is
>> ONLY used when importing articles, not when posting them (as you have
>> noticed). That's the way it's written, it's not broken if that's what
>> it's doing.
>
> It's not working for either case. Nothing placed in banned_names.conf
> is blocked either locally or pulled in from remote.
>
> I have been placing the email address on one line by itself and name on
> another line by itself, and another line combined like this:
>
> Black Hole <black@hole.url>
> black@hole.url
> Black Hole
>
> What is the exact format for data to be placed in this file? Is it case
> sensitive? (I've been ensuring the case of entries matches the target
> messages).

Try $config_dir/header_filters.conf

This should work with the following headers:
'Message-ID'
'Subject'
'From'
'Path'

The format should be the header AND header content, and is a regex:

From: /black@hole\.url/
From: /Black Hole \<black@hole\.url\>/
From: /Black Hole/

Subject: /Buy Illegal Crap Today/

Re: testing devel branch with spamc enabled

<umf1gr$1j61b$1@paganini.bofh.team>

  copy mid

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

  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: testing devel branch with spamc enabled
Date: Tue, 26 Dec 2023 11:13:25 -0600
Organization: To protect and to server
Message-ID: <umf1gr$1j61b$1@paganini.bofh.team>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<c7825d0d323700fb2efa3574638c3c8b@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Dec 2023 17:11:56 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1677355"; posting-host="NTLM21QeARvwErcfh62Gvw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:N7SZs01RXW0jCj267ZCZCI1AOjITLscoo2YYxd5g5Ps=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwMzo0MDAwOjFkOmI3YTo3ODJmOjE3ZmY6ZmVmMDphNzA4 --
 by: SugarBug - Tue, 26 Dec 2023 17:13 UTC

On Tue, 26 Dec 2023 16:07:04 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> I have just pushed commits to gitlab. Please don't forget to restart
> nntp server.
>
> After that, let me know how badly I broke everything.

If you don't break something there is no future fun!

Re: testing devel branch with spamc enabled

<c1c29d3eaafc96fa2e43a5842a9359ab@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Wed, 27 Dec 2023 10:52:50 +0000
Subject: Re: testing devel branch with spamc enabled
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$PgCDfgx72eZFlqTNIZX9WuuMWKub7QpD1Ykn5bzj5JkuDEIpgp5oy
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <c7825d0d323700fb2efa3574638c3c8b@news.novabbs.org> <umf1gr$1j61b$1@paganini.bofh.team>
Organization: Rocksolid Light
Message-ID: <c1c29d3eaafc96fa2e43a5842a9359ab@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|
 by: Retro Guy - Wed, 27 Dec 2023 10:52 UTC

SugarBug wrote:

> On Tue, 26 Dec 2023 16:07:04 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> I have just pushed commits to gitlab. Please don't forget to restart
>> nntp server.
>>
>> After that, let me know how badly I broke everything.

> If you don't break something there is no future fun!

True! I do enjoy the challenge of fixing stuff I think I can't fix :)

Anyway, I now have spoolnews.php getting the correct 'last pulled' article number from saved data, so we don't have all these 'Duplicate' messages in the logs. Took me quite a while to figure out what was going on, but it gives me a chance to improve how it works.

I'll have some commits later today.

--
Retro Guy

Re: testing devel branch with spamc enabled

<e30e0d72288c085e6d62fbcce8daa081@rocksolidbbs.com>

  copy mid

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

  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: testing devel branch with spamc enabled
Date: Wed, 27 Dec 2023 15:27:55 +0000
Organization: RetroBBS
Message-ID: <e30e0d72288c085e6d62fbcce8daa081@rocksolidbbs.com>
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <c7825d0d323700fb2efa3574638c3c8b@news.novabbs.org> <umf1gr$1j61b$1@paganini.bofh.team> <c1c29d3eaafc96fa2e43a5842a9359ab@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1331300"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$Yr7RtsvVdo2qjfH9BOjJ9u8uTMEXTu4ruJBRkXmN5CR/2RxffWvdm
X-Spam-Checker-Version: SpamAssassin 4.0.0
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-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
 by: Retro Guy - Wed, 27 Dec 2023 15:27 UTC

Retro Guy wrote:

> SugarBug wrote:

>> On Tue, 26 Dec 2023 16:07:04 +0000
>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>>> I have just pushed commits to gitlab. Please don't forget to restart
>>> nntp server.
>>>
>>> After that, let me know how badly I broke everything.

>> If you don't break something there is no future fun!

> True! I do enjoy the challenge of fixing stuff I think I can't fix :)

> Anyway, I now have spoolnews.php getting the correct 'last pulled' article number from saved data, so we don't have all these 'Duplicate' messages in the logs. Took me quite a while to figure out what was going on, but it gives me a chance to improve how it works.

> I'll have some commits later today.

Commits are in. My sites are all running the latest and seem ok. I've been monitoring closely.

--
Retro Guy

Re: testing devel branch with spamc enabled

<20231227165327.22d00aa3@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Wed, 27 Dec 2023 16:53:27 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231227165327.22d00aa3@dev>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<umevfn$1eeo6$1@paganini.bofh.team>
<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1369893"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Wed, 27 Dec 2023 22:53 UTC

I pulled from 'devel' branch commit #
8ecdbdae6f87cad7d9458e198540c2930b0cb679.

I wiped spool and upgraded.

I ran a cron hammer with spamc enabled.

No messages sync and no spam log appears.

There is no spamc activity in syslog.

There is not rslight spam logfile in spool/log.

I switched off the spamc option in rslight.inc.php.

I wiped and ran cronhammer again several times.

Nothing happens. The cron exits quickly and no messages are pulled.

I tried pulling from news.novabbs.org and news.i2pn2.org.

nntp and nntp-ssl socket daemons are running and I can connect to them
via telnet.

I rebooted the server.

I wiped rslight install completely.

I reinstalled from scratch.

Same results.

So at this point, there is no message synchronization, neither with
spamc enabled, nor with spamc disabled.

End of test.

--
CRYP7010G3R | Life is a numbers game. | Heist a hidden jackpot.
<69cd23ef630708e7ad98f2bfc2a159c9$1@sybershock.com>
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: testing devel branch with spamc enabled

<nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: testing devel branch with spamc enabled
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev>
Date: Wed, 27 Dec 2023 17:53:21 -0700
Message-ID: <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>
 by: Retro Guy - Thu, 28 Dec 2023 00:53 UTC

On Wed, 27 Dec 2023 16:53:27 -0600, SugarBug wrote:

> I pulled from 'devel' branch commit #
> 8ecdbdae6f87cad7d9458e198540c2930b0cb679.
>
> I wiped spool and upgraded.
>
> I ran a cron hammer with spamc enabled.
>
> No messages sync and no spam log appears.
>
> There is no spamc activity in syslog.
>
> There is not rslight spam logfile in spool/log.
>
> I switched off the spamc option in rslight.inc.php.
>
> I wiped and ran cronhammer again several times.
>
> Nothing happens. The cron exits quickly and no messages are pulled.
>
> I tried pulling from news.novabbs.org and news.i2pn2.org.
>
> nntp and nntp-ssl socket daemons are running and I can connect to them
> via telnet.
>
> I rebooted the server.
>
> I wiped rslight install completely.
>
> I reinstalled from scratch.
>
> Same results.
>
> So at this point, there is no message synchronization, neither with
> spamc enabled, nor with spamc disabled.
>
> End of test.

Please grab the latest spoolnews.php. It had a typo, which I've fixed, but
it didn't cause any trouble on my servers.

I'm going to do a clean install in the morning and see what happens. Right
now the latest commits (not including the fix I just mentioned) are running
on all my sites and fine.

My plan is a fresh Debian Bookworm install, then a fresh rslight install.
All software will be from Debian packages. I'll let you know the results.

Re: testing devel branch with spamc enabled

<20231227212940.78462a7d@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Wed, 27 Dec 2023 21:29:40 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231227212940.78462a7d@dev>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<umevfn$1eeo6$1@paganini.bofh.team>
<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
<20231227165327.22d00aa3@dev>
<nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: i2pn2.org;
logging-data="1389956"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 28 Dec 2023 03:29 UTC

On Wed, 27 Dec 2023 17:53:21 -0700
Retro Guy <retroguy@novabbs.org> wrote:

> > So at this point, there is no message synchronization, neither with
> > spamc enabled, nor with spamc disabled.
> >
> > End of test.
>
> Please grab the latest spoolnews.php. It had a typo, which I've
> fixed, but it didn't cause any trouble on my servers.
>
> I'm going to do a clean install in the morning and see what happens.
> Right now the latest commits (not including the fix I just mentioned)
> are running on all my sites and fine.
>
> My plan is a fresh Debian Bookworm install, then a fresh rslight
> install. All software will be from Debian packages. I'll let you know
> the results.

I pulled the latest 'devel' branch and did a clean install on Bookworm.

The messages are syncronizing.

The blacklisted addresses are now being caught by spamc and rslight.

None of the spam is making it through.

The good messages are going into spool.

File spool/log/spam.log appears to match /var/log/syslog spamd hits.

At this point rslight and spamc seem to be working correctly.

Git commit 2bbc019daf473b308a187007a7579e1734b68302 is working.

I will keep testing in fits and starts and let you know if I am able to
break anything.

Break all the things!

--
▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄ ▄ ▄ ▄▄▄ https://sybershock.com
▀▄ █ █ █ █ █ █▄▀ █▄▀ █ █ █ alt.sources.crypto
▄▄█ █▄█ █▄█ █▀█ █ █ █▄▀ █▄█ █▄█ @firefly@neon.nightbulb.net

Re: testing devel branch with spamc enabled

<1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: testing devel branch with spamc enabled
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev> <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net> <20231227212940.78462a7d@dev>
Date: Thu, 28 Dec 2023 03:27:38 -0700
Message-ID: <1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>
 by: Retro Guy - Thu, 28 Dec 2023 10:27 UTC

On Wed, 27 Dec 2023 21:29:40 -0600, SugarBug wrote:

> On Wed, 27 Dec 2023 17:53:21 -0700
> Retro Guy <retroguy@novabbs.org> wrote:
>
>>> So at this point, there is no message synchronization, neither with
>>> spamc enabled, nor with spamc disabled.
>>>
>>> End of test.
>>
>> Please grab the latest spoolnews.php. It had a typo, which I've
>> fixed, but it didn't cause any trouble on my servers.
>>
>> I'm going to do a clean install in the morning and see what happens.
>> Right now the latest commits (not including the fix I just mentioned)
>> are running on all my sites and fine.
>>
>> My plan is a fresh Debian Bookworm install, then a fresh rslight
>> install. All software will be from Debian packages. I'll let you know
>> the results.
>
> I pulled the latest 'devel' branch and did a clean install on Bookworm.
>
> The messages are syncronizing.
>
> The blacklisted addresses are now being caught by spamc and rslight.
>
> None of the spam is making it through.
>
> The good messages are going into spool.
>
> File spool/log/spam.log appears to match /var/log/syslog spamd hits.
>
> At this point rslight and spamc seem to be working correctly.
>
> Git commit 2bbc019daf473b308a187007a7579e1734b68302 is working.
>
> I will keep testing in fits and starts and let you know if I am able to
> break anything.
>
> Break all the things!

Wow, I woke up to good news today! Thanks for testing.

Re: testing devel branch with spamc enabled

<1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Sat, 30 Dec 2023 13:12:19 +0000
Subject: Re: testing devel branch with spamc enabled
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$CSxg8EFk.aOIoJDlFU1ze.z32JLbgRqw1KJx2jT59N3aIUJ.PnZDi
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev> <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net> <20231227212940.78462a7d@dev> <1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>
Organization: Rocksolid Light
Message-ID: <1c6d830fdb4d0e38f1a3a6766cdbbc40@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|
 by: Retro Guy - Sat, 30 Dec 2023 13:12 UTC

Retro Guy wrote:

> On Wed, 27 Dec 2023 21:29:40 -0600, SugarBug wrote:

>> On Wed, 27 Dec 2023 17:53:21 -0700
>> Retro Guy <retroguy@novabbs.org> wrote:
>>
>>>> So at this point, there is no message synchronization, neither with
>>>> spamc enabled, nor with spamc disabled.
>>>>
>>>> End of test.
>>>
>>> Please grab the latest spoolnews.php. It had a typo, which I've
>>> fixed, but it didn't cause any trouble on my servers.
>>>
>>> I'm going to do a clean install in the morning and see what happens.
>>> Right now the latest commits (not including the fix I just mentioned)
>>> are running on all my sites and fine.
>>>
>>> My plan is a fresh Debian Bookworm install, then a fresh rslight
>>> install. All software will be from Debian packages. I'll let you know
>>> the results.
>>
>> I pulled the latest 'devel' branch and did a clean install on Bookworm.
>>
>> The messages are syncronizing.
>>
>> The blacklisted addresses are now being caught by spamc and rslight.
>>
>> None of the spam is making it through.
>>
>> The good messages are going into spool.
>>
>> File spool/log/spam.log appears to match /var/log/syslog spamd hits.
>>
>> At this point rslight and spamc seem to be working correctly.
>>
>> Git commit 2bbc019daf473b308a187007a7579e1734b68302 is working.
>>
>> I will keep testing in fits and starts and let you know if I am able to
>> break anything.
>>
>> Break all the things!

> Wow, I woke up to good news today! Thanks for testing.

Quick question: Would it be useful to log the message-id in spam.log?

If so, for ham and spam? Just spam?

Just looking for an opinion.

--
Retro Guy

Re: testing devel branch with spamc enabled

<20231230152636.571cd7b6@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Sat, 30 Dec 2023 15:26:36 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231230152636.571cd7b6@dev>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<umevfn$1eeo6$1@paganini.bofh.team>
<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
<20231227165327.22d00aa3@dev>
<nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>
<20231227212940.78462a7d@dev>
<1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>
<1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1704188"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Sat, 30 Dec 2023 21:26 UTC

On Sat, 30 Dec 2023 13:12:19 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Quick question: Would it be useful to log the message-id in spam.log?
>
> If so, for ham and spam? Just spam?

Something with a vector flag like this for spam, maybe:

<message-id> <spam> <flag:spamc>
<message-id> <spam> <flag:banned_names>
<message-id> <spam> <flag:header_filters>

And for good ham messages:

<message-id> <ham> <flag:ham-yum-yum>

Or good ham no flag if you really want to save storage in the log:

<message-id> <ham>
<message-id> <ham> <flag:null>

Logging both with category or rejection vector flag would have the
benefit of enabling comparison with syslog and spamd log. It would
simplify deducing if config needs adjusted in header_filters
vs. spamc, etc., and catching false negatives for fine tuning spamc
learner to get the shifty ones.

Having the flag on the same line as message-id with a separator space
or char would be spiffy. Since space should not exist in a message-id I
just opted for that. You could use tab separators for neatness in
viewers, or calculate and pad spaces.

--
4477@king.bee
That which is not good for the swarm,
neither is it good for the bee. ~ Marcus Aurelius

Re: testing devel branch with spamc enabled

<20231231014818.7026c747@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Sun, 31 Dec 2023 01:48:18 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231231014818.7026c747@dev>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<umevfn$1eeo6$1@paganini.bofh.team>
<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
<20231227165327.22d00aa3@dev>
<nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>
<20231227212940.78462a7d@dev>
<1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>
<1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org>
<20231230152636.571cd7b6@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1750810"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Sun, 31 Dec 2023 07:48 UTC

On Sat, 30 Dec 2023 15:26:36 -0600
SugarBug <3883@sugar.bug> wrote:

> On Sat, 30 Dec 2023 13:12:19 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
> > Quick question: Would it be useful to log the message-id in
> > spam.log?
> >
> > If so, for ham and spam? Just spam?
>
> Something with a vector flag like this for spam, maybe:
>
> <message-id> <spam> <flag:spamc>
> <message-id> <spam> <flag:banned_names>
> <message-id> <spam> <flag:header_filters>
>
> And for good ham messages:
>
> <message-id> <ham> <flag:ham-yum-yum>
>
> Or good ham no flag if you really want to save storage in the log:
>
> <message-id> <ham>
> <message-id> <ham> <flag:null>
>
> Logging both with category or rejection vector flag would have the
> benefit of enabling comparison with syslog and spamd log. It would
> simplify deducing if config needs adjusted in header_filters
> vs. spamc, etc., and catching false negatives for fine tuning spamc
> learner to get the shifty ones.
>
> Having the flag on the same line as message-id with a separator space
> or char would be spiffy. Since space should not exist in a message-id
> I just opted for that. You could use tab separators for neatness in
> viewers, or calculate and pad spaces.

It just occurred to me that you could have separate files such as
spam.log and ham.log so only spam.log would need vector flags ensuring
a uniform data table format.

--
CRYP7010G3R | ciphertag | cryptologer army emblem | hushtag | U+2A69
<0068ef508d0d20e76758404e909791e9$1@sybershock.com>
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: testing devel branch with spamc enabled

<0e727d16bff293f2c3e851502390020a$1@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <0e727d16bff293f2c3e851502390020a$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: testing devel branch with spamc enabled
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev> <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net> <20231227212940.78462a7d@dev> <1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net> <1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org> <20231230152636.571cd7b6@dev>
Date: Sun, 31 Dec 2023 05:46:48 -0700
 by: Retro Guy - Sun, 31 Dec 2023 12:46 UTC

On Sat, 30 Dec 2023 15:26:36 -0600, SugarBug wrote:

> On Sat, 30 Dec 2023 13:12:19 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> Quick question: Would it be useful to log the message-id in spam.log?
>>
>> If so, for ham and spam? Just spam?
>
> Something with a vector flag like this for spam, maybe:
>
> <message-id> <spam> <flag:spamc>
> <message-id> <spam> <flag:banned_names>
> <message-id> <spam> <flag:header_filters>
>
> And for good ham messages:
>
> <message-id> <ham> <flag:ham-yum-yum>
>
> Or good ham no flag if you really want to save storage in the log:
>
> <message-id> <ham>
> <message-id> <ham> <flag:null>
>
> Logging both with category or rejection vector flag would have the
> benefit of enabling comparison with syslog and spamd log. It would
> simplify deducing if config needs adjusted in header_filters
> vs. spamc, etc., and catching false negatives for fine tuning spamc
> learner to get the shifty ones.
>
> Having the flag on the same line as message-id with a separator space
> or char would be spiffy. Since space should not exist in a message-id I
> just opted for that. You could use tab separators for neatness in
> viewers, or calculate and pad spaces.

What I have now is:
Dec 31 12:10:47 spamc: HAM
<560aa5be14421dc8cd1927534d9804af@dizum.com> alt.test Echolot
Pinger <echolot@pinger.invalid>
Dec 31 12:10:49 spamc: HAM <wIAiN.38570$woU1.26283@fx13.ams1>
eternal-september.support,alt.test Nospam <-invalid@mail.com>
Dec 31 12:10:50 spamc: HAM <unBiN.27244$c8T6.2555@fx05.ams1>
eternal-september.support,alt.test Nospam <-invalid@mail.com>
Dec 31 12:10:52 spamc: HAM
<c4a7e5db7294d974a9e605be582ab3f4@dizum.com> alt.test Nomen
Nescio <nobody@dizum.com>
Dec 31 12:10:53 spamc: HAM <RFvb5PASXtilFA9w@salmiron.com> alt.test
"Nicholas D. Richards" <nicholas@salmiron.com>

Each field after 'spamc:' is TAB separated, including right after 'spamc'.

The banned filters would have the filter name in place of 'spamc' and spam
would say SPAM instead of HAM.

It this what you have in mine?

Also, I'm working on the actual header_filters code right now, so the above
change is not yet in a commit.

Re: testing devel branch with spamc enabled

<924ab00a09a9af4c050e82352f2e3d7c$1@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <924ab00a09a9af4c050e82352f2e3d7c$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: testing devel branch with spamc enabled
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev> <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net> <20231227212940.78462a7d@dev> <1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net> <1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org> <20231230152636.571cd7b6@dev> <0e727d16bff293f2c3e851502390020a$1@news.novabbs.org>
Date: Sun, 31 Dec 2023 06:04:16 -0700
 by: Retro Guy - Sun, 31 Dec 2023 13:04 UTC

On Sun, 31 Dec 2023 05:46:48 -0700, Retro Guy wrote:

> On Sat, 30 Dec 2023 15:26:36 -0600, SugarBug wrote:
>
>> On Sat, 30 Dec 2023 13:12:19 +0000
>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>
>>> Quick question: Would it be useful to log the message-id in spam.log?
>>>
>>> If so, for ham and spam? Just spam?
>>
>> Something with a vector flag like this for spam, maybe:
>>
>> <message-id> <spam> <flag:spamc>
>> <message-id> <spam> <flag:banned_names>
>> <message-id> <spam> <flag:header_filters>
>>
>> And for good ham messages:
>>
>> <message-id> <ham> <flag:ham-yum-yum>
>>
>> Or good ham no flag if you really want to save storage in the log:
>>
>> <message-id> <ham>
>> <message-id> <ham> <flag:null>
>>
>> Logging both with category or rejection vector flag would have the
>> benefit of enabling comparison with syslog and spamd log. It would
>> simplify deducing if config needs adjusted in header_filters
>> vs. spamc, etc., and catching false negatives for fine tuning spamc
>> learner to get the shifty ones.
>>
>> Having the flag on the same line as message-id with a separator space
>> or char would be spiffy. Since space should not exist in a message-id I
>> just opted for that. You could use tab separators for neatness in
>> viewers, or calculate and pad spaces.
>
> What I have now is:
> Dec 31 12:10:47 spamc: HAM
> <560aa5be14421dc8cd1927534d9804af@dizum.com> alt.test Echolot
> Pinger <echolot@pinger.invalid>
> Dec 31 12:10:49 spamc: HAM <wIAiN.38570$woU1.26283@fx13.ams1>
> eternal-september.support,alt.test Nospam <-invalid@mail.com>
> Dec 31 12:10:50 spamc: HAM <unBiN.27244$c8T6.2555@fx05.ams1>
> eternal-september.support,alt.test Nospam <-invalid@mail.com>
> Dec 31 12:10:52 spamc: HAM
> <c4a7e5db7294d974a9e605be582ab3f4@dizum.com> alt.test Nomen
> Nescio <nobody@dizum.com>
> Dec 31 12:10:53 spamc: HAM <RFvb5PASXtilFA9w@salmiron.com> alt.test
> "Nicholas D. Richards" <nicholas@salmiron.com>
>
> Each field after 'spamc:' is TAB separated, including right after 'spamc'.
>
> The banned filters would have the filter name in place of 'spamc' and spam
> would say SPAM instead of HAM.
>
> It this what you have in mine?
>
> Also, I'm working on the actual header_filters code right now, so the above
> change is not yet in a commit.

Here's a sample with some header_filter.conf matches:
Dec 31 13:00:23 spamc: HAM
<ec3f3b6ee814202f9ae756b52ba279fc@msgid.frell.theremailer.net> alt.test
Fritz Wuehler <fritz@spamexpire-202312.rodent.frell.theremailer.net>
Dec 31 13:00:24 from_filter : SPAM
<b6cfb7ce8223e40eb447abd7d2135620@dizum.com> alt.test Echolot
Pinger <echolot@pinger.invalid>
Dec 31 13:00:24 from_filter : SPAM
<cfda59cf1974369a13419b69d741c47e@msgid.frell.theremailer.net> alt.test
Echolot Pinger <echolot@pinger.invalid>
Dec 31 13:00:24 spamc: HAM
<d0cfc1c0e1d64b38af0bedaf35448510@msgid.frell.theremailer.net> alt.test
Fritz Wuehler <fritz@spamexpire-202312.rodent.frell.theremailer.net>

That's obviously from setting Echolot Pinger in filters to test.

So, contrary to what I may have said recently, header_filters.conf format
is ONLY ONE LINE per header. All regex in one.

From: /Echolot Pinger|sPaMmEr DeLuXe|homer\.simpson/

I'm testing a bit more and will let you know when I push to gitlab.

Re: testing devel branch with spamc enabled

<20231231074408.27f7623a@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: testing devel branch with spamc enabled
Date: Sun, 31 Dec 2023 07:44:08 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231231074408.27f7623a@dev>
References: <umdvr9$1d1i9$1@paganini.bofh.team>
<991088c0ac490a062e2d552d237aaa9e@news.novabbs.org>
<umevfn$1eeo6$1@paganini.bofh.team>
<1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net>
<20231227165327.22d00aa3@dev>
<nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net>
<20231227212940.78462a7d@dev>
<1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net>
<1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org>
<20231230152636.571cd7b6@dev>
<0e727d16bff293f2c3e851502390020a$1@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1784040"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Sun, 31 Dec 2023 13:44 UTC

On Sun, 31 Dec 2023 05:46:48 -0700
Retro Guy <retroguy@novabbs.org> wrote:

> On Sat, 30 Dec 2023 15:26:36 -0600, SugarBug wrote:
>
> > On Sat, 30 Dec 2023 13:12:19 +0000
> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
> >
> >> Quick question: Would it be useful to log the message-id in
> >> spam.log?
> >>
> >> If so, for ham and spam? Just spam?
> >
> > Something with a vector flag like this for spam, maybe:
> >
> > <message-id> <spam> <flag:spamc>
> > <message-id> <spam> <flag:banned_names>
> > <message-id> <spam> <flag:header_filters>
> >
> > And for good ham messages:
> >
> > <message-id> <ham> <flag:ham-yum-yum>
> >
> > Or good ham no flag if you really want to save storage in the log:
> >
> > <message-id> <ham>
> > <message-id> <ham> <flag:null>
> >
> > Logging both with category or rejection vector flag would have the
> > benefit of enabling comparison with syslog and spamd log. It would
> > simplify deducing if config needs adjusted in header_filters
> > vs. spamc, etc., and catching false negatives for fine tuning spamc
> > learner to get the shifty ones.
> >
> > Having the flag on the same line as message-id with a separator
> > space or char would be spiffy. Since space should not exist in a
> > message-id I just opted for that. You could use tab separators for
> > neatness in viewers, or calculate and pad spaces.
>
> What I have now is:
> Dec 31 12:10:47 spamc: HAM
> <560aa5be14421dc8cd1927534d9804af@dizum.com> alt.test
> Echolot Pinger <echolot@pinger.invalid>
> Dec 31 12:10:49 spamc: HAM <wIAiN.38570$woU1.26283@fx13.ams1>
> eternal-september.support,alt.test Nospam <-invalid@mail.com>
> Dec 31 12:10:50 spamc: HAM <unBiN.27244$c8T6.2555@fx05.ams1>
> eternal-september.support,alt.test Nospam <-invalid@mail.com>
> Dec 31 12:10:52 spamc: HAM
> <c4a7e5db7294d974a9e605be582ab3f4@dizum.com> alt.test Nomen
> Nescio <nobody@dizum.com>
> Dec 31 12:10:53 spamc: HAM <RFvb5PASXtilFA9w@salmiron.com>
> alt.test "Nicholas D. Richards" <nicholas@salmiron.com>
>
> Each field after 'spamc:' is TAB separated, including right after
> 'spamc'.
>
> The banned filters would have the filter name in place of 'spamc' and
> spam would say SPAM instead of HAM.
>
> It this what you have in mine?

Yes, it is, and better. Now you're a systemd and spamassassin engineer.
Insert Wayne's World chant here. ;)
> Also, I'm working on the actual header_filters code right now, so the
> above change is not yet in a commit.

I just found this as I was readying to sign off and go saw logs (pun).

The message formatting jumbled the example you pasted. I reformatted it
in my editor to view. Does each line begin with the date? If that is the
case then here is what I am seeing. Correct me if I am wrong:

<date> <spam_engine> : <spam/ham> <newsgroups> <from>

It looks spiffy if my assumption of the date beginning each line
entry is correct. Also your version is more in keeping with log format
with the <date> first in line.

Also, I think it is possible for newsreaders to insert tabs and newlines
into subject, from and maybe some other headers. Perhaps that needs to
be accounted for with an escape or replacement or escape+square
bracketing when flushing to logs? I don't know how to do that with PHP
so I can't really advise what would be a good way to approach it.

I think you made the right choice placing the <from> at the end of the
line, since that is where badchars can exist. There is even a
newsreader that inserts ^M bytes into subjects. I think you
could just use spaces or colons or square brackets for field marking of
the first items, since the server should never accept them with those
chars (I think?). Then maybe just snarf the rest of the line as <from>.

I have serious all-nighter brain fog right now and I will check in
tomorrow. I don't want to try giving any more opinions as blurred up as
I am. I hope some others with good PHP experience chime in with ideas
before I come back.

--
1_|1_|4_|4_ 3883@sugar.bug
3_|8_|8_|3_ https://sybershock.com
7_|7_|6_|6_ news://alt.sources.crypto
4_|4_|7_|7_ #CipherTag #WaffleTag #Cryptologer

Re: testing devel branch with spamc enabled

<98eebe96d43193106ff2c6414a639c9a@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Mon, 1 Jan 2024 15:49:13 +0000
Subject: Re: testing devel branch with spamc enabled
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$Yqk7D5kQRGiKl/.XjRaZSuBe7QbWY2yhtGd1RAC5H4gaicp2PMwzq
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <umdvr9$1d1i9$1@paganini.bofh.team> <991088c0ac490a062e2d552d237aaa9e@news.novabbs.org> <umevfn$1eeo6$1@paganini.bofh.team> <1mk68gcb4f6tf$.12pg7u6934ohl.dlg@40tude.net> <20231227165327.22d00aa3@dev> <nywyxspciz5u$.bm7iuauasfu4.dlg@40tude.net> <20231227212940.78462a7d@dev> <1u02c2pcmx2zr$.zrv60m1w630h$.dlg@40tude.net> <1c6d830fdb4d0e38f1a3a6766cdbbc40@news.novabbs.org> <20231230152636.571cd7b6@dev> <0e727d16bff293f2c3e851502390020a$1@news.novabbs.org> <20231231074408.27f7623a@dev>
Organization: Rocksolid Light
Message-ID: <98eebe96d43193106ff2c6414a639c9a@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|
 by: Retro Guy - Mon, 1 Jan 2024 15:49 UTC

SugarBug wrote:

> On Sun, 31 Dec 2023 05:46:48 -0700
> Retro Guy <retroguy@novabbs.org> wrote:

>> On Sat, 30 Dec 2023 15:26:36 -0600, SugarBug wrote:
>>
>> > On Sat, 30 Dec 2023 13:12:19 +0000
>> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>> >
>> >> Quick question: Would it be useful to log the message-id in
>> >> spam.log?
>> >>
>> >> If so, for ham and spam? Just spam?
>> >
>> > Something with a vector flag like this for spam, maybe:
>> >
>> > <message-id> <spam> <flag:spamc>
>> > <message-id> <spam> <flag:banned_names>
>> > <message-id> <spam> <flag:header_filters>
>> >
>> > And for good ham messages:
>> >
>> > <message-id> <ham> <flag:ham-yum-yum>
>> >
>> > Or good ham no flag if you really want to save storage in the log:
>> >
>> > <message-id> <ham>
>> > <message-id> <ham> <flag:null>
>> >
>> > Logging both with category or rejection vector flag would have the
>> > benefit of enabling comparison with syslog and spamd log. It would
>> > simplify deducing if config needs adjusted in header_filters
>> > vs. spamc, etc., and catching false negatives for fine tuning spamc
>> > learner to get the shifty ones.
>> >
>> > Having the flag on the same line as message-id with a separator
>> > space or char would be spiffy. Since space should not exist in a
>> > message-id I just opted for that. You could use tab separators for
>> > neatness in viewers, or calculate and pad spaces.
>>
>> What I have now is:
>> Dec 31 12:10:47 spamc: HAM
>> <560aa5be14421dc8cd1927534d9804af@dizum.com> alt.test
>> Echolot Pinger <echolot@pinger.invalid>
>> Dec 31 12:10:49 spamc: HAM <wIAiN.38570$woU1.26283@fx13.ams1>
>> eternal-september.support,alt.test Nospam <-invalid@mail.com>
>> Dec 31 12:10:50 spamc: HAM <unBiN.27244$c8T6.2555@fx05.ams1>
>> eternal-september.support,alt.test Nospam <-invalid@mail.com>
>> Dec 31 12:10:52 spamc: HAM
>> <c4a7e5db7294d974a9e605be582ab3f4@dizum.com> alt.test Nomen
>> Nescio <nobody@dizum.com>
>> Dec 31 12:10:53 spamc: HAM <RFvb5PASXtilFA9w@salmiron.com>
>> alt.test "Nicholas D. Richards" <nicholas@salmiron.com>
>>
>> Each field after 'spamc:' is TAB separated, including right after
>> 'spamc'.
>>
>> The banned filters would have the filter name in place of 'spamc' and
>> spam would say SPAM instead of HAM.
>>
>> It this what you have in mine?

> Yes, it is, and better. Now you're a systemd and spamassassin engineer.
> Insert Wayne's World chant here. ;)

>> Also, I'm working on the actual header_filters code right now, so the
>> above change is not yet in a commit.

> I just found this as I was readying to sign off and go saw logs (pun).

> The message formatting jumbled the example you pasted. I reformatted it
> in my editor to view. Does each line begin with the date? If that is the
> case then here is what I am seeing. Correct me if I am wrong:

> <date> <spam_engine> : <spam/ham> <newsgroups> <from>

<date> <spam_engine>:TAB<spam/ham>TAB<message-id>TAB<newsgroups>TAB<from>

> It looks spiffy if my assumption of the date beginning each line
> entry is correct. Also your version is more in keeping with log format
> with the <date> first in line.

I'm trying to work toward a standard, and make the files easy to read if you're already used to log files.

> Also, I think it is possible for newsreaders to insert tabs and newlines
> into subject, from and maybe some other headers. Perhaps that needs to
> be accounted for with an escape or replacement or escape+square
> bracketing when flushing to logs? I don't know how to do that with PHP
> so I can't really advise what would be a good way to approach it.

It's my plan to clean up the header strings (convert tabs to spaces...)
before logging.

--
Retro Guy


computers / Rocksolid Nodes Help / Re: testing devel branch with spamc enabled

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor