🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92991

[RELEASE] Postfilter-NG 2026.07.5-rc2 nnrpd filter

#92991
From: Ivo Gandolfo
Date: Tue, 21 Jul 2026 21:45
96 lines
4565 bytes
Hi all,

I am publishing the first public release candidate of Postfilter-NG:

     Postfilter-NG 2026.07.5-rc2

Repository and release:

     https://github.com/infybofh/postfilter-ng

Postfilter-NG is a modernized continuation of the original Postfilter 
Perl hook for INN nnrpd.

The original philosophy remains unchanged: inspect articles submitted by 
users, apply local posting policies, reject abusive or malformed 
content, normalize selected headers, protect private information and 
provide useful logs to the newsmaster.

The implementation, however, has been extensively rewritten and reorganized.

Among the main additions:

- modular Perl code instead of a single large script;
- TOML configuration and configuration fragments;
- separate handling of text and binary hierarchies;
- explicit protection against mixed text/binary crossposts;
- MIME parsing and attachment detection in text groups;
- detection of yEnc, UUencode and large Base64 blocks;
- configurable exemptions for PGP signatures, keys and certificates;
- header replacement, removal and pseudonymization;
- structured syslog logging with symbolic result codes;
- audit mode, quarantine and rejected-article storage;
- SQLite-backed history and audit information;
- last-known-good and emergency configuration fallback;
- command-line administration through postfilterctl;
- safer installation and manual activation;
- extensive documentation, examples and more than one thousand automated 
tests.

Postfilter-NG can distinguish the text and binary worlds from the target 
newsgroups. A binary article posted to a binary hierarchy can therefore 
be accepted, while the same content posted to a text group can be rejected.

It can also remove or pseudonymize sensitive information from 
Injection-Info while preserving local traceability for the server operator.

Performance has improved considerably. In the development benchmark, the 
same workload required approximately:

     Original Postfilter: 1200 ms
     Postfilter-NG:        201 ms

This is about 5.5 times faster, despite the additional checks and 
features. Naturally, real performance depends on configuration, article 
size, enabled modules, logging and storage.

The installer does not automatically replace the active INN posting 
hook. It installs a candidate named:

     filter_nnrpd.pl.ng

The newsmaster can verify the configuration, permissions, database and 
embedded Perl loading before manually activating it as filter_nnrpd.pl.

Please note that Postfilter-NG is an nnrpd posting filter. It is not 
reloaded by:

     ctlinnd reload filter.perl

That command applies to filter_innd.pl. Postfilter-NG is loaded when a 
new nnrpd process starts.

This release candidate has been tested with real posts from Thunderbird 
and raw NNTP sessions, including header transformations, anonymous 
users, pseudonymization, SQLite concurrency and embedded-INN loading.

I still recommend starting in audit mode and checking the results 
against real traffic before enabling rejection in production.

Bug reports, false-positive reports, performance results, unusual MIME 
examples, documentation corrections and pull requests are welcome on GitHub.

The original Postfilter had a useful idea worth preserving.

The old guard at the posting gate is still there — it simply received a 
rather extensive upgrade.


Special thanks to Paolo Amoroso (Aioe) to mantain it until 2018.


Sincerely

-- 
Ivo Gandolfo
Technical Details
Message-ID: <113opai$3rh24$2@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Ivo Gandolfo <usenet@bofh.team>
Newsgroups: news.software.nntp
Subject: [RELEASE] Postfilter-NG 2026.07.5-rc2 nnrpd filter
Date: Tue, 21 Jul 2026 23:45:54 +0200
Organization: To protect and to serve | bofh.team Usenet service
Message-ID: <113opai$3rh24$2@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@bofh.team
Injection-Date: Tue, 21 Jul 2026 21:45:54 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="4047940"; mail-complaints-to="usenet@bofh.team"; posting-host="ca3d23d300506f3f11929e9e5d272e94"; posting-account="e866cb80c0f3476e2caed44762d90a40";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
X-Postfilter: Postfilter-NG 2026.07.5-rc2