Mailing List Archive

shameless plug for -=> mailfromd <=-
I am so happy about recent updates of mailfromd[1] that I wanted to share with you this info.

I have been harassing the Sergey from mailfromd[1] for a while to implement statistics and currently this is working very nicely. Maybe you are still using a prehistoric project like rspamd, where they think they need to create an own graphical interface, and thus you can't do anything yourself.
With mailfromd[1] you can just create any stat you want, and scrape those with prometheus and chart them with grafana[2]

This is can be very useful to test for instance your dns blacklists. I have no idea how the spamassassin development team decides on what blacklists to use and in what order. But now you are easily able to chart the results of all blacklists and easily identify blacklists that have almost no added value (as in duplicates of others).

this is how you use a counter:

openmetrics_incr('greylist','type="urlpass",from="'.domainpart($f).'"')
openmetrics_incr('envempty')
openmetrics_incr('reject','code="5.0.1"')

this is a part of the output:

greylist{type="urlpass",from="u20705374.wl125.sendgrid.net"} 1
greylist{type="urlpass",from="u23624407.wl158.sendgrid.net"} 9
greylist{type="urlpass",from="u2368638.wl139.sendgrid.net"} 2
greylist{type="urlpass",from="u54769.wl.sendgrid.net"} 2
greylist{type="urlpass",from="u7281236.wl237.sendgrid.net"} 1
greylist{type="urlpass",from="u9302991.wl242.sendgrid.net"} 1
# TYPE spf counter
# HELP spf Spf registrations
spf{type="hardfail"} 45
spf{type="neutral"} 1643
spf{type="softfail"} 111
spf{type="valid"} 7974
# TYPE connect counter
# HELP connect Hostname found in the connect database
connect{type="db"} 220
connect{type="ovh"} 31
# TYPE accept counter
# HELP accept Mails accepted
accept 4054
# TYPE reject counter
# HELP reject Mails rejected
reject{code="5.0.1"} 61
reject{code="5.3.0"} 220
reject{code="5.3.1"} 31
reject{code="5.7.1"} 45
reject{code="5.7.2"} 1044
reject{code="5.7.4"} 1
reject{code="5.7.5"} 2


[1]
https://www.gnu.org.ua/software/mailfromd/manual/mailfromd.html

[2]
https://grafana.com/