On Fri, Dec 30, 2011 at 10:09:04PM +0000, Ruairi Hickey wrote:
> I've been doing this for a while ...
>
> acl_check_rcpt:
>
> warn
> ratelimit = 4 / 1h / strict / per_cmd
>
> deny
> ratelimit = 4 / 1h / strict / per_cmd / noupdate
Actually this isn't the same. Your implementation has hardcoded bad
rates. It doesn't take into account that a good sender (tens/hundreths
mails/hour) can send a few (like about 5 mails per hour) to non existing
adresses.
I was thinking about using different keys ($sender_address for total
mail and rejected:$sender_address for bad mail) and to compute a bad
ratelimit from both.
But the keys don't appear to work like I read them in manual. Your deny
rate doesn't even comply with the documentation:
"Each ratelimit condition can have up to four options."
and noupdate isn't in the manual anymore (it was in older docs).