Quarantine info in receiver stats?

Sep 17, 2020
316
21
38
Is there a way to get the amount of messages quarantined as well from this:
pmgsh get /statistics/receiver

I did check docs and didn't see it, and I believe if you're trying to show what we have prevented with PMG, quarantine is important data.
 
No this is currently not tracked - additionally the 'spamcount' from the statistics is counting mails which score 5 or above in SpamAssassin - so if you quarantine mails with less than a score of 5 you won't get the information in the statistics.

However you can check the Tracking Center to see how many mails were put in quarantine. (for the number of days you have your mail.logs in /var/log/syslog.*)

I hope this helps!
 
Thanks for the response!
I did a check of " to spam quarantine" from /var/log/syslog and the number is close to the amount reported from "pmgsh get /statistics/receiver" .
This does however mean that this is not counting rejects from RBL's or anything else?

My goal would be to show how many messages/viruses are blocked ( from all methods) giving a more realistic view of how much is being blocked and also making MGW look better and more justifiable. RBL's and other methods such as blacklists will account for a good amount of blocked messages not reflected here.