MxGuard Sender rules hit_count never increments
← back to forum
bug fixed

Sender rules hit_count never increments

bill@transcom.net (Transcom IS) ยท 2026-05-16 10:30
allow/block rules show 0 hits forever, even though scanner.log clearly shows them firing. Tested with a swaks message matching the gmail.com BLOCK rule and counter stays at 0.

Comments (1)

bill@transcom.net (Transcom IS)admin 2026-05-16 10:45
Scanner was never UPDATEing sender_rules โ€” only logging the match. Added _bump_sender_rule_hit() that increments hit_count and updates last_hit_at on match. Permissions were already in place.
Sign in to add a comment.