Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Basic rate limit filter

2014-04-18 by manu@...

Georgi Petrov <georgi.petrov@...> wrote:

> - How I can achieve two different rate limit rules for localhost and non
> localhost (I have tried with some rules but they didn't work)?

I guess you used an ACL whith clause addr 127.0.0.1, but perhaps the
message was sent from ::1 (IPv6) ?

> - Is there a better way to limit the emails from PHP? They cannot be
> rejected, so they go in the mail queue and wait there. The queue tries to
> resend them every few minutes and they are rejected again until the rate
> drops under the limit.

You need your PHP application to talk SMTP instead of using the system
mail/sendmail/whatever command. 

> - Can we achieve some sort admin notification if the ratelimit is blocking
> somebody? Now I can have warning notifications if the mail queue gets very
> big.

You could add a urlcheck clause at the end of your racl blacklist ACL:
if ratelimit does not match it is not evaluated, and if ratelimit
matches, the evaluation continue to the urlcheck clause.

Your urlcheck clause will always evaluate to true but it will send the
signal to a webservice where you can do whatever you want.

An alternative is to log the even, and have another process parsing the
logs. 

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
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.