Resetting milter counts

If I set a “Mail Rate Limit” on a domain, virtualmin edits:

/etc/milter-greylist/greylist.conf

thusly:

ratelimit “domain_1723064206327109” rcpt 50 / 24h
racl blacklist from /.@cheese.com/ ratelimit “domain_1723064206327109” msg “Message quota exceeded”
racl whitelist from /.
@cheese.com/
racl whitelist default

In the example my domain is limited to 50 recipients per day.

It stands to reason that somewhere there is a 37 that turns to a 38 that turns to a 39 and so on with each outbound mail.

Does anyone know where that number is (and whether I can manipulate it somehow)?

According to that greylist.conf, this looks promising:

dumpfile “/var/lib/milter-greylist/greylist.db” 600

But there is no such file and if I set a limit on a domain and then send a mail through one of its accounts, that file does not materialize. (Note that I do not have MySQL running on this instance if that is needed for this to work.)

In my example, if my domain gets to 50 mails in a day, I will know about it (either by the users of the domain complaining or perhaps by something I have setup to watch logs). As I never expect this domain to send more than 10 mails in a day, I know that something is wrong (hacked account, maybe a failing all-in-one-printer-scanner parsing some document into 1 email per page, etc) so I investigate.

Once the problem has been addressed, I would like to manually reset the milter’s counter to 0 (without waiting till the 24 hours are up) so that everyone at the domain might get back to business.

(Obviously the settings are just for an example, I do not host cheese.com and I would not limit a domain to 50 mails per day.)

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04
Virtualmin version 7.20.2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.