Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Proposed feature: message accounting

2009-02-12 by Emmanuel Dreyfus

On Thu, Feb 12, 2009 at 10:02:52AM +0100, Jorge Garc\ufffda Oncins wrote:
> The syntax in greylist.conf could be something like this:
> 
> # Each "normal-user" can only send e-mails to 1000 destinations each day
> # and the sum of all the messages cannot be over 500MB
> racl greylist from list "normal-user" accounting period 24h 
> message-count-limit 1000 message-size-limit 500MB msg "Daily limit 
> exceeded"

What about defining the accounting rules at the beginning of the config
file and reuse them later?

# accounting "<rule name>" "<key>" (msgsize|msgcount) <limit> <duration>
accounting 'usracct" "%f" msgsize >= 300MB 24h
(...)
racl blacklist list "users" accounting "usracct" msg "too many messages"


Here we would maintain a size count of messages for each sender (%f). 
The use of a format string enable accounting against whatever you want 
(IP, sendr, receiver...).

Problem: do we just reset counters every <duration> (here, 24h)? Or do
we try a sliding count? That would be much heavier to implement.


-- 
Emmanuel Dreyfus
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.