[pmg-devel] [PATCH pmg-api 0/2] Add scores of SpamAssassin rules to pmg-smtp-filter logs
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Feb 8 11:11:48 CET 2019
Having the Scores of the individual matching rules in the log gives the admin
(and our support) to gain insight into SpamAssassins performance, instead of
having to get and analyze the headers added to each mail, which can be
problematic from a privacy (complete mail vs. logline) and technical (getting
the mail in a decent format, not having another mail-server mangle PMGs headers)
point of view.
The first patch simply adds the logging.
The second one is added as RFC - it fixes the precision of each rule score to
three decimal places. A quick glance in a plain PMG setup indicates that scores
have at most 3 decimal places anyways, but it is possible to manually add one
with a higher number of digits. Additionally the AWL scores might have more
decimal places (did not check in the code). Unless someone has a use-case where
it might end up logging hundereds of digits I would probably just skip the
second patch.
Stoiko Ivanov (2):
add rule's score to pmg-smtp-filter logline
Use fixed width for rule-score logging.
PMG/RuleDB/Spam.pm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
--
2.11.0
More information about the pmg-devel
mailing list