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@...
Message
Re: [milter-greylist] Basic rate limit filter
2014-04-18 by manu@...
Attachments
- No local attachments were found for this message.