https://gitlab.synchro.net/main/sbbs/-/commit/1aed4b1725e3c5072d74b690
Modified Files:
exec/spamlearn.js
Log Message:
spamlearn.js: honor spamblock_exempt.cfg before blocking a spam-trap sender
The block option adds the sender to spamblock.cfg through
system.filter_ip(), and its comments claimed that this honors spamblock_exempt.cfg. It does not: filter_ip() consults only ipfilter_exempt.cfg. The mail server's built-in spam-bait path checks spamblock_exempt.cfg itself before calling filter_ip(), so a host the
sysop had exempted from spamblock.cfg could still be written into it by a spamlearn.js trap hit.
Check the exemption file here the same way, by IP address and by
hostname, and log a NOT BLOCKING line instead. Tested under jsexec against
a scratch ctrl directory: an exempt hostname and an exempt IP address left spamblock.cfg untouched, a non-exempt host was appended as before.
Co-Authored-By: Claude Fable 5.1 <
[email protected]>
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net